Re: [Exim] envelope_to_remove in a transport?

Top Pagina
Delete this message
Reply to this message
Auteur: Mark Hynes
Datum:  
Aan: exim-users
Onderwerp: Re: [Exim] envelope_to_remove in a transport?
On Feb 03, Mark Hynes wrote:
> Hi,
>
> I use the "envelope_to_add" transport option in numerous transports,
> and this works fine for me. However, I've recently come across a situation
> where I'd like to keep an Envelope-to: header (arriving by SMTP) intact.
>
> I know that the spec says:
>
> Envelope-to: records the original recipient address from the messages's
> envelope that caused the delivery to happen. Such headers should not be
> present in incoming messages
>
> and in general I agree with that.
>
> However, in this (unusual case) some messages which arrive from one
> particular host (which is run by me and all the Envelope-to: headers can
> be trusted) and are handled by their own router and transport. Initially
> I thought "easy, I can use "envelope_to_remove = false" on the transport,
> but it seems that's a main / global configuration option only.
>
> What would people recommend? I don't know if it's possible, but might
> such an option for transports be a potential wishlist item? :-)


I've got around this by using "envelope_to_remove = false" in the
main configuration, then adding "headers_remove = Envelope-to" to
each router except the one handling the 'special case' mail, which
works fine, but still seems a bit messy. I'm tempted to write this
one of as just one of those random, obscure things :-)

- Mark

--
| Mark Hynes           mark.hynes@??? |
| Systems Developer   http://www.uk.easynet.net/ |
| Easynet Ltd   --   a part of Easynet Group plc |