On Tue, Jan 23, 2007 at 02:39:54PM +0000, Philip Hazel wrote:
> 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}...
Yes, I know...

Philip, I hope my next question is not vastly dumb: why not use $host_data
(and other $..._data variables) to store result of matching against a═lists too?

In example above: when matching 10.10.10.1 against hostlist succeeds it is
possible to store correspondent element of list in $host_data variable. 
Am I right a bit?

-- 
Kind Regards,   Alexander Shikoff
[EMAIL PROTECTED]

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to