Re: [Exim] 'or' condition question

Etusivu
Poista viesti
Vastaa
Lähettäjä: David S. Madole
Päiväys:  
Vastaanottaja: Michael F. Sprague, exim-users
Aihe: Re: [Exim] 'or' condition question
Michael F. Sprague wrote:
>
> condition = ${if or {\
>                      {eq {$acl_m0}\
>                          {${lookup{$domain}dbm{RELAYTODB}}}\
>                          {1}{0}}\
>                      {eq {$acl_m0}\
>                          {${lookup{$domain}dbm{LOCALDB}}}\
>                          {1}{0}}\
>                     }\
>               }


That's not the correct syntax for "if" or "eq", please see:

http://www.exim.org/exim-html-4.40/doc/html/spec_toc.html#TOC123

I'm guessing that you want the condition to be true if either equality check
is?

Something like this?

condition = ${if or { {eq {$acl_m0} {${lookup{$domain}dbm{RELAYTODB}}}} \
                      {eq {$acl_m0} {${lookup{$domain}dbm{LOCALDB}}}} \
                    } {1} {0}}


David