Re: [Exim] route based on source ip

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: Mike Bethune
CC: exim-users
Betreff: Re: [Exim] route based on source ip
On Tue, 16 Sep 2003, Mike Bethune wrote:

> 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}}"


OTTOMH, unchecked, and untested.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book