I have been running clamav 0.70 from qmail-scanner-queue.pl for some months now. This is on a Fedora Core 1 server. This week I got the latest 0.72 version from Petr's crash-hat site using yum. I kept my original clamav.conf file, and after the update, freshclam started OK, as well as clamd.
However when qmail-scanner called clamdscan it failed with the following error:


Jun 14 08:09:22 ns X-Qmail-Scanner-1.20: [ns.arava.co.il10871897614628938] clamscan: corrupt or unknown ClamAV scanner error or memory/resource/perms problem - exit status 2
Jun 14 08:09:28 ns X-Qmail-Scanner-1.20: [ns.arava.co.il10871897674628950] clamscan: corrupt or unknown ClamAV scanner error or memory/resource/perms problem - exit status 2


I reverted back to using clamscan within the qmail-scanner.pl script (causing higher CPU and memory usage) and went for help on the qmail-scanner list. Today I finally hit on my problem: the clamav.conf directive "DataDirectory" was changed since 0.70 to "DatabaseDirectory". Once I fixed that syntax error I could go back to calling the clamd client clamdscan from qmail-scanner. Now I'm pretty sure I remember this change was already brought up on the list some time ago.

What threw me off for a whole day was the fact that clamd started up without any problem, and I could use the clamdscan client from the command line with no mention of the config syntax error. Only when I tried to call clamdscan from within the qmail-scanner-queue.pl script did it fail.
Why is that?


Admittedly, I stumbled over my own feet by trying to use the old config file. Directives and syntax change every so often. But if the syntax is wrong, why do clamd and clamdscan start without error? And, then why would qmail-scanner catch the wrong syntax and blame it on memory/resources/perms ???

Hope this long winded post might help someone else avoid tripping into the same hole.
--Micha




-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to