RE: [Exim] route based on source ip

Top Pagina
Delete this message
Reply to this message
Auteur: Mike Bethune
Datum:  
Aan: exim-users
Onderwerp: RE: [Exim] route based on source ip
> > Yes. The list of hosts in a manualroute router is expanded. Use
> > something like this:
> >
> >   route_list = whatever.domain \
> >     "${if
> > eq{${mask:$sender_host_address/24}}{10.0.0.0/24}{hostA}{hostB}}"

>
> Thanks, it works great. But now what if I want to pass this
> router instead of supplying hostB in the event the mask doesn't match?


I'll answer myself since I found this works :)

smart_test:
driver = manualroute
condition = "${if eq{${mask:$sender_host_address/24}}{10.0.0.0/24}{1}{0}}"
transport = remote_smtp
route_list = * hostA

...