Re: [exim] Combining conditions with and

Top Page
Delete this message
Reply to this message
Author: Stephen Gran
Date:  
To: exim-users
Subject: Re: [exim] Combining conditions with and
On Sun, Jan 30, 2005 at 05:28:46PM +0000, Alex Charrett said:
> 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}}


${if or \
     { \
     {saslauthd{{$2}{$3}}} \
     {lookup{$2}lsearch{/etc/exim/auth_users}} \
     }{yes}{no}}


I think. The whole condition should have the yes/no, and I think you
want or - if they auth with sasl OR they're in the password file, right?
--
--------------------------------------------------------------------------
|  Stephen Gran                  | Horner's Five Thumb Postulate:          |
|  steve@???             | Experience varies directly with         |
|  http://www.lobefin.net/~steve | equipment ruined.                       |

--------------------------------------------------------------------------