how to setup smarthost ====================== prerequisite: SASL authentication should be enabled first 1. changes (sudo nano /etc/postfix/main.cf) relayhost = [smtpauth.earthlink.net] smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = 2. Create the password maps file (sudo nano /etc/postfix/sasl_password) with one line as below smtpauth.earthlink.net shaojunlei@earthlink.net:password 3. Set proper permissions for the password maps file sudo chown root:root /etc/postfix/sasl_password sudo chmod 600 /etc/postfix/sasl_password 4. Create hash from maps file (remember to do it each time you change your maps file): sudo postmap hash:/etc/postfix/sasl_password 5. Restart postfix sudo /etc/init.d/postfix restart 6. test a) check saslfinger -c b) send msg date | mail -s “testing” rlei7777777@gmail.com c) monitor tail -f /var/log/mail.log