Re: [exim] How to determine address of network by IP address…

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Peter Bowyer
CC: Exim users mailing list
Subject: Re: [exim] How to determine address of network by IP address of host
On Tue, 23 Jan 2007, Peter Bowyer wrote:

> > > >                hosts = +nets

> > > >
> > > > Remote relay connects from host 10.10.10.1.
> > > >
> > > > How I can determine address of network which contains 10.10.10.1 after
> > > > such 'hosts' condition succeeded?
> > >
> > > $sender_host_address
> >
> > $sender_host_address is not a address of network. This is an address of
> > remote host. I need subnet address.


You can test for an individual network:

${if match_address{$sender_host_address}{10.10.10.0/24}...


-- 
Philip Hazel            University of Cambridge Computing Service
Get the Exim 4 book:    http://www.uit.co.uk/exim-book