Relaying Local zimbra mails to external server
I have setup zimbra and it relays external mail properly.
But the issue is as follows:
If zimbra user firstname.lastname@example.org sends to
another zimbra account, say to email@example.com,
I want it to route via the external server say mail.example1.com for some processing (encryption etc.) which will then route it back to the zimbra user firstname.lastname@example.org. Unfortunately, it does local delivery of all existing zimbra accounts without using the relay mta.
I tried to do as explained below, but it relays only non-local mails.
Transport Table for external servers - Zimbra :: Wiki
I also came across this posts, but it seems that they could not get it solved.
Could anybody please help me out with this?
I am using ZCS5.0.10 on CentOS.
Thank you very much in advance.
Need help configuring this
I am trying to configure this so we can force all emails to be routed externally through a smarthost, and then any local domains will be routed back inbound and delivered locally. We have a solution we're trying to implement, and in order for it to work we need to route ALL inbound emails out to the internet and back in so we can split the emails to two different locations.
Any additional assistance anyone can provide on this setup? I have gone through these instructions so far with no luck.
Solved - Relaying Local zimbra mails to external server
I have this solved. There is a little config change from my previous post.
I can route internal zimbra mails to a external smtp server and back to the local inbox. If that is what you are trying, let me post the config files for you. I am not an expert, but if it helps you, it will be great.
Change postfix files
smtpd_sender_restrictions = check_sender_access hash:/opt/zimbra/postfix-18.104.22.168z/conf/filter_recipient_domains, permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_unlisted_recipient, reject_invalid_hostname, reject_non_fqdn_sender, check_sender_access regexp:/opt/zimbra/postfix-22.214.171.124z/conf/filter-catchall.regexp, permit
2) The contents of filter_recipient_domains file is (please put the domain names configured on your server):
domain1.org FILTER smtp:[202.xxx.xxx.xx1]
domain2.com FILTER smtp:[202.xxx.xxx.xx2]
domain3.com FILTER smtp:[202.xxx.xxx.xx1]
Please make a db by using the command (change the file path according to your setting):
3)The contents of filter-catchall.regexp
/^/ FILTER smtp-amavis:[127.0.0.1]:10024
4)Also make an entry of the domains in /etc/hosts
72.xx.xx1.xx2 domain1.org domain1.org
72.xx.x31.xx2 domain2.com domain2.com
72.xx.x41.xx2 domain3.com domain3.com
4) execute the command:
5) Test the settings by sending a mail.
Explanation is given here:
amavisd-new documentation bits and pieces
If there are any questions,please post back. If at all there is something missing I can help out if possible.
All the best!!
Main.cf not having updating
I have made changes in postfix main.cf with zimbra user as below your post becoz i would configure same scenario but when we restart zimbra all configuration has roll back as we are using zimbra zcs-7.2.0_GA_2669.RHEL5_64.20120410001942.
Thx in advance.
Originally Posted by zim_love