tech_documents:zimbra:send_via_relay

Set the Relay Host
zmprov ms `zmhostname` zimbraMtaRelayHost mailrelay.example.com

Reboot the ASSP server host, seems to be needed or I'm impatient.

Enable SMTP Authentication
echo mailrelay.example.com username:password > /opt/zimbra/conf/relay_password

Create a postfix lookup table:

postmap /opt/zimbra/conf/relay_password

Test that the lookup table is correct, the following should return username:password:

postmap -q mailrelay.example.com /opt/zimbra/conf/relay_password

Configure postfix to use the new password map:

zmprov ms `zmhostname` zimbraMtaSmtpSaslPasswordMaps lmdb:/opt/zimbra/conf/relay_password

Configure postfix to use SSL authentication:

zmprov ms `zmhostname` zimbraMtaSmtpSaslAuthEnable yes

Configure postfix to use the outgoing servername rather than the canonical server name:

zmprov ms `zmhostname` zimbraMtaSmtpCnameOverridesServername no

Enable Plain Text Authentication (we will use TLS to protect it)

zmprov ms `zmhostname` zimbraMtaSmtpSaslSecurityOptions noanonymous

Enable TLS:

zmprov ms `zmhostname` zimbraMtaSmtpTlsSecurityLevel may
  • tech_documents/zimbra/send_via_relay.txt
  • Last modified: 2020/09/28 17:47
  • by dwadmin