Great, thank you, Wietse, that was it - my main.cf had "receive_override_options = no_address_mappings" set. Commenting this out fixed the problem.
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Wietse Venema Sent: Wednesday, April 22, 2015 3:59 PM To: Postfix users Subject: Re: sender_canonical_maps only rewrites for mail forwarded by /etc/aliases Wietse Venema: > Jesse Osby: > > But it only works when I send to a local address that gets forwarded to an > > external one via /etc/aliases. Here's what I've found: > > > > sender_canonical_maps can rewrite the sender in: > > - mail submitted with the Postfix sendmail command > > - mail received via the SMTP server > > - mail that is internally forwared (via /etc/aliases or ~/.forward) > > - and perhaps mail that is internally generated by notify_classes. > > But it is possible to disable this with receive_override_options. > > So I suggest that you look for receive_override_options settings in > main.cf and master.cf. > > The receive_override_options is used to prevent repeated adddress > mapping before and after a content filter. Canonical address rewriting is also modified by setting the sender_canonical_classes parameter (the default is to rewrite sender-like addresses in the header and in the envelope). Wietse
