Getting error from Cron Deamon

I get an email message sent to my server admin email everyday.

It says:

ERROR: Please edit the example config file /etc/freshclam.conf.
ERROR: Can’t parse the config file /etc/clamd.conf

The subject of the message is:

"Cron <root@heavyhoster> usr/share/clamav/freshclam-sleep"

Any idea what I need to do to this "freshclam.conf" file ?


You have clamav packages from some source other than us. We don’t really recommend that, but if you’re going to do so, you’ll need to edit those files and remove the Example line.

I didn’t know what these clamav packages were for,
so I googled it - seems it is antivirus sw.

I don’t know where they came from !!

Quite likely they were on the VirtualMin Optional Package

I notice that right now on my control panel I have 7
updates that I should implement and interestingly, the
first is this:

clamav End-user tools for the Clam Antivirus scanner 0.95.1-1.vm.el5

So - the question is - do you suggest that I somehow ( how ?)
remove this software ?

If so - what av protection will I have ?

Thanks for your help.

They should come from us, if you want them to work without hassle. But, I’m guessing you got them from somewhere else (since our packages have the “Example” line removed)…What clam packages are currently installed?

rpm -q clamav

I get:


Is that from yourselves ?

I certainly have not downloaded it from anywhere else.


Yes, that’s ours. I have no idea how you ended up with an “Example” line, though. All of our packages have that line removed.

Note also that 0.95.1 is in our repos, and has been for a couple of weeks. You’ll want to upgrade.

It probably won’t fix the freshclam.conf issue, though, since RPM doesn’t always replace configuration files (if any changes have been made to them they won’t be replaced, and since the Example line exists, the file doesn’t match what shipped with our earlier package, so it’s unlikely to be changed automatically be RPM). Confused yet?

Just edit /etc/freshclam.conf and get rid of the line that says, "Example".

Also, the /etc/clamd.conf file should never be used for anything…it’s a dummy file, intended to be copied and modified for service-specific clamd instances. Virtualmin creates a clamd-virtualmin service, and a clamd-virtualmin.conf file should exist, if you’ve turned on clamd in Virtualmin.

I have edited the file,

I put a hash ( # ) in front of the word "example".

Is that all that was necassary ?

I have also updated the packages.

Checked the package and got this answer:

[root@heavyhoster ~]# rpm -q clamav

So - it should be OK now ?

Seems likely. Any more errors?

I noticed the same thing with a fresh download of vmpro just this month to replace a server. This on a Centos 5.3 machine.

rpm -q clamav reports clamav-0.95.1-1.vm.el5

Example was not commented out.

Egads. You’re right. That’s unbelievable. The EPEL repo version of clamav ships out with a broken config. Doesn’t even make sense.

Fixing it now.