[exim] Router condition to send to different mail servers

Inizio della pagina
Delete this message
Reply to this message
Autore: Gary Stothers
Data:  
To: exim-users
Oggetto: [exim] Router condition to send to different mail servers
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.