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.
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
this only happens with some people and not others so i added a note that you *might* have to increase the limit