Re: [Exim] smarthost base on domain question

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Tabor J. Wells
Data:  
Para: ayu20
CC: exim-users
Asunto: Re: [Exim] smarthost base on domain question
On Wed, Mar 03, 2004 at 09:42:11PM +0000,
ayu20@??? <ayu20@???> is thought to have said:

> Here's what I am trying to accomplish. I want the smarthost router to
> search a text file and determine the smarthost to use to route those
> messages. Here's my smarthost router and smarthostroutelist. The IP
> address on the list are made up for this example. I am using the real
> IP on the server.
>
> smarthost:
> driver = manualroute
> domains = ! +local_domains
> route_list = $domain \
> ${lookup{$domain}lsearch{CONFDIR/smarthostroutelist}}
> ignore_target_hosts = +bogusips
> no_verify
> host_find_failed = defer
> same_domain_copy_routing = yes
> transport = remote_smtp
>
> cat smarthostroutelist
> yahoo.com: 2.3.4.5
> comcast.net: 2.3.4.5
> aol.com: 4.5.6.3


You want to use route_data rather than route_list since you're specifying
the routing in an external file.

route_data = ${lookup{$domain}lsearch{CONFDIR/smarthostroutelist}}

will do what you want.

--
--------------------------------------------------------------------
Tabor J. Wells                                     twells@???
Fsck It!                 Just another victim of the ambient morality