Re: [exim] Unable to do a simple lsearch

Etusivu
Poista viesti
Vastaa
Lähettäjä: Peter Bowyer
Päiväys:  
Vastaanottaja: exim users
Aihe: Re: [exim] Unable to do a simple lsearch
On 14/03/06, Gordon Ross <G.Ross@???> wrote:
> Hi,
>
> I am running Exim 4.60. I have a simple router:
>
> begin routers
>
> test:
> driver = accept
> domains = +local_domains
> local_parts = nwh
> transport = replytransport
>
>
>
> In this form, it works fine. However, as I want this to run for
> multiple recipients, I want to lookup the local_parts in a file. So I
> changed it to be:
>
> begin routers
>
> test:
> driver = accept
> domains = +local_domains
> transport = replytransport
> condition = ${if eq
> {$local_part}{lsearch{/etc/exim4/user_list}}{no}{yes}}
>
> and my /etc/exim4/user_list file has just:
>
> nwh
> ANOther
>
> However, this doesn't work. Can someone explain what I've done wrong
> please ?


You have the syntax for the condition around your neck. But rather
than sort it out, why not simply

local_parts = /etc/exim4/user_list

?

Peter




--
Peter Bowyer
Email: peter@???
Tel: +44 1296 768003
VoIP: sip:peter@???
VoIP: *5048707000@???
FWD: **275*5048707000
VoipTalk: **473*5048707000