Re: [Exim] Exim 4.24 lsearch lookup problems

Top Page
Delete this message
Reply to this message
Author: James P. Roberts
Date:  
To: Michael Ludwig, exim-users
Subject: Re: [Exim] Exim 4.24 lsearch lookup problems
----- Original Message -----
From: "Michael Ludwig"
Sent: Friday, October 31, 2003 6:58 AM
Subject: [Exim] Exim 4.24 lsearch lookup problems


>
> Hi,
>
> I have trouble getting an lsearch lookup to work.
> I tried hard, but I absolutely can't get it to work.
> I must be wrong at some point, but I don't know where.
> Why doesn't the lookup succeed?
> In the 4.20 spec pdf I read 10.13 on address lists to do a complete address

lookup.
> I also read section 11.6 on focusing the differences between
> "eq" and "match" while when using match everything returns true.
> That should be right I think.
>
> In a router condition, I made the following statement:
>
> ==========================================
> /etc/exim/exim.conf
> ==========================================
> begin routers
>
> outgoing_smtp_router_dnslookup_without_disclaimer:
>   driver = dnslookup
>   domains = ! +local_domains
>   condition = ${if eq {$sender_address}{${lookup \
>                       {$sender_address}lsearch \
>                       {/etc/exim/senders_without_disclaimer}}} \
>                       {ye}{no}}
>   transport = smtp_dnslookup_without_disclaimer
> ==========================================

>

<snip>
>
> I would be glad if someone could help me here a bit.
> Thanks so far for reading,
>
> Michael
>


If I am not mistaken, all you want is to determine if $sender_address is in
the file, right? So, the result of the lsearch by itself is all you need
(either it finds it, or it doesn't). I think you should drop the "eq" test.

Regards,
Jim Roberts
Punster Productions, Inc.