Gmail As Relay On Ubuntu

From Amahi Wiki
Revision as of 22:45, 12 July 2012 by Bigfoot65 (talk | contribs) (Created page with " sudo apt-get postfix mailutils Select internet from the pop up and then OK. postconf -e 'relayhost=gmail-smtp-in.l.google.com' postconf -e 'smtp_sasl_auth_enable=yes' postcon...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


sudo apt-get postfix mailutils

Select internet from the pop up and then OK.

postconf -e 'relayhost=gmail-smtp-in.l.google.com' postconf -e 'smtp_sasl_auth_enable=yes' postconf -e 'smtp_sasl_password_maps=hash:/etc/postfix/sasl_passwd' postconf -e 'smtp_sasl_security_options='

echo "gmail-smtp-in.l.google.com sahabcse@gmail.com:XXXXXX" > /etc/postfix/sasl_passwd

chown root:root /etc/postfix/sasl_passwd chmod 600 /etc/postfix/sasl_passwd

postmap /etc/postfix/sasl_passwd

/etc/init.d/postfix restart

echo "This is Content" | sudo mail -s "This is subject" user@home.com

tail -f /var/log/mail.log


REF: [http://ubuntulinux.co.in/blog/ubuntu/set-up-postfix-for-relaying-emails-via-gmail-smtp-server Set Up Postfix For Relaying Emails via gmail smtp server]