PBR said:
>
> Every couple of weeks my server slows down from too many clamscan
> processes running. They seem to be running on the bounced mail account as
> a result of spammers.
>
> I changed /etc/clamav.conf to MaxThreads 5 but I still get dozens of
> clamscan threads running.

clamav.conf and the binaries that expect it are obsolete. Unless you
mistyped the file name, you seem to be out of date on your installation,
or are unaware that the current conf file is clamd.conf. If you are out of
date it is urgently advised you upgrade soon.

>
> Procmail > Trashscan > Clamscan
>
> Any way to keep the number of clamscan processes down?

Use clamdscan and clamd instead of clamscan. It doesn't have to load the
virus pattern files each time it runs (they are loaded once by clamd) and
is more efficient as a result. Or even better, use ClamAV's milter with
sendmail and don't do virus checking with procmail. The added benefit is
you can reject the message before it's accepted, and you can be a force in
stopping these at the source.

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

Reply via email to