Login
New User

Welcome to destr0yr's asylum
Monday, October 06 2008 @ 08:03 AM PDT

Gmail and sSMTP on Gentoo

GentooTo 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/ssmtp


In /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=YES


In /etc/ssmtp/revaliases:
root:youraccount@gmail.com:smtp.gmail.com:587
mainuser:youraccount@gmail.com:smtp.gmail.com:587



Test 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

Story Options

Trackback

Trackback URL for this entry: http://www.destr0yr.com/trackback.php/Gmail_and_sSMTP

No trackback comments for this entry.
Gmail and sSMTP on Gentoo | 0 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.