Created
April 4, 2013 00:59
-
-
Save mondalaci/5306840 to your computer and use it in GitHub Desktop.
SMTP relaying with Postfix through GMail
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat << END >> /etc/postfix/main.cf | |
smtp_sasl_auth_enable = yes | |
smtp_use_tls = yes | |
smtp_sasl_tls_security_options = noanonymous | |
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd | |
relayhost = smtp.gmail.com | |
END | |
echo "smtp.gmail.com [email protected]:yourpassword" >> /etc/postfix/sasl_passwd | |
postmap /etc/postfix/sasl_passwd | |
/etc/init.d/postfix restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment