Mail config howto

Configuration mail sending using SSMTP
Deploying mail sending from your local machine may be done in two ways:
 * 1)   Using mail-transfer agents like SENDMAIL or POSTFIX
 * 2)   Using mail-clients like SSMTP.

Here we describe the easiest way of sending mail based on using SSMTP and GMail.

sudo apt-get install ssmtp
 * Installing SSMTP (for example, using apt-get in Debian Linux)
 * Configuring


 * Edit file /etc/ssmtp/ssmtp.conf in this way:

root=mygmail@gmail.com mailhub=smtp.gmail.com:587 hostname=smtp.gmail.com:587 UseSTARTTLS=YES AuthUser=mygmail@gmail.com AuthPass=password FromLineOverride=YES
 * where 'mygmail' is your gmail username and 'password' must be edited with your account password.


 * Edit file /etc/ssmtp/revaliases in this way:

root:mygmail@gmail.com:smtp.gmail.com:587
 * where 'mygmail' is your gmail username.

Congratulations! Now you can send emails using 'mail' command through your gmail account. About "howto use 'mail' command" read MAN.