[Pkg-clamav-devel] Bug#728187: clamav-milter: clamd socket not accessible

Olaf Zaplinski olaf at zaplinski.de
Tue Oct 29 09:43:57 UTC 2013


Package: clamav-milter
Version: 0.97.8+dfsg-1
Severity: normal

Dear Maintainer,

clamav-milter cannot access the clamd socket:

Oct 29 10:41:02 binky clamav-milter[28085]: +++ Started at Tue Oct 29 10:41:02 2013
Oct 29 10:41:02 binky clamav-milter[28086]: Failed to parse ClamdSocket directive '/var/run/clamav/clamd.ctl'
Oct 29 10:41:02 binky clamav-milter[28086]: Failed to init the socket pool

... and silently dies:

root at binky:/etc/clamav# /etc/init.d/clamav-milter start
[ ok ] Starting Sendmail milter plugin for ClamAV: clamav-milter.

root at binky:/etc/clamav# /etc/init.d/clamav-milter status
[FAIL] clamav-milter is not running ... failed!

The socket file does exist:

root at binky:/etc/clamav# l /var/run/clamav
total 4
drwxr-xr-x  2 clamav root    100 Oct 29 10:43 ./
drwxr-xr-x 20 root   root    660 Oct 29 09:30 ../
srw-rw----  1 clamav postfix   0 Oct 29 10:43 clamav-milter.socket=
srw-rw-rw-  1 clamav clamav    0 Oct 29 10:21 clamd.ctl=
-rw-rw-r--  1 clamav clamav    5 Oct 29 10:21 clamd.pid




-- Package-specific info:
--- configuration ---
Checking configuration files in /etc/clamav

Config file: clamd.conf
-----------------------
LogFile = "/var/log/clamav/clamav.log"
LogFileUnlock disabled
LogFileMaxSize = "4294967295"
LogTime = "yes"
LogClean disabled
LogSyslog disabled
LogFacility = "LOG_LOCAL6"
LogVerbose disabled
ExtendedDetectionInfo = "yes"
PidFile = "/var/run/clamav/clamd.pid"
TemporaryDirectory disabled
DatabaseDirectory = "/var/lib/clamav"
OfficialDatabaseOnly disabled
LocalSocket = "/var/run/clamav/clamd.ctl"
LocalSocketGroup = "clamav"
LocalSocketMode = "666"
FixStaleSocket = "yes"
TCPSocket disabled
TCPAddr disabled
MaxConnectionQueueLength = "15"
StreamMaxLength = "26214400"
StreamMinPort = "1024"
StreamMaxPort = "2048"
MaxThreads = "12"
ReadTimeout = "180"
CommandReadTimeout = "5"
SendBufTimeout = "200"
MaxQueue = "100"
IdleTimeout = "30"
ExcludePath disabled
MaxDirectoryRecursion = "15"
FollowDirectorySymlinks disabled
FollowFileSymlinks disabled
CrossFilesystems = "yes"
SelfCheck = "3600"
VirusEvent disabled
ExitOnOOM disabled
Foreground disabled
Debug disabled
LeaveTemporaryFiles disabled
User = "clamav"
AllowSupplementaryGroups = "yes"
Bytecode = "yes"
BytecodeSecurity = "TrustSigned"
BytecodeTimeout = "60000"
BytecodeUnsigned disabled
BytecodeMode = "Auto"
DetectPUA disabled
ExcludePUA disabled
IncludePUA disabled
AlgorithmicDetection = "yes"
ScanPE = "yes"
ScanELF = "yes"
DetectBrokenExecutables disabled
ScanMail = "yes"
ScanPartialMessages disabled
PhishingSignatures = "yes"
PhishingScanURLs = "yes"
PhishingAlwaysBlockCloak disabled
PhishingAlwaysBlockSSLMismatch disabled
HeuristicScanPrecedence disabled
StructuredDataDetection disabled
StructuredMinCreditCardCount = "3"
StructuredMinSSNCount = "3"
StructuredSSNFormatNormal = "yes"
StructuredSSNFormatStripped disabled
ScanHTML = "yes"
ScanOLE2 = "yes"
OLE2BlockMacros disabled
ScanPDF = "yes"
ScanArchive = "yes"
ArchiveBlockEncrypted disabled
MaxScanSize = "104857600"
MaxFileSize = "26214400"
MaxRecursion = "16"
MaxFiles = "10000"
ClamAuth disabled
ClamukoScanOnAccess disabled
ClamukoScannerCount = "3"
ClamukoScanOnOpen disabled
ClamukoScanOnClose disabled
ClamukoScanOnExec disabled
ClamukoIncludePath disabled
ClamukoExcludePath disabled
ClamukoExcludeUID disabled
ClamukoMaxFileSize = "5242880"
DevACOnly disabled
DevACDepth disabled
DevLiblog disabled

