Re: [exim] mail routing depending on from- or even reply-to …

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Heiko Schlittermann
Data:  
Para: exim-users
Assunto: Re: [exim] mail routing depending on from- or even reply-to header possible?
Hi,

Thomas Stein <himbeere@???> (Do 19 Dez 2013 15:11:04 CET):
> Am 19.12.13 14:07, schrieb Thomas Stein:
> > Hello.
> >
> > I have a strange customer request. The cusomer wishes to use differnet
> > smart hosts depending on from adress. Is this possible? My first try is
> > not sooo successfull. Maybe someone did this in the past or has an idea?
> > Thank you very much.
>
> Found a way:
>
> even_smarter_route:
>         driver = manualroute
>         #debug_print = "R: smarter_route for $domain"
>         route_data =
> ${lookup{$header_From:}lsearch{/etc/exim/smarter_route}}
>         transport = remote_smtp

>
> This works. However changing $header_From: to $header_X-Envelope-To:
> does not. Still trying.


I'd not rely on header_from, it may contain arbitrary data, even
multiple addresses. Iff you really need this header, you should use

    ${address:$h_from:}


or 
    ${extract{1}{:}{${addresses:$h_from:}}}


But this is not safe anyway.

I'd rely on $sender_address.

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: 7CBF764A -
 gnupg fingerprint: 9288 F17D BBF9 9625 5ABC  285C 26A9 687E 7CBF 764A -
(gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2  7E92 EE4E AC98 48D0 359B)-