Page 1 of 1

local delivery not so local

Posted: Tue Dec 13, 2016 10:04 am
by msmcknight
Hi everyone,

My zimbra server is sending emails that are local to the external relay. It would seem to me that emails with addresses that match a domain that zimbra is hosting should never leave the server.

My zimbra domain is like, with email addresses reflected as Could that subtle difference cause the problem? If so, how can I fix it? We have another inbound server that handles from the internet, but it would still be nice if zimbra understood it was local/internal.

How can I set zimbra to keep all emails internal, but let others go to the external relay?

Thanks for any help you can offer,

Re: local delivery not so local

Posted: Tue Dec 13, 2016 1:59 pm
by JDunphy
There is probably a few ways... I have my zimbra server think and are local domains. My mail gateway with the MX records forwards email to

In that configuration, you would define and aliases for each user and then create the domain just like you have created for your domain.

Note: I did this with my first zimbra installation before reading any documentation so this method could be convoluted given all the changes that have occurred over the years. I came from sendmail so I make things harder. :D I did it because I wanted something I was familiar with in front of the zimbra to do extra security and tagging of email via various milters, etc. That eventually means I have to do custom spamassassin rules to pull that information in to the zimbra scoring. Now, I would probably just have zimbra handle it all with a multi server configuration so it's tightly integrated... but it works well nonetheless.

Re: local delivery not so local

Posted: Tue Dec 13, 2016 11:16 pm
by msmcknight
Thanks for the reply. I think I probably have a similar setup as you, for many of the same old-school sendmail reasons.

When I was looking into this, I found info on "domain aliases" -- I wasn't familiar with them, but it solved my problem.

Here's some info, for others fighting the same fight...

Video: Add Domain Alias on Zimbra Mail Server

Wiki Article