clamav-users March 2009 archive
Main Archive Page > Month Archives  > clamav-users archives
clamav-users: [Clamav-users] clamav-milter 0.95 could not connec

[Clamav-users] clamav-milter 0.95 could not connect to clamd

From: Jarosław Kustosik <jkustosik_at_nospam>
Date: Mon Mar 30 2009 - 08:39:17 GMT
To: ClamAV users ML <clamav-users@lists.clamav.net>


Hi everybody!

Today, I've made an upgrade to version 0.95. After that I've made a neccessary configuration changes to clamd and clamav-milter conf files.

Both services starting corectly:

root@sunrise:/usr/local/src/clamav-0.94.2# ps aux | grep clam clamav 18242 0.0 6.6 71320 68488 ? Ss 09:28 0:00 /usr/local/sbin/clamd
clamav 18248 0.4 6.2 108524 64916 ? Ssl 09:28 0:09 /usr/local/sbin/clamav-milter -c /etc/clamav-milter.conf clamav 18264 0.0 0.0 3204 856 ? Ss 09:28 0:00 /usr/local/bin/freshclam -d -c 2
root 23752 0.0 0.0 2004 652 pts/1 S+ 10:07 0:00 grep clam

ClamdTOP shows properly working clamd daemon on socket - /var/spool/postfix/clamav/clamd.socket

but when postfix sends mail to clamav-milter clamav-milter issues errors:

ERROR: Timed out while reading clamd reply WARNING: No clamd servers appears to be available ERROR: Failed to initiate streaming/fdpassing

and users get an error message:

4.7.1. Service temporally unavailable

Below there are connection parts of my clamd.conf and clamav-milter.conf files:

root@sunrise:/usr/local/src/clamav-0.94.2# more /etc/clamd.conf LocalSocket /var/spool/postfix/clamav/clamd.socket FixStaleSocket yes
#TCPSocket 3310

TCPAddr 127.0.0.1
#MaxConnectionQueueLength 30

StreamMaxLength 20M
#StreamMinPort 30000
#StreamMaxPort 32000
#MaxThreads 20
#ReadTimeout 300
#IdleTimeout 60
#MaxDirectoryRecursion 20
#FollowDirectorySymlinks yes
#FollowFileSymlinks yes
#SelfCheck 600

User clamav

root@sunrise:/usr/local/src/clamav-0.94.2# more /etc/clamav-milter.conf MilterSocket /var/spool/postfix/clamav/clamav-milter
#FixStaleSocket yes

User clamav
#AllowSupplementaryGroups no

ReadTimeout 0
#Foreground yes
#Chroot /newroot

PidFile /var/run/clamav/clamavmilter.pid
#TemporaryDirectory /var/tmp

ClamdSocket unix:/var/spool/postfix/clamav/clamd.socket
#ClamdSocket tcp:127.0.0.1:3310

Best regards
- Jarek Kustosik



Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml