Re: [Exim] 'or' condition question

Pàgina inicial
Delete this message
Reply to this message
Autor: David S. Madole
Data:  
A: Michael F. Sprague, exim-users
Assumpte: 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