Author: Frank Tiemann
Date:
To: exim-users
Subject: Re: [Exim] how use multiple smarthosts, depending from the "from:"
or "reply-to" address? (update)
moin
i have tried it an other way, like described in solution 2. after using the
variable "reply_address", it works - partucalry...
normaly, an email-from is construced like this:
"name" <address@???>
if there is only the address, its like this:
address@???
i found, that this works with both:
gmx_route:
driver = domainlist
transport = remote_smtp
route_list = "* \"${if match{$header_from:}{\\@gmx\\.*\\$} {mail.gmx.de}
fail}\" bydns_a"
if the from-address is something@???, the smarthost ist mail.gmx.de
if i use $reply_address, the criteria is the reply-to, not the
from-address, so i prefer the "$header_from"
all nice, but - i prefere the solution 1, with the smarthost-list. but i
dont know, how to build this...
my personal dream is something like 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"
-------------------------------
and the smart-hosts file like this:
-------------------------------
gmx.*: mail.gmx.de
sinneswandel.de: mail.sinneswandel.de
*: mail.provider.org
-------------------------------
is this possible?
frank
--
CoreOS hat diese E-Mail auf Viren ueberprueft.