Re: [Exim] using host list to deny accept router

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Philip Hazel
Fecha:  
A: Adam Henry
Cc: exim-users
Asunto: Re: [Exim] using host list to deny accept router
On Fri, 31 Jan 2003, Adam Henry wrote:

> There doesn't seem to be a net-lsearch function to be used within the
> lookup function. The only place net-lsearch will work is as a host
> list parameter?


Yes. That's because in the other cases, you can explicitly supply the
key for the search. The only reason for the existence of net-lsearch is
that, for host lists, the parameter is implicit (the host). Use lsearch
to use the host name, net-lsearch to use the host IP. If you are writing
a ${lookup, you can specify whatever key you want.

> It would be nice to use named host/domain lists in a router's
> condition statement.


Already on the Wish List:

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




--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.