Postfix Transport Table

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
jeremywatco
Posts: 18
Joined: Sat Sep 13, 2014 3:52 am

Postfix Transport Table

Post 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_T ... al_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!
imanudin11
Outstanding Member
Outstanding Member
Posts: 304
Joined: Sat Sep 13, 2014 2:23 am
ZCS/ZD Version: Release 8.8.15.GA.3829.UBUNTU16.64
Contact:

Postfix Transport Table

Post 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
**

Best Regards,
Ahmad Imanudin - Sharing is Beautiful !
Personal Blog [EN] :http://www.imanudin.net
Post Reply