How to set transport in zimbra

How to set transport in Zimbra 8.x

Transport feature allow you to route specific domain mail from different server/Host. Here i am going to route, mail from another server.

Server details
Zimbra server hostname:
In cpanel/domain create A record with name domain and point ip address of remote server . -  x.x.x.x   

For zimbra 8.x
# su - zimbra
$ zmprov ms  zimbraMtaTransportMaps "lmdb:/opt/zimbra/postfix/conf/transportfile,proxy:ldap:/opt/zimbra/conf/"

For zimbra 8.7.0 or above
$ zmprov ms  zimbraMtaTransportMaps "lmdb:/opt/zimbra/common/conf/transportfile,proxy:ldap:/opt/zimbra/conf/"

Check above updated value
$ zmprov -l gs `zmhostname` | grep -i zimbraMtaTransportMaps
zimbraMtaTransportMaps: lmdb:/opt/zimbra/common/conf/transportfile,proxy:ldap:/opt/zimbra/conf/

Edit file and add below parameter

$ vim /opt/zimbra/postfix/conf/
smtp_cname_overrides_servername = no
smtp_sasl_security_options = noanonymous
smtp_sasl_mechanism_filter = plain,login

Note: make sure above parameter is not repeating in file . If you find repated parameter remote that line from file carefully.

Create your transport file (owner/group-owner should be zimbra):

$ vi /opt/zimbra/postfix/conf/transportfile     :[]     :[]

$ postmap /opt/zimbra/postfix/conf/transportfile

Create authentication file
$ vim /opt/zimbra/conf/relay_password

$postmap /opt/zimbra/conf/relay_password

Note: On remote server create domain with email id and password. Put the same information in relay_password file.

Update postfix conf file
$postfix reload

Test now mail and mail should relay from server.
Share on Google Plus

About Penguin Technology Linux Training

A Freelance Author, A Linux Lover , Dedicated for open community , Content writer, Industrial expert in Linux Solutions having aim to Promote Linux for the Masses ."We are born free , No gates and windows can snatch our freedom." Contact us for Linux, DevOps, Cloud Training in Delhi/NCR India @
    Blogger Comment


  1. I gathered as much knowledge regarding to the Linux, web sever and database server from your site.Keep on updating with more interesting topic.
    Moreover to recover the lost file from Linux Click on:
    android data recovery review
    launch android data recovery
    backup and restore android apps and data
    android backup app data
    recover lost files
    diskdigger pro file recovery