On tisdagen den 20 januari 2009, [email protected] wrote:
> I have some trouble configuring exim to not filter incoming messages
> given a flag in a database is set. I have tried using the following
> configuration:
>
> QUERY_FILTER    = ${lookup mysql{SELECT filter FROM mail WHERE \
>                   local_part="${quote_mysql:$local_part}" AND domain= \
>                   "${quote_mysql:$domain}"}}
>
> [...]
>
> acl_check_data:
>
>   deny  message = Spam detected.
>   spam = spamd:true/defer_ok
>   condition = ${if and { \
>                          {<{$message_size}{128K}} \
>                          {>{$spam_score_int}{64}} \
>                          {eq{'1'}{QUERY_FILTER}} \
>                        } \
>                {1}{0}}

Erm, the query will return "0" or "1", not "'1'".

-- 
Magnus Holmgren        [email protected]
                       (No Cc of list mail needed, thanks)

Attachment: signature.asc
Description: This is a digitally signed message part.

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to