RE: [Exim] route based on source ip

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

...