Managing Domains

Revision as of 22:14, 28 April 2009 by CAH (talk | contribs) (Creating a Domain Alias: added new create alias command for 5.0.16 or later)

Creating a Domain Alias

If you have a domain and you want the domain to be an alias for it, so that sending mail to is the same as sending mail to (delivered to the same mailbox), you can designate as a domain alias when creating the domain. This example assumes already exists, but does not.

Prior to ZCS 5.0.16

zmprov cd zimbraDomainType alias zimbraMailCatchAllAddress zimbraMailCatchAllForwardingAddress

ZCS 5.0.16 and later, a new create an alias domain command is available

zmprov createAliasDomain {alias-domain-name} {local-domain-name|id} [attr1 value1 [attr2 value2...]]

Relaying/Domain Forwarding

If you want the Zimbra server to relay all mail destined for a particular domain (say, to another mta (say,, you can forward the domain.

md zimbraMailCatchAllAddress
md zimbraMailCatchAllForwardingAddress 
md zimbraMailTransport

I think you can also do this as another way to make a sort of local domain alias:

md zimbraMailCatchAllAddress
md zimbraMailCatchAllForwardingAddress 
md zimbraMailTransport

For non-zimbra domains, this might prove useful as well: Transport_Table_for_external_servers

Domain Catchall

If you want to set up an account "" to catch any mail not delivered to existing users in the domain "", you can configure the account as a domain catchall.

su - zimbra
zmprov modifyAccount zimbraMailCatchAllAddress

If the users "", "", and "" don't exist, and mail arrives for them, it will be delivered to the catchall account "". This will increase the amount of spam delivered, and can lead to being blacklisted. To remove the catchall from an email account, unset the catchall address:

zmprov modifyAccount zimbraMailCatchallAddress ""

Domain Masquerading

If you want mail from or to appear to come from, you can set the canonical address for the entire domain.

zmprov md zimbraMailCatchAllAddress zimbraMailCatchAllCanonicalAddress
zmprov md zimbraMailCatchAllAddress zimbraMailCatchAllCanonicalAddress


5.0.12+ allows some additional mapping of real to alias in order to:

A) Allow auth with alias domain addresses.

B) Send out-of-office notifications for alias domains.

zmprov md zimbraDomainAliasTargetId {}

5.0.16+ added the ability to do this in one command:

zmprov createAliasDomain(cad) {alias-domain-name} {local-domain-name|id} [attr1 value1 [attr2 value2...]]

cad sets zimbraDomainType, zimbraDomainAliasTargetId, & zimbraMailCatchAllAddress

(if you want forward you need to add zimbraMailCatchAllForwardingAddress)

zmprov cad zimbraMailCatchAllForwardingAddress
Jump to: navigation, search