Noel Jones:
> On 3/19/2014 2:36 PM, Wietse Venema wrote:
> > Drew Mazurek:
> >> Mar 19 14:54:42 hostname postfix/cleanup[2873]: E7540258C6: message-id=<[
> >> [email protected]]>
> >> Mar 19 14:54:42 hostname postfix/qmgr[1836]: E7540258C6: from=<
> >> [email protected]>, size=4054, nrcpt=1 (queue active)
> >
> > If you want to rewrite the sender of outbound mail, you could do:
> >
> > /etc/postfix/main.cf:
> > recipient_delimiter = -
> > canonical_maps = hash:/etc/postfix/canonical
> >
> > /etc/postfix/canonical:
> > [email protected] [email protected]
> >
> > Where [email protected] is the original sender address, and
> > where you receive mail for [email protected].
> >
> > The address extension "bounces-example.com" then tells you
> > what mailing the returned mail corresponds to.
>
> I suppose you would also want to set
>
> # main.cf
> canonical_classes = envelope_sender, envelope_recipient
>
> so you don't inadvertently rewrite the From: header, which the
> recipient might find confusing.
And maybe you don't, because some brain-dead software will bounce
to the header address instead of the envelope.
Wietse