Main Page/Outgoing SMTP Authentication-with-username-and-password-for-TIPL
Outgoing_SMTP_Authentication[edit]
To configure authentication for the MTA relay, follow these steps (shell console, as the Zimbra user):
1. Create a text file mapping the name/password (generally the ISP login/password) should be used for each MTA relay server. You can have MTA relay servers in this file, just add one per line: echo smtp-relay.gmail.com manish.kaushik@tipl.com:manish.kaushik_!@# > /opt/zimbra/conf/relay_password
2. Create a postfix lookup table: postmap hash:/opt/zimbra/conf/relay_password
3. To test that the lookup table is correct, the following should return username:password: postmap -q smtp-relay.gmail.com /opt/zimbra/conf/relay_password
4. Configure postfix to use the new password map: postconf -e smtp_sasl_password_maps=hash:/opt/zimbra/conf/relay_password
5. Configure postfix to use SSL authentication: postconf -e smtp_sasl_auth_enable=yes Enable TLS: postconf -e smtp_use_tls=yes
6. By default, Zimbra is configured not to allow plain text authentication. However, we have found that most ISPs only accept plain text. So it is recommended to enable plain text authentication: postconf -e smtp_sasl_security_options=noanonymous
7. Configure postfix to use the outgoing server name rather than the canonical server name (what is returned from a DNS lookup). For example: If the MTA relay is set to smtp.gmail.com but the canonical server name is gmail-smtp.l.google.com then password lookup will fail as there is no entry for smtp.l.google.com. To overcome this: postconf -e smtp_cname_overrides_servername=no
8. Restart postfix: postfix reload
9. Send an email and watch the Zimbra logs: less /var/log/zimbra.log