Per Domain Destination based SMTP Relay in Zimbra 8.7

0
2916

i got a situation that need to set relayhost for specific destination domain from my Zimbra OSE 8.7

here are the quick steps to do this :

Edit the transport file :

vim /opt/zimbra/common/conf/transport

add the smart relay for specific domain :

example.com       :[X.X.X.X]

login to zimbra user by :

su - zimbra

Run below command to generate binary :

postmap /opt/zimbra/common/conf/transport

and finally, run below zommand to update zimbra :

zmprov ms 'zmhostname' zimbraMtaTransportMaps "lmdb:/opt/zimbra/common/conf/transport,proxy:ldap:/opt/zimbra/conf/ldap-transport.cf"

LEAVE A REPLY