On Fri, Apr 16, 2021 at 01:39:47PM +0200, Torsten Müller via Exim-users wrote:
> Am 16.04.2021 um 10:04 schrieb Heiko Schlittermann via Exim-users:
> >            server_condition = ${if or{\
> >                {bool{{${lookup mysql {MYSQL_AUTH_GWUSERPLAIN}}} {no}{yes}}}\
> >                {bool{{${lookup mysql {MYSQL_AUTH_PLAIN}}} {no}{yes}}}\
> >            }}
...
> 103670 expansion failed: unrecognised boolean value "{1" inside "or{...}"
> condition
> 103670 SMTP>> 435 Unable to authenticate at present
> 
> Hmm, the lookup yielded: 1, but the expansion seems to check
> "{1". From where comes this { ?

 IMHO, there was a mistake: one redundant level of {..} iside bool{}
 and improper ${lookup..} termination. Try:

            server_condition = ${if or{\
                {bool{${lookup mysql {MYSQL_AUTH_GWUSERPLAIN}{no}{yes}}}}\
                {bool{${lookup mysql {MYSQL_AUTH_PLAI}{no}{yes}}}}\
            }}
-- 
 Eugene Berdnikov

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to