[exim] Smart Host Routing

Etusivu
Poista viesti
Vastaa
Lähettäjä: John McMurray
Päiväys:  
Vastaanottaja: exim-users
Aihe: [exim] Smart Host Routing
Hi everyone,

I have a smart host set up on one of my centos 6 servers. This works
fine like this:

         begin routers


         send_via_spark:
         driver = manualroute
         domains = ! +local_domains
         transport = ses_smtp
         route_list = * smtp.sparkpostmail.com ;



I do need to be able to only send some of the domains on server through
that router though. My understanding was that I could rewrite the
route_list to something like this:

     route_list = example.com smtp.sparkpostmail.com ; test.com 
smtp.sparkpostmail.com ;



This should route those domains via the smart host and everything else
via a different router.

This doesn't work for me though. If I have the * (which I assume means
all) then it works. If I try with a specific domain it doesn't use the
smart host.

Any pointers please?

By the way, I don't have to do it this way. If there is another method I
can use to determine which domains get routed through the smart host
then I'm happy to use another method..

Regards,

John