Hi, until now I worked around the SPF / mail forwarding / envelope-from problem with using expand_owner_alias and having two local aliases for every virtual user who wants his mail delivered to another account:
virtual: [EMAIL PROTECTED] john aliases: john: [EMAIL PROTECTED] aliases: owner-john: postmaster main.cf: expand_owner_alias = yes A few days ago I've read on postfix-users that the same can be achieved with using canonical_maps and canonical_classes. I tried this, set the latter variable to envelope_sender and created a regexp canonical map like this one: !/^.*@(doe.com|bar.net)$/ [EMAIL PROTECTED] The obvious problem with that setup is that postfix is not only going to rewrite the envelope from before passing the mail to smtp -- it will also do it when resubmitting the mail locally. Afterwards I considered adding: -o receive_override_options=no_address_mappings to smtpd in master.cf but since I was no longer sure about what I was doing so I gave it up. Is it even possible to use canonical_maps in order to rewrite envelope senders for smtp(8) only? Or are there even better ways to accomplish the same? Any help appreciated, Petar