Re: [exim] Rewriting "Envelope to" to header "To"

Góra strony
Delete this message
Reply to this message
Autor: Viktor Dukhovni
Data:  
Dla: exim-users
Temat: Re: [exim] Rewriting "Envelope to" to header "To"
On Fri, Sep 22, 2017 at 09:34:21AM +0100, Jeremy Harris wrote:

> On 21/09/17 15:06, Artem Fedai via Exim-users wrote:
> > I'd like to rewrite Envelope to "test@*.mydomain" to the address in
> > header "TO".
> >
> > Is it possible and how?
>
> Read the docs on the redirect router and on string-expansions.
> Bear in mind that the To: header might have multiple addresses.


And that such rewriting can cause mail loops and multiple
deliveries. Extracing addresses from headers into the
message envelope should *ONLY* be done by the MUA when
the message is created. Doing so at any other time is
a really bad idea. Don't do it, even if it is possible.

-- 
    Viktor.