Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

How can I automatically forward outgoing emails to a different domain?

As an example, a user sends an email to and I want the exact email forwarded outside to

Note There are no accounts on the local Zimbra server under the subdomain and the prefix 123456 will not be constant, e.g. it will change depending on fax recipient's number.

I know that the easy thing would be to have users send the emails directly to the domain, but I'd rather have them use the local domain and have the email forwarded/ redirected.

I don't know whether to use postfix transports, procmail or something within zimbra.

I think that postfix transports requires that I specify a different SMTP server, e.g. :[]

With procmail I think I would need to use a pipe, but I've never used procmail.

I've tried to find a feature within Zimbra and I tried to zmprov md zimbraMailCatchAllForwardingAddress but the emails bounced.

How do I best achieve this?

share|improve this question

1 Answer 1

Only forwarding is probably not enough, you also have to masquerade the domain name, otherwise the mail server probably rejects the mail and this is what you see as bounces.

For us it works like this:

zmprov md zimbraMailCatchAllAddress
zmprov md zimbraMailCatchAllForwardingAddres
zmprov md zimbraMailCatchAllForwardingAddress
zmprov md zimbraMailTransport
zmprov md zimbraMailCatchAllAddress zimbraMailCatchAllCanonicalAddress

Mails arriving at example will still have the To:- field as but the envelope is correct.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.