I just read a little more closely in the docs. Seems the route_list is the domain the server is sending to (eg, sending to gmail), not local domain you're sending from... That would explain why route_list doesn't work.

I thought that's what the domains line was for... guess I'll need to read a bit more thoroughly on this..

Still, any pointers (even to the correct spot in the docs) would be appreciated.

Regards,

John

On 03/09/2016 14:38, John McMurray wrote:
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






--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to