Re: [Exim] help with condition

Top Page
Delete this message
Reply to this message
Author: Nico Erfurth
Date:  
To: exim-users
Subject: Re: [Exim] help with condition
Johann Spies wrote:

> # reject messages that score more than 8
>   deny message = Message viewed as spam. (scored $spam_score SpamAssassin points.)
>        condition = ${if < {$message_size} {80k} \
>            {${lookup pgsql \
>            {select 1 from emailuser where \
>            username='${uc:${quote_pgsql:$local_part}}' and \
>            spamdelete = 't' limit 1} \
>              }\
>            }\
>          }
>         spam = spamd:true
>         condition = ${if >{$spam_score_int}{80}{1}{0}}
>         log_message = Message viewed as spam. (scored $spam_score SpamAssassin points.)

>
>    accept

>
> I need to get this working urgently and I do not make any progress at
> the moment.
>
> I hope somebody can open my eyes for the solution.


Checking for recipients in a DATA-Acl does not work, because a mail can
have more than one recipient.

There is an receipe for this problem in the exiscan-acl docu, that works
with acl-variables, give it a try.

Nico