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

Top Pagina
Delete this message
Reply to this message
Auteur: Exim users mailing list
Datum:  
Aan: Peter Bowyer
CC: Exim users mailing list
Onderwerp: 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