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
> > is it possible to use a manualroute to use different
> transports based
> > on the source ip/range that is sending the mail?
>
> 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?

ie: If the mask isn't 10.0.0.0/24, I want to send it directly, not via the relays hostA or hostB.

thanks,
mike