Gmail and sSMTP on Gentoo
To get this running, I followed the documents @ the bottom of this post. Here's the condensed version:# emerge ssmtp (USE="ipv6 -mailwrapper -md5sum ssl")
# cd /etc/ssmtpIn /etc/ssmtp/ssmtp.conf, set the following:
root=youraccount@gmail.com
mailhub=smtp.gmail.com:587
rewriteDomain=
hostname=youraccount@gmail.com
UseSTARTTLS=YES
AuthUser=youraccount
AuthPass=yourpasword
FromLineOverride=YESIn /etc/ssmtp/revaliases:
root:youraccount@gmail.com:smtp.gmail.com:587
mainuser:youraccount@gmail.com:smtp.gmail.com:587Test with:
# echo test | mail -s "testing ssmtp" user@domain.tld
Check the remote account (user@domain.tld) to make sure the mail arrived.
Resources and troubleshooting:
http://forums.gentoo.org/viewtopic-p-3011748.html
http://forums.gentoo.org/viewtopic-t-412468.html



