Clamscan is not the client for clamd, clamdscan is. This sounds like perm problem what user is q-s running as? What user is calling clamdscan?
-----Original Message----- From: Greg Kopp [mailto:[EMAIL PROTECTED] Sent: Sunday, June 13, 2004 1:27 PM To: Micha Silver Cc: [EMAIL PROTECTED]; Jason Staudenmayer Subject: Re: [Qmail-scanner-general]clamdscan has problem? I had the same problem. I solved it by running clamd in daemon mode and running clamscan as a client in qmail-scanner. Originally I was running clamdscan directly from qmail-scanner (ala qmailrocks.org) Greg Micha Silver wrote: > Jason Staudenmayer wrote: > >> Bump up your softlimit and check the permissions for the user running >> clamdscan >> >> -----Original Message----- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: >> Friday, June 11, 2004 11:10 PM >> To: [EMAIL PROTECTED] >> Subject: [Qmail-scanner-general]clamdscan has problem? >> >> >> Dear all, >> >> What is the problem of the following error msg? >> 12/06/2004 11:04:44:32425: error_condition: X-Qmail-Scanner-1.21st: >> clamdscan: corrupt or unknown clamd scanner error or >> memory/resource/perms >> problem - exit status 0, but no output! >> >> >> How to fix it? >> >> Thank you. >> >> Stanley >> >> >> >> > Today I upgraded clamav (using yum) to 0.72 and I started getting > those same errors, with 1 difference: On my system the error reads > exit status 2: > > Jun 13 11:13:43 ns X-Qmail-Scanner-1.20: > [ns.arava.co.il108711442346532126] clamscan: corrupt or unknown ClamAV > scanner error or memory/resource/perms problem - exit status 2 > Jun 13 11:13:44 ns X-Qmail-Scanner-1.20: > [ns.arava.co.il108711441946532109] clamscan: corrupt or unknown ClamAV > scanner error or memory/resource/perms problem - exit status 2 > > I have been running 0.70 with no problems for months now. My softlimit > is 18 MB (and hasn't been a problem). I increased it to 24 MB but > still the same errors. I've been thru the perms for all relevant > directories but I can't find anything. > I don't think the problem is with clamav since I can start the daemon, > and I can use clamdscan from the command line successfully: > > [EMAIL PROTECTED] new]# setuidgid qscand clamdscan > /var/spool/qmailscan/quarantine/new/ns.arava.co.il108711354146528347 > /var/spool/qmailscan/quarantine/new/ns.arava.co.il108711354146528347: > Worm.SomeFool.Gen-1 FOUND > > ----------- SCAN SUMMARY ----------- > Infected files: 1 > Time: 0.041 sec (0 m 0 s) > > I have changed the clamscan_binary line to force qmail-scanner to user > the regular clamscan... > > [EMAIL PROTECTED] new]# grep clamscan_binary /var/qmail/bin/qmail-scanner-queue.pl > #my $clamscan_binary='/usr/bin/clamdscan'; > my $clamscan_binary='/usr/bin/clamscan'; > > ...and scanning continues successfully. But I'd like to return to > using the clamd daemon, rather than calling clmascan individually for > each message. > > My qmail-scanner is: > [EMAIL PROTECTED] new]# /var/qmail/bin/qmail-scanner-queue.pl -v > qmail-scanner-queue.pl > > Version: 1.20 > > Perl: Summary of my perl5 (revision 5.0 version 8 subversion 1) > configuration: > > Scanners: perlscanner, clamscan_scanner > > Scanner versioning: clamscan: 0.72. > > Operating System: Linux, 2.4.22-1.2115.nptl > Hardware: i686 > > > What else might I have missed. > > TIA, > --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 > _______________________________________________ > Qmail-scanner-general mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general ------------------------------------------------------- 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 _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general