Config file: freshclam.conf
---------------------------
LogFileMaxSize = "4294967295"
LogTime = "yes"
LogSyslog disabled
LogFacility = "LOG_LOCAL6"
LogVerbose disabled
PidFile = "/var/run/clamav/freshclam.pid"
DatabaseDirectory = "/var/lib/clamav"
Foreground disabled
Debug disabled
AllowSupplementaryGroups disabled
UpdateLogFile = "/var/log/clamav/freshclam.log"
DatabaseOwner = "clamav"
Checks = "24"
DNSDatabaseInfo = "current.cvd.clamav.net"
DatabaseMirror = "db.local.clamav.net", "database.clamav.net"
MaxAttempts = "5"
ScriptedUpdates = "yes"
TestDatabases = "yes"
CompressLocalDatabase disabled
ExtraDatabase disabled
DatabaseCustomURL disabled
HTTPProxyServer disabled
HTTPProxyPort disabled
HTTPProxyUsername disabled
HTTPProxyPassword disabled
HTTPUserAgent disabled
NotifyClamd = "/etc/clamav/clamd.conf"
OnUpdateExecute disabled
OnErrorExecute disabled
OnOutdatedExecute disabled
LocalIPAddress disabled
ConnectTimeout = "30"
ReceiveTimeout = "30"
SubmitDetectionStats disabled
DetectionStatsCountry disabled
DetectionStatsHostID disabled
SafeBrowsing disabled
Bytecode = "yes"

Config file: clamav-milter.conf
-------------------------------
LogFile disabled
LogFileUnlock disabled
LogFileMaxSize = "1048576"
LogTime disabled
LogSyslog = "yes"
LogFacility = "LOG_MAIL"
LogVerbose = "yes"
PidFile = "/var/run/clamav/clamav-milter.pid"
TemporaryDirectory = "/var/tmp"
FixStaleSocket = "yes"
MaxThreads = "10"
ReadTimeout = "120"
Foreground disabled
User disabled
AllowSupplementaryGroups disabled
MaxFileSize = "26214400"
ClamdSocket = "/var/run/clamav/clamd.ctl"
MilterSocket = "/var/run/clamav/clamav-milter.socket"
MilterSocketGroup disabled
MilterSocketMode = "660"
LocalNet = "local"
OnClean = "Accept"
OnInfected = "Reject"
OnFail = "Defer"
RejectMsg disabled
AddHeader = "Add"
ReportHostname disabled
VirusAction disabled
Chroot disabled
Whitelist disabled
SkipAuthenticated disabled
LogInfected = "Full"
LogClean = "Basic"

Software settings
-----------------
Version: 0.97.8
Optional features supported: MEMPOOL IPv6 FRESHCLAM_DNS_FIX AUTOIT_EA06 BZIP2 JIT

Database information
--------------------
Database directory: /var/lib/clamav
bytecode.cld: version 228, sigs: 43, built on Fri Oct  4 22:37:48 2013
main.cld: version 55, sigs: 2424225, built on Tue Sep 17 16:57:28 2013
daily.cld: version 18032, sigs: 443721, built on Tue Oct 29 05:37:43 2013
Total number of signatures: 2867989

Platform information
--------------------
uname: Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64
OS: linux-gnu, ARCH: x86_64, CPU: x86_64
Full OS version: Debian GNU/Linux 7.2 (wheezy)
zlib version: 1.2.7 (1.2.7), compile flags: a9
Triple: x86_64-pc-linux-gnu
CPU: athlon, Little-endian
platform id: 0x0a2145450804070201040702

Build information
-----------------
GNU C: 4.7.2 (4.7.2)
GNU C++: 4.7.2 (4.7.2)
CPPFLAGS: -D_FORTIFY_SOURCE=2
CFLAGS: -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall
CXXFLAGS: -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall
LDFLAGS: -Wl,-z,relro
Configure: 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' 'LDFLAGS=-Wl,-z,relro' '--build=x86_64-linux-gnu' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-clamav' '--with-dbdir=/var/lib/clamav/' '--sysconfdir=/etc/clamav' '--enable-milter' '--disable-clamuko' '--with-gnu-ld' '--enable-dns-fix' '--disable-unrar' '--libdir=/usr/lib' '--with-system-tommath' '--without-included-ltdl' 'build_alias=x86_64-linux-gnu'
sizeof(void*) = 8
Engine flevel: 69, dconf: 69

--- data dir ---
total 188068
-rw-r--r-- 1 clamav clamav    345088 Oct  4 23:32 bytecode.cld
-rw-r--r-- 1 clamav clamav  28754432 Oct 29 06:28 daily.cld
-rw-r--r-- 1 clamav clamav 163468288 Sep 18 00:58 main.cld
-rw------- 1 clamav clamav      1196 Oct 29 09:28 mirrors.dat

-- System Information:
Debian Release: 7.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages clamav-milter depends on:
ii  adduser                         3.113+nmu3
ii  clamav-base                     0.97.8+dfsg-1
ii  clamav-freshclam [clamav-data]  0.97.8+dfsg-1
ii  debconf [debconf-2.0]           1.5.49
ii  libc6                           2.13-38
ii  libmilter1.0.1                  8.14.4-4
ii  logrotate                       3.8.1-4
ii  lsb-base                        4.1+Debian8+deb7u1
ii  ucf                             3.0025+nmu3

Versions of packages clamav-milter recommends:
ii  clamav-daemon  0.97.8+dfsg-1

Versions of packages clamav-milter suggests:
pn  clamav-docs  <none>
pn  daemon       <none>

-- Configuration Files:
/etc/default/clamav-milter changed:
SOCKET_RWGROUP=postfix


-- debconf information excluded



More information about the Pkg-clamav-devel mailing list