Re: [exim] preserving original envelope recipient in two-pas…

Etusivu
Poista viesti
Vastaa
Lähettäjä: Stanislaw Halik
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [exim] preserving original envelope recipient in two-pass SpamAssassin setup
Sam Hathaway <list.exim-users@???> wrote:
> I've noticed that when mail is resubmitted to Exim after being
> scanned, the "RCPT TO:" line is the rewritten recipient address, not
> the original recipient address. So on the second pass, the original
> recipient information is totally gone. This prevents my users from
> filtering their mail using $original_local_part and $original_domain
> in Exim filter files, or from getting useful information from
> Envelope-to: headers.


putting these into your pipe transport:

#v+
user = mailnull
group = mail
#v-

should do the trick for 'From' and 'To' headers. i'm not so sure about
the envelope sender, but when in doubt, use:

#v+
headers_add = "X-Original-To: ${lc:${local_part}}@${lc:${domain}}"
headers_remove = X-Original-To
#v-