Re: [Exim] Re: No search in domainlist after ::

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: Thomas Mueller
CC: exim-users
Sujet: Re: [Exim] Re: No search in domainlist after ::
On Thu, 22 Apr 2004, Thomas Mueller wrote:

> I don't know if that's the way I want to do it - I simply don't know a
> better way :-)


The point is that there is a difference between, for example,

hosts = ${lookup mysql {some query}}

and

hosts = mysql;some query

In the first case, the lookup happens, and the result of the query is a
list of items (it should be colon-separated) that is scanned to see if
any of them match the host.

In the second case, the query is run, and it if succeeds, the host
matches the list.

Both of these methods can be useful in different circumstances. However,
you shouldn't use the first if the list that it generates is very long,
because scanning long lists is inefficient.

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