Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52114 - qmail-scanner barfs with "clam_scanner: corrupt or unknown ClamAV scanner error or memory/resource/perms problem - exit status 50"
Summary: qmail-scanner barfs with "clam_scanner: corrupt or unknown ClamAV scanner err...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Docs Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-26 10:46 UTC by Sumanth Peddamatham
Modified: 2004-05-26 19:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sumanth Peddamatham 2004-05-26 10:46:36 UTC
I set up a mail server following the instructions at:
http://www.gentoo.org/doc/en/qmail-howto.xml

When the smtpd server recieves an e-mail and tries to munge it through clamav, i get the following error in the /var/log/qmail/qmail-smtpd/current:
X-Qmail-Scanner-1.16:[minh1085591115426517] clam_scanner: corrupt or unknown ClamAV scanner error or memory/resource/perms problem - exit status 50

I traced it down to line 1651 in /var/qmail/bin/qmail-scanner-queue.pl

When I comment the line starting with "&tempfail("clam_scanner:...", the mail is delivered correctly.  I don't see how the code is correct.  According to the man for clamscan, a return code of !1 can mean a lot of things besides a failure, so I don't know why the code is assuming that it's a failure condition.

Reproducible: Didn't try
Steps to Reproduce:
1.Follow the instructions in at http://www.gentoo.org/doc/en/qmail-howto.xml
2.Send e-mail to my mailserver from an external account
3.Mail is undelivered with the aformentioned error in the log

Actual Results:  
Mail is undelivered. 
X-Qmail-Scanner-1.16:[minh1085591115426517] clam_scanner: corrupt or unknown
ClamAV scanner error or memory/resource/perms problem - exit status 50

in log file.

Expected Results:  
The mail should have been delivered without error.
Comment 1 Sumanth Peddamatham 2004-05-26 11:37:15 UTC
Solved bug by increasing softlimit_opts in file /var/qmail/control/conf-common to '15000000' instead of '8000000'.

This should be added to the instructions at:
http://www.gentoo.org/doc/en/qmail-howto.xml
Comment 2 SpanKY gentoo-dev 2004-05-26 19:17:20 UTC
this only happens with some people and not others so i added a note that you *might* have to increase the limit