Re: [Exim] 'or' condition question

Top Page
Delete this message
Reply to this message
Author: David S. Madole
Date:  
To: Michael F. Sprague, exim-users
Subject: 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