Re: [exim] Combining server_condition

Etusivu
Poista viesti
Vastaa
Lähettäjä: Evgeniy Berdnikov
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [exim] Combining server_condition
On Fri, Apr 16, 2021 at 02:35:22AM +0200, Torsten Müller via Exim-users wrote:
> My last attempt was:
>
>         server_condition = ${if or{\
>             {{${lookup mysql {MYSQL_AUTH_GWUSERPLAIN}}} {no}{yes}}\
>             {{${lookup mysql {MYSQL_AUTH_PLAIN}}} {no}{yes}}\
>         }}

>
> , but this doens't give the expected result.
> Did i i make an error in combining the conditions ?


Yes, or{..} expects boolean arguments, not strings like "no" or "yes".
I recommend to use "exim -be" to debug such expressions quickly.
--
Eugene Berdnikov