Re: [Exim] how use multiple smarthosts, depending from the "…

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Frank Tiemann
Data:  
Para: Tamas TEVESZ
CC: exim-users
Asunto: Re: [Exim] how use multiple smarthosts, depending from the "from:" or "reply-to" address?
moin

> route_list = "* ${lookup{$h_to:}lsearch*{/etc/exim/file}} byname"
> should be a good way to start digging into it



i tried this:

------------------------------

smart_route:
driver = domainlist
transport = remote_smtp
headers_remove = "X-Mailer:X-Sender:X-MSMail-Priority:X-MimeOLE"
route_list = "* ${lookup{$header_from:}lsearch*{/etc/exim/smart-hosts}}
bydns_a"

------------------------------

the file "/etc/exim/smart-hosts" contains this:

------------------------------

web.de: mail.web.de
gmx.de: mail.gmx.de
sinneswandel.net: mail.sinneswandel.de
*: mail.schlund.de

------------------------------

but this is ignored, exim delivers (email-from ist "user@???") with
mail.schlund.de, not with mail.gmx.de

--
CoreOS hat diese E-Mail auf Viren ueberprueft.