Gary Smith:
> Hello, 
> 
> (this may come twice send I sent it once prior to confirming
> subscription to group -- sorry)
> 
> We encountered a couple problems with our blackberry and other
> users when people on our exchange server setup forwards.  Typically
> we forward a lot of email to technicians in the field.  The problem
> is these technicians are 1099 contracts that get paid for handling
> specific things.  The problem arises when their service gets
> suspended or they do something stupid (like change their blackberry
> email address).  Our exchange server relays everything through a
> front end postfix server.
> 
> When the condition happens, the sender receives an email status
> that the email address is invalid.  As part of this they also see
> the tech's blackberry address, which we don't want them to see.

As required by standards, Postfix sends bounces to the envelope
sender address (not the From: header address). One simple solution
then is to replace the envelope sender address by the address of
the person who should handle bounces.

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.

        Wietse

Reply via email to