Triburb-per-domain-relay-zimbra
Appearance
Relay One domain mail in zimbra[edit]
Objective Due to blacklisting of the server IP need to relay alokind.com from another server provided by client.
Process to Follow
zmlocalconfig |grep -i postfix_transport_maps This configuration decide how mails should deliver.
vi /opt/zimbra/postfix/conf/transportfile
Create a transport file to provide the Entry of the domain to relay from the server. ENTRY SHOULD LIKE: gmx.com :[smtp.server.net.id] #for relaying with the specific port for any domain richaglobal.com :[mail.tetrain.com]:587 ll /opt/zimbra/postfix/conf/transportfile Check the permission of the file it must be zimbra.zimbra
For Zimbra Version less than 8.x , below is the process
postmap /opt/zimbra/postfix/conf/transportfile zmlocalconfig -e postfix_transport_maps="hash:/opt/zimbra/postfix/conf/transportfile proxy:ldap:/opt/zimbra/conf/ldap-transport.cf" Make hash for the ldap-transport.cf by transport file less /opt/zimbra/postfix/conf/main.cf
zmmtactl restart
Source[[1]]
For Zimbra Version 8.x , below is the process
zmprov ms mail.example.com zimbraMtaTransportMaps "lmdb:/opt/zimbra/postfix/conf/transportfile,proxy:ldap:/opt/zimbra/conf/ldap-transport.cf"
or
zmprov ModifyConfig zimbraMtaTransportMaps "lmdb:/opt/zimbra/postfix/conf/transportfile,proxy:ldap:/opt/zimbra/conf/ldap-transport.cf"
Reference - https://community.zimbra.com/collaboration/f/1886/p/1137087/1581157#1581157