[Exim] a condition is doing my head in

Top Page
Delete this message
Reply to this message
Author: Drav Sloan
Date:  
To: exim-users
Subject: [Exim] a condition is doing my head in
Howdy all.

A quick condition master, got a quick second to have a look at the
following condition. All I want is a simple if ... and ... but
I've been going around in circles and pulling alot of hair...

  condition = ${if \
     and {\
        { ${lookup \
           {$interface_address} \
           lsearch {Exim_Tables/aaa_file} \
        } }\
        { ${lookup \
           {$domain} \
           lsearch {Exim_Tables/bbb_file} \
        } }\
     } {1}{0} }


Gives the error:

condition name expected, but found "${lookup {$inter"


So what craziness do I need to make it work? :)

D.