On Fri, Mar 18, 2005 at 11:30:00PM +0100, Jakub Suchy said:
> Hi,
> i have really big problems running clamd on our mailserver. We have setup with
> postfix + amavisd-new + clamd + spamassassin working for more than an year 
> with
> no problems.
> 
> Now (i didn't upgrade anything) after while (few minutes) of working, postfix
> stops delivering emails and log says:
> 
> Mar 11 16:54:19 service postfix/qmgr[8669]: 9454B1A3660: to=<xxx>,
> orig_to=<yyy>, relay=none, delay=357, status=deferred (delivery temporarily
> suspended: connect to 127.0.0.1 [127.0.0.1]: read timeout)
> 
> It seems, that amavis can't connect to clamd socket, after restarting clamav
> and flushing the queue, it works for while again, than read timeouts, and so
> on...
> 
> I tried searching google, this mailing list, but nothing relevant. Running
> clamd in debug mode said nothing also...
> 
> We are using:
> postfix        2.1.5-0.backports
> clamav         0.83-1.backports
> clamav-base, clamav-daemon, clamav-freshclam, libclamav1 same versions
> amavisd-new    20030616p10-4 + perl 5.8
> linux 2.4.27-1-686
> libc6          2.2.5-11.8
> zlibc          0.9j-3
> 
> Thanks for any help, our academic network with +3000 Win users is starting to
> collapse without antivirus protection.

2 things to check - 

There is a known bug in the 0.83 release that improperly handles digest
emails, iterating over the message over and over, in effect causing a
DoS.  This is fixed in CVS.

Make sure you are allwoing enough connections and a queue of a decent
length.  Basically you want something like
incoming_messages < ((MaxConnectionQueueLength * MaxThreads) + N )

Where N is 10% of simultaneous connections, give or take.

Whether you want to increase the number of Threads or the size of your
queue is a matter of experimentation and tuning.  More threads will mean
more system load, but messages tend to get processed faster.  A longer
Queue will result in some timeouts, but will allow clamd to manage it's
load a little better.

HTH,
-- 
 --------------------------------------------------------------------------
|  Stephen Gran                  | Absence makes the heart grow frantic.   |
|  [EMAIL PROTECTED]             |                                         |
|  http://www.lobefin.net/~steve |                                         |
 --------------------------------------------------------------------------

Attachment: pgpPoymBq7lit.pgp
Description: PGP signature

_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to