Author: Gordon RossDate: 2006-03-14 15:38 UTC To: exim-usersSubject: [exim] Unable to do a simple lsearch
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 ?
Thanks,
GTG
--
Gordon Ross,
Network Manager/Rheolwr Rhydwaith
Countryside Council for Wales/Cyngor Cefn Gwlad Cymru