On Tue, 9 Dec 2003, Mike Brodbelt wrote:

MB>Just a quick note to point out that the problem with clamd blocking and
MB>then clamav-milter spawning a ridiculous number of chils processes is
MB>still not fixed in the CVS snapshot from today. I see this in the logs:-
MB>
MB>Dec  9 16:08:49 castor clamd[22701]: Self checking every 3600 seconds.
MB>Dec  9 16:08:49 castor clamd[22701]: Timeout set to 180 seconds.
MB>Dec  9 16:08:49 castor clamd[22701]: SelfCheck: Database status OK.
MB>Dec  9 17:09:25 castor clamd[22701]: SelfCheck: Database status OK.
MB>Dec  9 17:19:29 castor clamd[22701]: Session 3 stopped due to timeout.
MB>Dec  9 17:19:31 castor clamd[22701]: Session 0 stopped due to timeout.
MB>Dec  9 17:19:33 castor clamd[22701]: Session 2 stopped due to timeout.
MB>Dec  9 17:19:40 castor clamd[22701]: Session 4 stopped due to timeout.
MB>Dec  9 17:20:42 castor clamd[22701]: Session 1 stopped due to timeout.
MB>Dec  9 17:22:30 castor clamd[22701]: Session 3 stopped due to timeout.

MB>This behaviour has been going on ever since I first installed clamav -
MB>just over 2 1/2 months ago. Does anyone know what causes it, and is
MB>there any hope of a fix?

Clamd+clamav-milter are quite unstable when clamd sessions are timed out.
More timeouts, more unstability. Current default behavior of clamav-milter
is to connect to clamd as soon as sendmail receives "mail from: <[EMAIL PROTECTED]>"
from mail client. Some mail clients (dial-upers, spammers, overloaded mail
hosts) may send a message for 2 hours and more... Having timeout of 180 sec
is definitely too low for clamav-milter default mail scanning.

   You have two options: (1) increase this timeout to a big value. 7200 was
not enough for me: I still had 1-2 timouts per 24 hours. (2) use option
--quarantine-dir=/var/quarantine when starting clamav-milter. Then milter
will pre-save message into a temporary file in that directory, and pass it
to clamd only after it is really ready for scan. As a side effect :)
infected messages will be left in that dir for your review.

misha.



-------------------------------------------------------
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
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to