Camron W. Fox wrote:
Victor Duchovni wrote:
On Thu, Oct 16, 2008 at 01:05:06PM -1000, Camron W. Fox wrote:
Alle,
We have the current setup under Postfix 2.3.3:
masquerade_domains = AAA.BBB.org, BBB.org, AAACCC.org, AAA.DDD.ac.jp
sender_canonical_maps=hash:/etc/postfix/canonical
/etc/postfix/canonical:
@BBB.org @AAA.BBB.org
@AAA.DDD.ac.jp @AAA.BBB.org
@AAA.CCC.org @AAA.BBB.org
Our goal is to have *everything* (return-path/From:) re-written to:
AAA.BBB.org
This works if the from addresses don't contain a hostname. If a
hostname is included, the return-path is correct but From: ends up
using the masquerade domain. Example:
[EMAIL PROTECTED]: From: is changed to [EMAIL PROTECTED]
but
[EMAIL PROTECTED]: From: is changed to [EMAIL PROTECTED]
What are we missing?
Canonical mapping happens *before* masquerading. You should probably
be using smtp_generic_maps, not the misguided sender_canonical_maps.
Victor,
I tried adding these generic mappings but the
[EMAIL PROTECTED]: From: is still only changed to [EMAIL PROTECTED]:
@BBB.org @AAA.BBB.org
@.BBB.org @AAA.BBB.org
@AAA.DDD.ac.jp @AAA.BBB.org
@.AAA.DDD.ac.jp @AAA.BBB.org
@EEE.org @AAA.BBB.org
@.EEE.org @AAA.BBB.org
What are we still missing?
Best Regards,
Camron
Camron W. Fox
Hilo Office
High Performance Computing Group
Fujitsu Management Services of America, Inc.
E-mail: [EMAIL PROTECTED]
You'll need to use a pcre or regexp generic table to match
subdomains, or list all subdomains explicitly in your hash table.
A regexp table to match the base domain with or without any
subdomain would look like:
/@(.*\.)?BBB\.org$/ @AAA.BBB.org
/@(.*\.)?AAA\.DDD\.ac\.jp$/ @AAA.BBB.org
/@(.*\.)?EEE\.org$/ @AAA.BBB.org
--
Noel Jones