clamd server scanning unable to setup with virtualmin

When trying to switch to server based clamav scanning, 1. the "Enable ClamAV" Button does not appear, 2. the error message appears, that clamd has to run and virtualmin is unable to activate server based scanning. Also, on the First Start Wizard, Virtualmin states that it cannot configure Clamav on this machine. The Machine is a Centos 7 minimal with all updates.

It turns out that the clamav-server setup is largely broken, even with manual setup. The clamd service and clamd scanner service are named to clamd@.service and clamd@scanner.service and are unable to start. There is no /etc/clamd.d/clamd.conf

I donĀ“t want to configure clamd manually like this shows, because interference with virtualmin internal configuration processes is unknown.

So this is a severe bug especially for hosts with large email throughput.




Howdy -- thanks, we're looking into this.

Hey Eric - is this a bug in the installer, or in Virtualmin's ClamAV support?

Jamie, it appears to be an issue with the installer.

I believe I see the issue, though I'm having a tough time figuring out how it worked well in the past. That should be resolved here shortly though.

mike0810, what is the output of this command on your server:

rpm -qa | grep clam

Output of clean install - centos 7 minimal + yum install perl + yum upgrade. Then After that: yum install epel-release yum install mod_perl yum remove epel-release

[root@webhost01 ~]# rpm -qa | grep clam clamav-lib-0.98.5-1.el7.centos.vm.x86_64 clamav-data-0.98.5-1.el7.centos.vm.noarch clamav-filesystem-0.98.5-1.el7.centos.vm.noarch clamav-update-0.98.5-1.el7.centos.vm.x86_64 clamav-server-0.98.5-1.el7.centos.vm.x86_64 clamav-0.98.5-1.el7.centos.vm.x86_64 [root@webhost01 ~]#

Okay, what happens if you run this command:

yum install clamav-server-systemd clamav-scanner-systemd

After that, are you able to perform the setup that wasn't working earlier?

Joe's picture
Submitted by Joe on Mon, 05/23/2016 - 12:23 Pro Licensee

Note that I've just rolled a new version of clamav (not to fix this issue specifically, we still need a new virtualmin-base or to correct the missing dependencies; I think we had a regression in that somewhere along the way); I'll fix that today.

Anyway, Eric's suggestion to install clamav-server-systemd and clamav-scanner-systemd should work to resolve this specific problem. I've tested it on a fresh install, and Virtualmin does detect the clamd@scan service correctly.

I am also trying to set up a new CentOS 7 server where I will migrate content from and old server. Clamd will not start and I get exactly the same error you do. Here are the clamav packages installed: clamav-server-systemd-0.99.2-2.el7.centos.vm.noarch clamav-scanner-0.99.2-2.el7.centos.vm.noarch clamav-lib-0.99.2-2.el7.centos.vm.x86_64 clamav-0.99.2-2.el7.centos.vm.x86_64 clamav-data-0.99.2-2.el7.centos.vm.noarch clamav-update-0.99.2-2.el7.centos.vm.x86_64 clamav-filesystem-0.99.2-2.el7.centos.vm.noarch clamav-server-0.99.2-2.el7.centos.vm.x86_64 clamav-scanner-systemd-0.99.2-2.el7.centos.vm.noarch