Postfix lives in 2 locations on OS X / OS X Server
OSX Server / Mail tip -
Postfix location: /Library/Server/Mail/Config/postfix/main.cf
Note: [smtp.gmail.com]:587 will break the UI I suspect due to the [].
Postfix sasl password:
/Library/Server/Mail/Config/postfix/sasl/passwd
Don't forget to postmap update:
sudo postmap /Library/Server/Mail/Config/postfix/sasl/passwd
There is also a /etc/postfix location which is confusing.
Had a similar problem. This helped me - main.cf
and
sasl_passwd