Re: [exim] Combining conditions with and

Etusivu
Poista viesti
Vastaa
Lähettäjä: Jakob Hirsch
Päiväys:  
Vastaanottaja: Alex Charrett
Kopio: exim-users
Aihe: Re: [exim] Combining conditions with and
Alex Charrett wrote:

> The following seems to be my best attempt, but generates a "Failed:
> missing 2nd string in {} after "eq" inside "and{...}" condition" error.


>             {eq{${lookup{$2}lsearch{/etc/exim/auth_users}{1}{0}}}} \


Like it sais: equal to _what_? So just put a {1} at the end:

{eq {${lookup{$2}lsearch{/etc/exim/auth_users}{1}}}{1}} \

>             {eq{${if saslauthd{{$2}{$3}}{1}{0}}}} \


same here, but since saslauthd is condition already you can leave out
the eq and if stuff:

{saslauthd{{$2}{$3}}} \