Posts

Showing posts from March, 2014

How do I login as root in UBUNTU

Simulate a root environment.   If you really need root access, you can simiulate root using sudo. This will provide you with unhindered root access, which means a mistyped command could destroy your system. Enter the command  sudo passwd root . This will create a password for your root account, essentially "enabling" it. Make sure you don't forget this password. Enter the command  sudo -i . You will be asked for your root password. Your prompt will change from  $  to  # , indicating you have root access. To disable root access, enter the command  sudo passwd -dl root .

How to Configure Postfix to Use Gmail SMTP on Ubuntu

Image
If you want to use a Gmail account as a free SMTP server on your Ubuntu-Linux server, you will find this article useful. This guide is tested with Ubuntu 12.04. If you face any issue, feel free to use comments-section below. Relaying Postfix mails via smtp.gmail.com: First, install all necessary packages: sudo apt-get install postfix mailutils libsasl2-2 ca-certificates libsasl2-modules If you do not have postfix installed before, postfix configuration wizard will ask you some questions. Just select your server as  Internet Site  and for FQDN use something like  mail.example.com Then open your postfix config file: vim /etc/postfix/main.cf and following lines to it: relayhost = [smtp.gmail.com]:587 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_tls_CAfile = /etc/postfix/cacert.pem smtp_use_tls = yes You might have noticed that we haven’t specified our Gmail username and password in above