[exim] How to detect virus scanner problem

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: John Horne
Ημερομηνία:  
Προς: Exim users
Αντικείμενο: [exim] How to detect virus scanner problem
Hello,

Using Exim 4.73 I have been trying to see how to detect if there is a
problem with the ClamAV virus scanner when a message arrives. I use the
simple statement:

    warn   malware = *


If clamd is running then it sets the 'malware_name' variable if a virus
is found. The variable is not set if no virus is found.

However, there seems to be no way to detect if there was a problem with
clamd and that the message was not virus scanned. I don't want to use
'accept' or 'deny' at this point, but do want to know if clamd ran or
not.

With the 'spam = ' condition I can check the 'spam_score_int' variable
since this will always be set to something if SpamAssassin has run. It
is undefined if there is a problem with SA.

Anyone any ideas about how to detect a virus scanner problem?


Thanks,

John.

-- 
John Horne                   Tel: +44 (0)1752 587287
University of Plymouth, UK   Fax: +44 (0)1752 587001