> > /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.

I'll have to do a little more research on the sender_canonical maps.  The one 
thing that I will probably need to worry about is this isn't a single domain 
for the outgoing.  We have hundreds of domains that this server provides 
outgoing SMTP services for (they auth through a different postfix server which 
is also their local delivery) and everything is smarthost'ed through this one.

Given that, we are really only concerned with about 20 email addresses.  So I'm 
not sure how the local address will be useful to us since we don't have a full 
list of them.  Anyway, it gives me a direction to start with.

Gary

Reply via email to