Relay Tips Based on User/Domain Receiver on Zimbra 8.5-8.6
I have a condition where my customers cannot sending email for some domain by directly. I give an advice to them for using Relay for all external delivery. But they do not want all external delivery using relay for security reason. They want just some domain receiver for using relay. Okay, because them using Zimbra 8.5/8.6, i can do relay for some domain only.
# Create transport for domain receiver that would be relay
Fill with the following example
The above example, every sending email to domain1.com and domain2.com or user1@domain3.com, will be relay to relay.example.com. If your relay server using port such as 465, 587 or another port, you can change like this [relay.example.com]:587
# Postmap Transport
# Adding Transport table
Change mail.example.com with your hostname of email server. Or you can using `zmhostname` for independently
# Restart Zimbra Services
Please try to sending email. Every sending email to
domain1.com and domain2.com or user1@domain3.com, email server will be relay to relay.example.com. if sending email to another domain, email server will directly without relay to relay server
Note : if adding/delete user or domain in transportfile, don’t forget to postmap and reload postfix Zimbra (postfix reload)
Good luck and hopefully useful
# Create transport for domain receiver that would be relay
vi
/opt/zimbra/postfix/conf/transportfile
domain1.com :[relay.example.com] domain2.com :[relay.example.com] user1@domain3.com :[relay.example.com]
The above example, every sending email to domain1.com and domain2.com or user1@domain3.com, will be relay to relay.example.com. If your relay server using port such as 465, 587 or another port, you can change like this [relay.example.com]:587
# Postmap Transport
postmap /opt/zimbra/postfix/conf/transportfile
zmprov ms mail.example.com zimbraMtaTransportMaps "lmdb:/opt/zimbra/postfix/conf/transportfile,proxy:ldap:/opt/zimbra/conf/ldap-transport.cf"
Change mail.example.com with your hostname of email server. Or you can using `zmhostname` for independently
# Restart Zimbra Services
zmcontrol restart
Note : if adding/delete user or domain in transportfile, don’t forget to postmap and reload postfix Zimbra (postfix reload)
Good luck and hopefully useful
Nhận xét
Đăng nhận xét