[exim] Re: Insert header if spam/virus detector is unavailab…

Top Page
Delete this message
Reply to this message
Author: Nikolaus Rath
Date:  
To: exim-users
Subject: [exim] Re: Insert header if spam/virus detector is unavailable
R. McGlue <r.mcglue@???> wrote:
> Nikolaus Rath wrote:
>> Hello,
>> I want to insert a warning header if the virus or spam check failed
>> for some reason, but I'm unable to figure out how to detect this
>> condition. Is somebody able to give advice?
>> Thanks in advance,
>>    --Nikolaus

>>
> sorry its not an answer to your question Nikolaus but I too am trying
> to implemetn the same feature as Spamassassin sometimes skips the odd
> message.


I found a solution myself:

deny message = Go away
     spam = nobody/defer_ok


warn message = "X-Spam: test failed!"
     condition = ${if !def:spam_score}



Maybe it is better style to add a     
     spam = nobody:true/defer_ok
to the second condition - I'm not sure.



--Nikolaus

-- 
Eines der Geheimnisse des Usenet ist es eben, dass Anspielungen,
die in Kneipen und auf nicht-einschlaegigen Feten nur stumpfes
Unverstaendniss hervorrufen, endlich auf Verstaendnis treffen.
                                    -- Juergen Ernst Guenther in dafu