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.
--- main.cf 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 main.cf
--- canonical-sender: @example.com @example.net --- canonical-rcpt @example.info @example.net
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 smtp_generic_maps.
Using separate sender and recipient canonical maps is usually a mistake.
Please carefully review: http://www.postfix.org/ADDRESS_REWRITING_README.html
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 http://www.postfix.org/DEBUG_README.html#mail -- Noel Jones