Content tagged smtp

Install the ssmtp MTA:

sudo apt-get install ssmtp

Then configure it:

]==> cat /etc/ssmtp/ssmtp.conf
mailhub=your.smtp.net:587
AuthUser=your_login
AuthPass=your_password
UseTLS=YES
UseSTARTTLS=YES

Map users:

]==>  cat /etc/ssmtp/revaliases
local_username:username@domain.net:your.smtp.net:587

Make sure it's safe:

chown root:mail /etc/ssmtp/ssmtp.conf
chmod 640 /etc/ssmtp/ssmtp.conf
usermod -a -G mail local_username

Log out and log in again.