Home‎ > ‎

Google Apps uses port 587 for SMTP authentication

posted Mar 11, 2010, 7:27 AM by Alias Mohd   [ updated Mar 11, 2010, 7:28 AM ]

To use the SMTP on your postfix server with authentication from google apps or gmail (if you uses google apps or gmail accounts, follow these steps.

1. enable postfix on the server.

on Mac OS, edit /etc/hostconfig to have

MAILSERVER=-YES-


2. edit main.cf (/etc/postfix)

relayhost=[smtp.gmail.com]:587

smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options ='
smtp_use_tls=yes

3. in sasl_password file add this line
[smtp.gmail.com]:587 alias@fke.utm.my:your password (username has to be a complete user account email address such as given)