Log In

Below is the simple guide on how to configure Zimbra MTA 8.0 to send outgoing emails using your SMTP2GO’s SMTP Server. If your Zimbra MTA version is 8.5 or later, please click here.

Step 1

Login to your server via SSH as ‘root’ user. We recommend to do the following steps as zimbra user.

su - zimbra

Step 2

Setting a relay host: Change the relay host to mail.smtp2go.com followed by port 2525 (8025, 587 and 25 can also be used).

zmprov ms server.domain.com zimbraMtaRelayHost mail.smtp2go.com:2525

Step 3

Enabling SMTP authentication: Create a text file with the username/password:

echo mail.smtp2go.com USERNAME:PASSWORD > /opt/zimbra/conf/relay_password

Step 4

Replace USERNAME with your SMTP2GO Username and PASSWORD with your SMTP2GO password.

Create a postfix lookup table:

postmap hash:/opt/zimbra/conf/relay_password

Step 5

To test that the lookup table is correct, the following should return USERNAME:PASSWORD

postmap -q mail.smtp2go.com /opt/zimbra/conf/relay_password

Step 6

Configure postfix to use the new password map:

zmlocalconfig -e postfix_smtp_sasl_password_maps=hash:/opt/zimbra/conf/relay_password

Step 7

Configure postfix to use SSL authentication:

zmlocalconfig -e postfix_smtp_sasl_auth_enable=yes

Step 8

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

zmlocalconfig -e postfix_smtp_cname_overrides_servername=no

Step 9

Enable TLS: As zimbra user, enable to use TLS:

zmlocalconfig -e postfix_smtp_use_tls=yes

Step 10

Enable Plaintext Authentication: Remove the noplaintext option to enable the plaintext authentication:

zmlocalconfig -e postfix_smtp_sasl_security_options=noanonymous

Step 11

Restart postfix:

postfix reload

Note: If you see an error ‘550 unable to verify sender address’ when trying to send an email after setting up, this means your ‘From’ email address doesn’t have a valid MX record setup yet. All emails must be sent from an email address that has an MX record at its domain name.

Ready for better email delivery?

Try SMTP2GO free for as long as you like:

Try SMTP2GO Free → Paid plans available for over 1,000 emails/month.