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

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Exim users mailing list
Datum:  
To: Peter Bowyer
CC: Exim users mailing list
Betreff: Re: [exim] How to determine address of network by IP address of host
On Tue, Jan 23, 2007 at 01:58:53PM +0000, Peter Bowyer wrote:
> On 23/01/07, Alexander Shikoff <minotaur@???> wrote:
> > One more question about hostlists.
> >
> > I have
> >
> > hostlist nets = 10.10.10.0/24 : 20.20.20.0/24
> > ...
> >
> > acl_check_rcpt:
> >        accept
> >                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.

In other words: when 'hosts' condition in example above succeeded for remote
host 10.10.10.1 I need to get 10.10.10.0/24 from 'nets' list.

-- 
Kind Regards,    Alexander Shikoff
minotaur@???
Mob.: +380 67 946 31 49