[exim] lookup in and

Top Page
Delete this message
Reply to this message
Author: Klaus Ethgen
Date:  
To: exim-users
Subject: [exim] lookup in and
Hello,

I stumble over the problem that "lookup" is not possible inside of an
"and" construct.

While it seems to be ok to have as much "condition" lines as you wish in
a acl, a router only accept one. That implies to use "and" for all
conditions. But if I need to use a "lookup" inside them I get an error.
However, after some search I found one post in this list that this is
not possible. But there is no way out of the problem. Also I do not find
any about this problem in the original documentation.

It might be a solution to use the sole lookup and put the rest of the
"and" in the first expansion part. But what if the lookup should be only
done if the first condition matches?

At the moment I utilize a embedded perl construct. This is not nice as
all lookups can be done by exim itself. But I find no way else out.
Anybody an idea?

${if and{{={25}{$received_port}}{lookup ldap{...}}}}

Regards
   Klaus
- -- 
Klaus Ethgen                              http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16   Klaus Ethgen <Klaus@???>
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C