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

Alexander Dalloz ad+lists at
Fri Dec 2 01:10:08 UTC 2005

Am Do, den 01.12.2005 schrieb Mike Leahy um 22:01:

Please don't top-post.

> 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?

> Mike

> DAEMON_OPTIONS(`Port=smtp,Addr=, Name=MTA')dnl

So you don't want to receive any mail?

> FEATURE(delay_checks)dnl
> FEATURE(masquerade_envelope)dnl
> FEATURE(allmasquerade)dnl
> FEATURE(masquerade_entire_domain)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
> LOCAL_DOMAIN(`mydomain')dnl
> MASQUERADE_AS(`mydomain')dnl
> MASQUERADE_DOMAIN(localhost)dnl
> MASQUERADE_DOMAIN(localhost.localdomain)dnl
> MASQUERADE_DOMAIN(mydomain)dnl

Those 2 masquerading lines above aren't valid and don't make much sense.

> MAILER(smtp)dnl
> MAILER(procmail)dnl
> INPUT_MAIL_FILTER(`clamav', `S=local:/var/run/clamd.milter/clamd.sock, 

Check the milter socket path! The default /etc/sysconfig/clamav-milter


which obviously differ what you specify in You may be
confused by the entry in /etc/clamd.d/milter.conf which specifies

LocalSocket /var/run/clamd.milter/clamd.sock

But that is a different socket! You have to distinguish between the
clamd socket and the socket which is used for communication between
clamav-milter and Sendmail. The clamd socket is for communication
between the clamd daemon and a client application like the

> F=, T=S:4m;R:4m')dnl
> define(`confINPUT_MAIL_FILTERS', `clamav')dnl

Don't place entries below the MAILEr definitions! That asks for trouble.
The seconds milter configuration line isn't necessary at all. Put the
INPUT_MAIL_FILTER line into the region where you have the DAEMON_OPTIONS


Alexander Dalloz | Enger, Germany | GPG 0xB366A773
legal statement:
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp 
Serendipity 01:55:25 up 33 days, 23:55, load average: 0.08, 0.15, 0.18 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <>

More information about the fedora-list mailing list