On Tue, May 12, 2009 at 05:35:48PM -0400, Wietse Venema wrote:

> For example, to replace the envelope sender address of outside
> senders by foo...@example.com:
> 
> /etc/postfix/main.cf:
>     # Rewrite envelope sender only.
>     sender_canonical_classes = envelope_sender
>     sender_canonical_maps = pcre:/etc/postfix/sender_canonical
> 
> /etc/postfix/sender_canonical:
>     # Replace non-local address by foo...@example.com.
>     if !/@example\.com$/
>     /./               foo...@example.com
>     endif
> 
> This does not change the address in the From: header. However, some
> mail clients may display the sender address in a way that shows
> the modified envelope sender address. But I suppose that is not
> a big problem.

I've never seen mainstream MUA that display the envelope sender. Some
will diplay the "Sender:" header when different from "From:", as:

        From: <Sender> on behalf of <From>

So rewriting the envelope sender (aka Return-Path) is unlikely to be
a big concern from the MUA perspective.

-- 
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majord...@postfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.

Reply via email to