Christian Meier: > Hi, > > in e-mails with a particular FROM header should the FROM header > be rewritten *and* the e-mail should be sent by blind carbon copy > to a predefined address. > > In theory, it is possible to use the canonical-sender and > sender_bcc_maps functions. In practice, the address on the right > of the canonical-sender map and the address on the right of the > sender_bcc_maps may not be the same.
As described in http://www.postfix.org/ADDRESS_REWRITING_README.html, canonical mapping happen before sender/recipient BCC table lookups. Thus, sender/recipient BCC table lookups use the result after canonical mapping. However, BCC table lookups use the ENVELOPE address, not the address in the From/To/CC header. Wietse