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:[EMAIL PROTECTED]:$original_domain}}}

Jethro.

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

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to