Found it.
it was easy (as i knew it would be), but i'll note it here so others learning (as i am) won't have to struggle.
begin routers
exchange_route:
driver = manualroute
local_parts = /etc/exim/exchange.list
route_data = 172.16.110.81
transport = remote_smtp
smart_route:
driver = manualroute
route_data = 172.16.102.10
transport = remote_smtp
local_parts is the hostname half of the email address, compared against the list (in this case /etc/exim/exchange.list) and routed accordingly. no match, proceeds to next router.
g.
>>> "Gary Stothers" <gary_stothers@???> April 12, 2005 2:56:26 PM >>>
Good Afternoon,
I am trying to write a router that will deliver mail to two different mail servers based upon host address. i.e. when mail arrives for john@??? i redirect it to 172.16.102.10 but if it's to suzy@??? i redirect it to 172.16.110.81
here's what i have in my router file.
begin routers
exchange_route:
driver = manualroute
condition = /etc/exim/exchange.list
route_data = 172.16.110.81
transport = remote_smtp
smart_route:
driver = manualroute
route_data = 172.16.102.10
transport = remote_smtp
Thanks for any help.
Gary.
--
## List details at
http://www.exim.org/mailman/listinfo/exim-users
## Exim details at
http://www.exim.org/
## Please use the Wiki with this list -
http://www.exim.org/eximwiki/