easy way to change virus scan to clamAV

8 posts / 0 new
Last post
#1 Mon, 08/20/2007 - 22:59
ConRadical

easy way to change virus scan to clamAV

To my knowledge clamscan is the default setting for AV scanning and there isn't a easy way to switch it. This would be a nice feature since clamscan loves to to hog the CPU and build the mail queue.

Tue, 08/21/2007 - 00:21
Joe
Joe's picture

Half right. It's not the default, but it is easy to switch.

Start up the clamd daemon in the Bootup and Shutdown module, and set it to start on boot. Or, using the command line:

/etc/init.d/clamd start

chkconfig --level 345 clamd on

And then browse to System Settings:Module Configuration in the Virtualmin left-hand menu. In the "Spam filtering options section" find the option labeled "Default ClamAV virus scanning command" and set it to "Server scanner (clamdscan)".

This won't effect existing virtual servers (not sure why...it's a bit bug-like for a Module Configuration option to not apply to everything...it probably ought to be in Server Templates if it's not system-wide), so you'll need to browse to "Server Configuration:Spam and Virus Delivery", find the option labeled "Virus scanning program" and set it to clamdscan.

--

Check out the forum guidelines!

Tue, 08/21/2007 - 00:49 (Reply to #2)
ConRadical

well perfect, I didn't think it was that easy on redhat systems... I'll give it a whirl here shortly; Thank Joe!

Thu, 08/30/2007 - 08:25 (Reply to #3)
matti

Because everyone has been talking about the memory savings when using clamd deamon I would also like to switch to that. I don't think your Centos5 packages are quite working in that matter. I don't have /etc/init.d/clamd file. Instead I have clamd-wrapper but it is not a normal startup script.

The Bootup module tells clamd-wrapper state unknown. There is a bug by the way. In the first page is shows clamd-wrapper is running but after clicking it it says unknown.

What would I have to do to get clamd running? Or how can I get the deamon at least?

clamav-server.i386 0.91.2-2.vm.el5 installed
clamav-data.i386 0.91.2-2.vm.el5 installed
clamav-filesystem.i386 0.91.2-2.vm.el5 installed
clamav-update.i386 0.91.2-2.vm.el5 installed
clamav.i386 0.91.2-2.vm.el5 installed
clamav-lib.i386 0.91.2-2.vm.el5 installed
clamav-server-sysv.i386 0.91.2-2.vm.el5 installed

Thu, 08/30/2007 - 10:00 (Reply to #4)
Joe
Joe's picture

Yes, it's gotten harder in the newer versions of clamd (isn't usability supposed to improve over time? clam just gets more and more angry).

Anyway, I'm working on a clamav-clamdscan-sysv package that will fix this. Give me a day or so to finish it up, and it'll be easy. At that point I'll roll out 0.91.2 to everyone on Red Hat based platforms.

--

Check out the forum guidelines!

Tue, 10/23/2007 - 23:47 (Reply to #5)
Vedstesen

Hi Joe.
I still have problem with clamav-clamdscan-sysv.
when I try to update clamav (yum update clamav-*)
I'v get thise messages:
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
Reading repository metadata in from local files
Examining clamav-0.90.1-0.i386.rpm: clamav - 112:0.90.1-0.i386
Examining clamav-devel-0.90.1-0.i386.rpm: clamav-devel - 112:0.90.1-0.i386
Package clamav-devel not installed, cannot update it. Run yum install to install it instead.
Examining clamav-server-0.90.1-0.i386.rpm: clamav-server - 112:0.90.1-0.i386
Marking clamav-0.90.1-0.i386.rpm as an update to clamav - 0.88.7-4.fc6.i386
Marking clamav-server-0.90.1-0.i386.rpm as an update to clamav-server - 0.88.7-4.fc6.i386
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package clamav-server.i386 112:0.90.1-0 set to be updated
---> Package clamav.i386 112:0.90.1-0 set to be updated
--> Running transaction check
--> Processing Dependency: clamav-server = 0.88.7-4.fc6 for package: clamav-server-sysv
--> Finished Dependency Resolution
Error: Missing Dependency: clamav-server = 0.88.7-4.fc6 is needed by package clamav-server-sysv

My system are:
System hostname ns2.xxx.dk
Operating system Redhat Linux Fedora 6
Webmin version 1.370
Virtualmin version 3.48 (Pro)
Time on server Wed Oct 24 10:46:06 2007

Mon, 09/03/2007 - 12:32 (Reply to #6)
ConRadical

Ah, thanks Joe... I finally got back to do this and noticed that it wasn't going to work that easy. I'm looking forward to the fix.

Tue, 10/23/2007 - 17:56 (Reply to #7)
jmunjr

Hi I am new here so forgive me if I seem like a leech. Once I get familiar I will try to help as best I can.

Joe, when I you make these packages and such where can we find them? Has this issue been addressed?

Many thanks for doing it!

Topic locked