[exim] Smart Host Routing

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