Re: [exim] Best way to save recipient in outgoing message

Pàgina inicial
Delete this message
Reply to this message
Autor: Jethro R Binks
Data:  
A: EXIM Users
Assumpte: Re: [exim] Best way to save recipient in outgoing message
On Fri, 6 Jun 2008, David Favor wrote:

> Because messages may be forwarded between many machines, remembering the
> original recipient makes bounce processing convenient for large lists.
>

...
>     begin transports

>
>     remote_smtp:
>        driver = smtp
>        max_rcpt = 1
>        add_headers {X-Bounce: ${lc:$recipients}}

>
> This fails though because it appears $recipient is only set for incoming
> messages.
>
> Let me know the best way to save the original recipient of an outgoing
> messages into a new header field.


I do something similar; on the relevant transport, I have:

headers_add = ${if !def:header_X-Strath-Original-Recipient: {X-Strath-Original-Recipient: ${lc:$original_local_part}@${lc:$original_domain}}}

Jethro.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Jethro R Binks
Computing Officer, IT Services
University Of Strathclyde, Glasgow, UK