need help with clamd, freshclam & clamav-milter setup...

Mike Leahy mgleahy at
Thu Dec 1 21:01:56 UTC 2005

Hey there.

I followed the installed readmes to get clamd/clamav-milter working, as 
you suggested.   I 'think' clamd is working, but still nothing happens 
when I send the eicar virus through my sendmail.  My is 
below.  As before, all the services run fine, after a bit of debugging. 
  Clamav-milter was writing to the log when I had file permissions wrong 
on the clamd.milter/clamd.sock file - I fixed that, now it writes 
nothing to the log when the service starts, and there's no errors to see.

Would it help to see the milter.conf file as well?

Thanks for the help.


DAEMON_OPTIONS(`Port=smtp,Addr=, Name=MTA')dnl
FEATURE(`dnsbl', `',`"550 Mail from " 
$&{client_addr} " refused. Rejected for bad WHOIS info on IP of your 
SMTP server - see"')dnl
FEATURE(`dnsbl', `', `"450 Mail from " $`'&{client_addr} " 
refused - see"')dnl
FEATURE(`dnsbl',`',`Rejected - see')dnl
INPUT_MAIL_FILTER(`clamav', `S=local:/var/run/clamd.milter/clamd.sock, 
F=, T=S:4m;R:4m')dnl
define(`confINPUT_MAIL_FILTERS', `clamav')dnl


Original message:
From: Alexander Dalloz <ad+lists uni-x org>
To: For users of Fedora Core releases <fedora-list redhat com>
Subject: Re: need help with clamd, freshclam & clamav-milter setup...
Date: Thu, 01 Dec 2005 12:50:46 +0100

Am Do, den 01.12.2005 schrieb Mike Leahy um 12:40:

 > I'm wondering if anyone knows a fairly straightforward way to get ClamAV
 > running on FC4.  I got the rpms through yum, but this did not actually
 > install a daemon for clamd.  I was eventually able to hack a script into
 > the init.d folder that runs clamd, and I have clamav-milter running with

Did you read through the documentation the packages ship with? The
Fedora Extras packages have extra readmes.

 > sendmail.  While I have all of this stuff running without errors
 > (services are all ok, as far as I can tell, sendmail is hooked into
 > clamav-milter).  However I have two problems.
 > First, I'm getting emails sent to root with the following warning:
 > WARNING: update of clamav database is disabled; please see
 >    '/etc/sysconfig/freshclam'
 >    for information how to enable the periodic update resp. how to turn
 >    off this message.
 > I've looked at that file, and it's not very explanatory...does anyone
 > know how to get freshclam enabled?

The clamav-update package ships with a cron job, running every 3 hours.
As explained in the /etc/sysconfig/freshclam file you have to remove or
comment the line


to activate automatic signature updates.

 > Second, I tried sending the eicar test virus through my sendmail server,
 > but as far as I can tell, nothing was detected...and no logs 'at all'
 > are being generated by the clamav-milter service (even though the config
 > is telling it to).  What do I need to get sendmail/clamav-milter working
 > in harmony?  In this case, I'd almost prefer errors, so I'd have an idea
 > what might be the problem.

Without seeing your configuration regarding the
clamav-milter setup it is hard to say what is going wrong.

 > Mike


More information about the fedora-list mailing list