Enable SMTP authentication on outbound messages:
Code:
$ postconf -e smtp_sasl_auth_enable=yes
Create a file text file mapping which name/password should be used for
which given outbound destination. This file can contain multiple
lines.
Code:
$ echo mailrelay.example.com user

assword > /opt/zimbra/conf/relay_password
Create a postfix lookup table from this text file:
Code:
$ postmap /opt/zimbra/conf/relay_password
Test that the map is okay and that the user: password pair is returned.
Code:
$ postmap -q mailrelay.example.com /opt/zimbra/conf/relay_password
user

assword
Make postfix use this:
Code:
$ postconf -e smtp_sasl_password_maps=hash:/opt/zimbra/conf/relay_password
$ postfix reload