This guide provides step-by-step instructions to help you configure Mailtarget SMTP with Zimbra Mail Server. By integrating Mailtarget’s email delivery service, you will be able to enhance your email sending reliability and security through the SMTP protocol. This documentation is suitable for users seeking a streamlined email solution within their Zimbra environment.
Execute the following command to change the relay host and the number of the port
zmprov ms `zmhostname` zimbraMtaRelayHost smtp.mtrgt.net:587
Set up your credentials by creating a text file like the one below. Replace USERNAME and PASSWORD with smtp_mt_injection and password with your API Key
echo smtp.mtrgt.net USERNAME:PASSWORD > opt/zimbra/conf/relay_password
Create a postfix Look-Up table as follows:
postmap /opt/zimbra/conf/relay_password
To check that the table has been created correctly, please start the command below. It should return USERNAME:PASSWORD
postmap -q smtp.mtrgt.net /opt/zimbra/conf/relay_password
Configure postfix to use the new password map, the SSL authentication and the outgoing server name by starting the three commands below:
zmprov ms `zmhostname` zimbraMtaSmtpSaslPasswordMaps lmdb:/opt/zimbra/conf/relay_password
zmprov ms `zmhostname` zimbraMtaSmtpSaslAuthEnable yes
zmprov ms `zmhostname` zimbraMtaSmtpCnameOverridesServername no
Authorize the TLS and the Plaintext Authentication
zmprov ms `zmhostname` zimbraMtaSmtpSaslSecurityOptions noanonymous
Once the configuration is successfully completed, your Zimbra Mail Server will be fully equipped to send emails using Mailtarget's SMTP service. For any troubleshooting or additional guidance, our support team is ready to assist you.