Re: [exim] condition failure

Góra strony
Delete this message
Reply to this message
Autor: Tony Finch
Data:  
Dla: Daniel Lafraia
CC: exim-users
Temat: Re: [exim] condition failure
On Wed, 1 Jun 2005, Daniel Lafraia wrote:
>
> condition = ! ${if exists {CATATUDO_LIST} { ${lookup{$sender_address}dbm*@{CATATUDO_LIST}} } { no } }
>
> Here's the debug. When the lookup yielded "no", the router should NOT be
> called, is that correct?


The problem is a syntax error in your condition. The exclamation mark is
in the wrong place. The result of expanding the WHOLE string after the =
is used when deciding whether to run the router. If the lookup yields no
then the condition is !no which is yes - and in fact !yes is also yes. The
exclamation mark should either go before the ACL condition keyword (i.e.
before condition) or before the expansion condition (i.e. between if and
exists). But in fact I don't think you want an exclamation mark at all.

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}