Changes

From Amahi Wiki
Jump to: navigation, search
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..."


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]
12,424

edits