Re: [Exim] (dirlist) lookups

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: Torsten Curdt
CC: exim-users
Betreff: Re: [Exim] (dirlist) lookups
On Thu, 23 Dec 1999, Torsten Curdt wrote:

> I have
> ..
> host_accept_relay = lsearch;/somefile
> ..
>
> will the return code of the lookup
> result in a acceptance (or denial)
> of the relaying host?


If the lookup succeeds (i.e. it return OK, with some data) the host is
accepted (the data is ignored). If the lookup fails (i.e. returns FAIL)
the host is not accepted.

> The point for me is... on my new lookup:
> Do I need to match by myself or is it
> possible to just return an item list
> (like the ordinary host_accept_relay
> = /somefile) and let exim make the
> decision?
>
> So I could just return a list of IPs e.g.?


No! I'm afraid you have misunderstood how this works. The returned data
is not used. Only the existence of the host name as a key is tested.

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