Page 1 of 1

Postfix Transport Table

Posted: Tue Dec 23, 2014 11:31 pm
by jeremywatco

Hi All,



Recently upgraded from 8.0.7 to 8.5.1 and now to 8.6.


I am looking for a way to forward specific email domains through specific smart hosts. Basically if addressed to domain1.domain2.com go to through smart host 1.2.3.4, if domain2.domain2.com go to 2.4.5.6


I found this old wiki article however with the changes made to postfix it no longer applies: http://wiki.zimbra.com/wiki/Transport_Table_for_external_servers


I am a network user and opened a support case. The tech replied that he agree'd that it was outdated and that he would resolve and update it asap. Now I can't get any more responses to my ticket.


Any ideas how to get it done? 


Thank you so much in advance!


Postfix Transport Table

Posted: Wed Dec 24, 2014 9:03 pm
by imanudin11

Hi,


Please try the following guidance :


- Create transport for domain would be relay


su - zimbra
vi /opt/zimbra/postfix/conf/transportfile

Fill with the following line


domain1.domain2.com  :[1.2.3.4]
domain2.domain2.com :[2.3.4.5]

- Postmap transport


postmap /opt/zimbra/postfix/conf/transportfile

- Adding Transport table


zmprov ms mail.example.com zimbraMtaTransportMaps "lmdb:/opt/zimbra/postfix/conf/transportfile,proxy:ldap:/opt/zimbra/conf/ldap-transport.cf"

- Restart Zimbra


zmcontrol restart

i have not try, but should be work :D