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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Jason Robertson
Date:  
À: exim-users
Sujet: Re: [Exim] don't understand lsearch-lookup
This is what I used

ifuture:
driver = domainlist
transport = remote_smtp
route_file = /etc/exim/domains/route
search_type = lsearch

with /etc/exim/domains/route
iftr.com 216.18.61.48 byname
iftr.net 216.18.61.48 byname
iftr.org 216.18.61.48 byname

On 19 Dec 2000, at 9:14, Philip Hazel wrote:

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

>
>
>




---
Jason Robertson                
Network Analyst            
jason@???    
http://www.astroadvice.com