RE: [Exim] How to define destination for faulty addresses fo…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: Boyle Owen
CC: exim-users
Sujet: RE: [Exim] How to define destination for faulty addresses for remote MTA?
On Thu, 3 Apr 2003, Boyle Owen wrote:

> My solution, at the moment, is simply to do:
>
>    errors_to = $header_sender

>
> What seems to happen is that if the "Sender:" header exists, its value
> is used in "errors_to" directive and the MAIL FROM and hence the
> Return-path is re-written.
>
> If there is no "Sender:" header, as is the case generally, then the MAIL
> FROM and Return-path is set to the same as the "From:" header, as
> normal.
>
> Does this seem a reasonable solution or are am I missing something even
> simpler (I was just a little surprised that I need to edit the
> configuration of Exim to get this to work. I'd imagined that there was
> simply a header I could set in the MUA...).


There is no header line that is defined for this. As a previous poster
said, the standards specify that it is the envelope address that is used
for bounce messages. Many MUAs have ways of setting the envelope sender,
though if your MUA is running on the same host as Exim, and submits the
message "locally", you'll need to know about "trusted users" if you want
to allow a local process (running the MUA) to specify a sender who is
not the logged on user.

As far as "errors_to" is concerned, you can use any of Exim's string
expansion facilities to make it expand to whatever you want in different
circumstances. For example, you can make it check the existing value of
the envelope sender ($sender_address) and only rewrite for specific
values. Read up about string expansion (chapter 11 in the manuyal).


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.