Re: [Exim] don't understand lsearch-lookup

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: Patrick von der Hagen
CC: exim-users
Assumpte: Re: [Exim] don't understand lsearch-lookup
On Tue, 19 Dec 2000, Patrick von der Hagen wrote:

> ---
> domain:
> driver = domainlist
> transport = remote_smtp
> condition = $local_part as key is found in lsearch, returning $value
> route_list = "* $value bydns_a"


"condition" doesn't work like that. The result of "condition" must be
yes/no/true/false. What you want here is NOT to use "condition".
Instead, do something like

domain:
driver = domainlist
transport = remote_smtp
route_list = * ${lookup{$local_part}lsearch{/some/file}{$value}fail} bydns_a

Note the use of "fail". If the lookup cannot find the entry, the driver
declines and the address is passed to the next router.

However, I would also suggest you consider adding a "domains" setting,
to restrict that router to your own domains.

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