postfix-users April 2011 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: Address Rewrite Problem

Re: Address Rewrite Problem

From: Noel Jones <njones_at_nospam>
Date: Sat Apr 09 2011 - 20:42:17 GMT

On 4/9/2011 11:54 AM, Nasser Heidari wrote:
> Hi,
> We have Running Postfix with Virtual Domains. I need some address
> rewriting for Incoming and Outgoing Emails and using Canonical Maps we
> have done this task:

Unfortunately you don't give us much info to go on here.

> --- config:
> sender_canonical_maps = hash:/etc/postfix/canonical-sender
> recipient_canonical_maps = hash:/etc/postfix/canonical-rcpt

We strongly prefer "postconf -n" output rather than random
snips from

> --- canonical-sender:
> --- canonical-rcpt

Wildcard rewrites are generally a poor choice, and can cause
serious problems with an MTA that receives mail from the
internet. Often the same thing can be done cleaner in

Using separate sender and recipient canonical maps is usually
a mistake.

Please carefully review:

> We have an Exchange for our local Emails and Exchange uses Postfix as
> Smarthost.
> Address Rewriting is Working properly for Emails from Exchange to
> Outside network, but For Emails from Exchange to Postfix Virtually
> hosted Domains or Postfix Local Mailbox's the rules doesn't Affect !
> Could you please somebody help me?

If you need more help, please see

   -- Noel Jones