Check your softlimit. Looks like clamscan is running out of memory.
-----Original Message-----
From: Sebastian Ovide [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 3:37 AM
To: tomd
Cc:
Subject: Re:[Qmail-scanner-general]clamav output not captured
Hi ,
I'm using the same configuration on woody and every works properly. I've
install
qmail from .deb, vpopmail etc... from sources and clamav + spamassassin +
qmail-scannel from sources. I've follow the standard istruction. How did you
do
to install ?
|Hello Folks,
|
|After running this same configuration for quite some time on several RH
|boxes I am trying to set up a Debian machine looking toward migrating from
|RH.
|
|Everything works well until I get to the qmailscanner/clamav/spamassassin
|setup and clamav seems not to return anything into the variable "$DD" in
|qmail-scanner-queue.pl
|
|Here is the setup:
|Debian Woody with latest updates
|perl 5.8.0-18
|qmail-scanner-queue.pl 1.16 (I have tried 1.20 with same results)
|ClamAV 0.65 (have tried ClamAV version 0.54 with same results)
|spamassassin 2.61
|
|When I set DEBUG to "100" in qmail-scanner-queue.pl, here are some of the
|pertinent log (/var/spool/qmailscan/qmail-queue.log):
|
|16/12/2003 16:48:55:11847: --id is:
|uid=64014(qmailq) gid=65534(nogroup) groups=65534(nogroup)
| --
|16/12/2003 16:48:55:11847: --command is:
|/usr/local/bin/clamscan -r --threads=1
| --tempdir=/var/spool/qmailscan/qmail1071
|61133542611847 --disable-summary --unzip --unrar --unace --unarj --zoo
| --lha --
|jar --tar --tgz /var/spool/qmailscan/qmail107161133542611847 2>&1--
|16/12/2003 16:48:55:11847: --output of clamscan was:
| --
|16/12/2003 16:48:55:11847: --Status was:
|0--
|16/12/2003 16:48:55:11847: clamscan: finished scan of dir
|"/var/spool/qmailscan/
|qmail107161133542611847" in 0.488998 secs
|
|As an explanation, two changes were made that make this unstandard logging:
|
|1. I set up a variable to capture the current user ID (around line 1637):
| $idd=`id -a`;
| &debug("--id is:\n$idd--");
|
|2. The clamscan command was placed in a variable so I could see what it was
| executing (around line 1640):
| $cmd="$clamscan_binary -r --threads=1 --tempdir=$scandir/$file_id
| --disable-summary --unzip --unrar --unace --unarj --zoo --lha --jar
| --tar --tgz $scandir/$file_id 2>&1";
|
| $DD=`$cmd`;
| &debug("--command is:\n$cmd--");
|
|The variable "$DD" is empty.
|
|If I do this:
| $ su qmaild
| $ FQ=`/usr/local/bin/clamscan -r --threads=1
| --tempdir=/var/spool/qmailscan/qmail107161133542611847
| --disable-summary --unzip --unrar --unace --unarj --zoo --lha --jar
| --tar --tgz /var/spool/qmailscan/qmail107161133542611847 2>&1`
| $ echo $FQ
| /var/spool/qmailscan/qmail107161133542611847/1071611335.11849-0.qmail: OK
| /var/spool/qmailscan/qmail107161133542611847/1071611335.11849-1.qmail: OK
| /var/spool/qmailscan/qmail107161133542611847/clamtest:
|ClamAV-Test-Signature FOUND
| /var/spool/qmailscan/qmail107161133542611847/fa42b4996482c69d/COPYING: OK
| /var/spool/qmailscan/qmail107161133542611847/fa42b4996482c69d/viruses.db:
|OK
|
|So it appears that if I execute the same command as qmailq clamav is doing
|its work properly. I can't figure out why it won't within the script.
|
|Any suggestions/ideas/hints will be greatly appreciated,
| -Tom deLombarde
|
|
|-------------------------------------------------------
|This SF.net email is sponsored by: IBM Linux Tutorials.
|Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
|Free Linux Tutorials. Learn everything from the bash shell to sys admin.
|Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
|_______________________________________________
|Qmail-scanner-general mailing list
|[EMAIL PROTECTED]
|https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general
|
------------------------------------------
Sebastian Ezequiel Ovide
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general