Re: [Exim] Condition with and

Top Page
Delete this message
Reply to this message
Author: Nico Erfurth
Date:  
To: Jan Suchanek
CC: exim-users
Subject: Re: [Exim] Condition with and
Jan Suchanek wrote:

> I have a little problem with using a condition with "and". I have
> following condition:
>
> condition =     "${if and {\
>                                 {!eq\
>                                         {{${lookup
> pgsql{SQL_REJECT_LIST}}}{lc:$sender_address}}\
>                                 }\
>                                 {eq\
>                                         {{${lookup
> pgsql{IS_A_LIST}}}{lc:$local_part}}\
>                                 }\
>                         }{true}{false}}"


Looks ok to me.

> The idea is that the transport is called by this router when both
> conditions are true. When I try the condition with some test cases I can
> see (with -d) that in some cases one,both or none of the lookups fail
> but the router is called every time.
>
> Any ideas what I am doing wrong (or a hint how I can debug the condition
> any further)?


have you tried it with a pure exim -be -d?

Can you send the relevant parts of the debuglog and the two
query-strings to the list?

And please tell us what version of exim you use (i think its exim4?).

ciao