Re: [exim] headers_rewrite

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Tony Finch
Datum:  
To: Stefan Klatt
CC: exim-users@exim.org
Neue Treads: [exim] exim 4.62 & maildir
Betreff: Re: [exim] headers_rewrite
On Fri, 12 May 2006, Stefan Klatt wrote:
>
> auto_remote_smtp:
> driver = smtp
> headers_rewrite = stefan.klatt@???
> stefan.klatt@??? frs
> return_path = stefan.klatt@???
>
> If i change the return_path string exim change "MAIL FROM". But i can do
> anything i want... "RCPT TO:" doesn't change...
> Exim use the return_path but not headers_rewrite, why? Where is my fault?


The headers_rewrite option only rewrites the message header, not the
envelope. If you want to alter the envelope recipient address in the
routers, use a redirect router, e.g.

local_to_global:
driver = redirect
domains = cac-netzwerk.local
data = ${quote_local_part:$local_part}@???

Of course, you would not have this problem if you use globally-valid email
addresses on your local network.

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}