[exim] Combining conditions with and

Pàgina inicial
Delete this message
Reply to this message
Autor: Alex Charrett
Data:  
A: exim-users
Assumpte: [exim] Combining conditions with and
Hi All,

I'm having a bit of trouble with getting two conditions to work
together.

The two conditons I want to amalgamate both work OK when on their own in
server_condition:

server_condition = ${if saslauthd{{$2}{$3}}{1}{0}}
server_condition = ${lookup{$2}lsearch{/etc/exim/auth_users}{1}{0}}

I've been feeding various permutations of these together into exim -be.
The following seems to be my best attempt, but generates a "Failed:
missing 2nd string in {} after "eq" inside "and{...}" condition" error.

server_condition = ${if and  \
            { \
            {eq{${lookup{$2}lsearch{/etc/exim/auth_users}{1}{0}}}} \
            {eq{${if saslauthd{{$2}{$3}}{1}{0}}}} \
            } \
            {1}{0} \
                     }


I've been searching through the archives, the exim documentation, the
exim 4 book and google for some more details about how these and
statements should be constructed but am drawing a bit of a blank.

Any pointers would be greatly appreciated.

Cheers,
Alex.