Use GMail to send emails through the Linux consolse
Saturday, July 28, 2012 10:09Posted in category Operating Systems, Unix/Linux
No Comments
If you need to be able to send simple, one user account emails from a Linux server which has no mail server configured then this is for you.
Additionally you can use GMail to send messages from.
Install software:
# apt-get update
# apt-get install ssmtp
Edit configuration file:
#nano /etc/ssmtp/ssmtp.conf
AuthUser=myaccount@gmail.com
AuthPass=gmailpassword
FromLineOverride=YES
mailhub=smtp.gmail.com:587
UseSTARTTLS=YES
Test:
# echo “email test” | mail -s “Email test” myemailaddress@domain.tld
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.