[exim] Router condition to send to different mail servers

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Gary Stothers
Date:  
À: exim-users
Sujet: [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.