Hi,
I have modified amavisd.conf and amavisd.conf-maia for to enable av primary
and I have correct the path about local_socket , in particular:
['ClamAV-clamd',
\&ask_daemon, ["CONTSCAN {}\n", "/tmp/clamd"],
qr/\bOK$/, qr/\bFOUND$/,
qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
..and now is all ok.
Thanks.
------
Salvatore.
----- Original Message -----
From: "Salvatore" <[EMAIL PROTECTED]>
To: "ClamAV users ML" <[email protected]>
Sent: Thursday, July 05, 2007 10:54 AM
Subject: Re: [Clamav-users] CPU & clamscan
> Hi, pherpas my problem is equal at problem descript in thread with subject
> "amavisd-new + clamAV", also on my mail server Same here I have:
>
>> I discovered that amavisd-new is proceeding the virus scanning by using
>> clamscan, which takes 2 process by capacity 60%-90% of CPU,
>> meanwhile it takes 3 minutes to scan one email
>
> I use maia-1.0.2 with amavisd-new and in clamd.conf and freshclam.conf I
> have enable parameter:
>
> AllowSupplementaryGroups yes
>
> ..in amavisd.conf I have:
>
> @av_scanners = (
>
> ### http://www.clamav.net/
> ####['ClamAV-clamd',
> #### \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.sock"],
> #### qr/\bOK$/, qr/\bFOUND$/,
> #### qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
>
> );
>
> # See https://secure.renaissoft.com/maia/wiki/VirusScannerConfig
> # for more virus scanner definitions.
> @av_scanners_backup = (
>
> ### http://www.clamav.net/ - backs up clamd or Mail::ClamAV
> ['ClamAV-clamscan', 'clamscan',
> "--stdout --disable-summary -r --tempdir=$TEMPBASE {}", [0], [1],
> qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
>
> );
>
> ..therefore I don't use av_scanners (with clamd) but only
> av_scanners_backup
> with clamscan and:
>
> [EMAIL PROTECTED] ~]# ps -ax|grep clam
> Warning: bad syntax, perhaps a bogus '-'? See
> /usr/share/doc/procps-3.2.7/FAQ
> 25675 ? Ss 0:32 /usr/local/sbin/clamd
> 26603 ? Ss 0:00 /usr/local/bin/freshclam -d
> 26694 ? R 0:24
> /usr/local/bin/clamscan --stdout --disable-summary -r
> --tempdir=/var/amavisd/tmp
> /var/amavisd/tmp/amavis-20070705T103642-26517/parts
>
> ..now for resolve my problem (and for to use use clamdscan instead) I must
> enable primary av_scanner ?
> Thanks.
>
> ------
> Salvatore.
>
>
>
> ----- Original Message -----
> From: "Alexandros G. Fragkiadakis" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Thursday, July 05, 2007 8:38 AM
> Subject: Re: [Clamav-users] CPU & clamscan
>
>
>> On Wed, July 4, 2007 18:00, Salvatore wrote:
>>> Hi, I use clamav-0.90.3 (with amavisd-new-2.2.1, maia-1.0.2 and
>>> postfix-2.2.8) but for some days the system is very slow, pheraps the
>>> problem is in the cpu load (my CPU is Intel(R) Xeon(TM) CPU 3.00GHz
>>> (3000
>>> MHz)) from clamscan, in particular I have:
>>>
>>>
>>> /usr/local/bin/clamscan --stdout --disable-summary -r
>>> --tempdir=/var/amavisd/tmp
>>> /var/amavisd/tmp/amavis-2
>>>
>>>
>>> #top
>>> PID USER %CPU COMMAND
>>> 5357 amavis 78 clamscan
>>>
>>>
>>> ..and often the %CPU is 90% or 99% !!
>>>
>>>
>>> The command 'clamscan' is:
>>>
>>>
>>> /usr/local/bin/clamscan --stdout --disable-summary -r
>>> --tempdir=/var/amavisd/tmp
>>> /var/amavisd/tmp/amavis-2
>>>
>>>
>>> ..there is a problem with in CPU or in clamscan ?
>>> Thanks.
>>>
>>>
>>> ------
>>> Salvatore.
>>>
>>>
>>>
>> use clamdscan instead
>>
>>
>> --
>> This message has been scanned for viruses and
>> dangerous content by MailScanner, and is
>> believed to be clean.
>>
>> _______________________________________________
>> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
>> http://lurker.clamav.net/list/clamav-users.html
>>
>
> _______________________________________________
> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
> http://lurker.clamav.net/list/clamav-users.html
>
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html