Zimbra relay local email

zimbra

I have two mail servers that share the same domain name how do I make zimbra relay email who isn't in the zimbra directory to the other email server

Best Answer

What you are describing is a split domain situation. This is well documented on the Zimbra wiki. What you want is the following:

  • By default all e-mail to example.org is routed to Zimbra.
  • If the recipient for example.org, for example foo@example.org does not exist in Zimbra, it must be routed to the other mail system.
  • If it exists on the other mail system, fine. If it does not exist, then inform the sender.

Basically the commands you need in your Zimbra are the following:

$ zmprov md example.org zimbraMailCatchAllAddress @example.org $ zmprov md example.org zimbraMailCatchAllForwardingAddress @example.org $ zmprov md example.org zimbraMailTransport smtp:the-other-mail-server.example.org