Re: [exim] Smart Host Routing

Góra strony
Delete this message
Reply to this message
Autor: John McMurray
Data:  
Dla: exim-users
Temat: Re: [exim] Smart Host Routing
Hi guys, thanks for replying...

I've finally managed to get it to work to send only for some of my
hosted domains using "senders". I'll post the snippet below in case its
useful to anyone else:


     begin routers


     send_via_ses:
         driver = manualroute
         senders = *@domain.co.za : *@test.domain2.co.za
         domains = !+local_domains
         transport = ses_smtp
         route_list = * smtp.sparkpostmail.com ;



Thank you,

John McMurray
john@???





On 03/09/2016 15:13, Jeremy Harris wrote:
> On 03/09/16 13:45, John McMurray wrote:
>> 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..
> The domains option on the router decides whether or not the router
> triggers. The domain-pattern element (1st element) of each rule
> in a list given by the route-list option, on a manualroute router,
> decides if the routing rule fires.
>
> In both cases you're matching against the destination domain of
> the message.
>
>> Still, any pointers (even to the correct spot in the docs) would be
>> appreciated.
> http://exim.org/exim-html-current/doc/html/spec_html/ch-the_manualroute_router.html#SECID120
>
> (but you were probably there already)