Re: [Exim] Re: net-lsearch not available in expansion lookup…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: exim-users
Sujet: Re: [Exim] Re: net-lsearch not available in expansion lookups?
On Tue, 20 Apr 2004, Tore Anderson wrote:

> > Another nice thing - unless it's too much trouble - would be if the
> > search could be applied directly to a host list instead of just a
> > file. Then you'd have maximum flexibility.
>
> * Philip Hazel
>
> > Don't understand.
>
> I mean during expansion. For instance:
>
>     hostlist blah = 127.0.0.1 : 1.0.0.0/8 : /etc/bleh

>
>     some_expanded_var = ${lookup {4.3.2.1} iplsearch {+blah} {yes}{no}}


There is already a different item on the WishList:

------------------------------------------------------------------------------
(73) 17-Jul-02 M Match a list from within a condition

e.g.  ${if matchdomain {$domain}{+domainlist} ...
      ${if matchhost {$sender_host_address}{1.2.3.4/10:2.3.4.5/16}...


Thought needed about how to handle host names. This may be too messy to specify
cleanly.
------------------------------------------------------------------------------

Things may be (probably are) easier with host names now that a reference
to $sender_host_name automatically causes an rDNS lookup. I haven't
looked at this for some time, but I realize how useful it would be.
Unfortunately (from your point of view), over the next 3 months I'm
going to be rather busy running a number of Exim courses and tutorials
(in various places), so I don't know how much "big" development will
happen.

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