Re: [Exim] Rewriting envelope headers only on outgoing smtp

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Andreas Metzler
Fecha:  
A: exim-users
Asunto: Re: [Exim] Rewriting envelope headers only on outgoing smtp
On Sun, Sep 28, 2003 at 10:02:01PM +1000, Russell Shaw wrote:
[...]
> I have this in exim.conf (smtp transport):
>
> remote_smtp:
>     driver = smtp
>     headers_rewrite = russell@??? rjshaw@???

>
> Then test with:
>
> mail -s test user@remote
> Another test
> ^D
>
> The response shows that russell@??? hasn't been
> replaced with rjshaw@???.

[...]
>   user@remote
>     SMTP error from remote mailer after MAIL
>     FROM:<russell@???> SIZE=1364:
>     host smtp.iprimus.com.au [203.134.152.42]: 553
>     <russell@???> unable to verify address
> ------ This is a copy of the message, including all the headers. ------

[...]

Quoting spec.txt:
| These rewriting rules are not applied to the envelope. You can change
| the return path using "return_path"; you cannot change envelope
| recipients at this time.


This should do the trick:
return_path = ${if eq \
               {$return_path}{russell@???}\
               {rjshaw@???}{fail}}
           cu andreas