On Tue, Feb 08, 2011 at 07:18:57AM +0100, Reindl Harald wrote: > > > Am 08.02.2011 02:28, schrieb Noel Jones: > > > Don't use "domain aliases" > > That is not a solution nor a workaround because many business > clients have a couple of domains and wnats to receive mail for > all addresses in all of them because peopole visit a homepage > often take the domain in the address bar and coming from search > machines and you do not want singe-forwarders in all directions
The solution within Postfix is to add appropriate new addresses for each user, not alias domains. You can map these to the desired primary addresses via virtual_alias_maps. A general domain aliasing mechanism that scales to large numbers of aliased domains is not available in the Postfix SMTP server where recipient address validation is performed. A provisioning system that understands domain aliases can provision aliases for each existing (when the domain is added) and new user (when a user is added). > On the other side i do not understand why "recipient_canonical_maps" > is not done BEFORE "local_recipient_maps" what would solve this and > makes more sense for me because the target-address is unknown before Canonicalization is intended to also apply to headers, which you generally should avoid modifying on an MTA. Canonicalization is for MSAs that sanitize mail on its first hop into the email infrastructure. Do not abuse canonical mapping for other purposes, and avoid the "recipient_" and "sender_" variants, they are easily misunderstood and misused by non-experts. -- Viktor.