Re: [Exim] 'or' condition question

Góra strony
Delete this message
Reply to this message
Autor: David S. Madole
Data:  
Dla: Michael F. Sprague, exim-users
Temat: 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