[Pkg-clamav-devel] Bug#1156248: clamav-milter fails to start if /run/clamav doesn't already exist
Edmund Lodewijks
edmund at proteamail.com
Thu Dec 3 13:56:06 GMT 2026
Package: clamav-milter
Version: 1.4.7+dfsg-1~deb13u2
Severity: normal
Dear Maintainer,
Where clamav-daemon hasn't already created /run/clamav as a side effect
(e.g. milter-only install, or clamav-daemon disabled), clamav-milter fails
outright with "Failed to create socket /var/run/clamav/clamav-milter.ctl".
This is the reason why autopkgtests fail for milter.
clamd has a fallback mkdir, which needs to be done for clamav-milter,
too.
-- Package-specific info:
--- configuration ---
Checking configuration files in /etc/clamav
Config file: clamd.conf
-----------------------
AlertExceedsMax disabled
CacheSize = "65536"
PreludeEnable disabled
PreludeAnalyzerName = "ClamAV"
LogFile = "/var/log/clamav/clamav.log"
LogFileUnlock disabled
LogFileMaxSize = "9223372036854775807"
LogTime = "yes"
LogClean disabled
LogSyslog disabled
LogFacility = "LOG_LOCAL6"
LogVerbose disabled
LogRotate = "yes"
ExtendedDetectionInfo = "yes"
PidFile disabled
TemporaryDirectory disabled
DatabaseDirectory = "/var/lib/clamav"
OfficialDatabaseOnly disabled
FailIfCvdOlderThan 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 = "30"
SendBufTimeout = "200"
MaxQueue = "100"
IdleTimeout = "30"
ExcludePath disabled
MaxDirectoryRecursion = "15"
FollowDirectorySymlinks disabled
FollowFileSymlinks disabled
CrossFilesystems = "yes"
SelfCheck = "3600"
ConcurrentDatabaseReload = "yes"
DisableCache disabled
VirusEvent disabled
ExitOnOOM disabled
AllowAllMatchScan = "yes"
Foreground disabled
Debug disabled
LeaveTemporaryFiles disabled
GenerateMetadataJson disabled
User = "clamav"
Bytecode = "yes"
BytecodeSecurity = "TrustSigned"
BytecodeTimeout = "60000"
BytecodeUnsigned disabled
BytecodeMode = "Auto"
DetectPUA disabled
ExcludePUA disabled
IncludePUA disabled
ScanPE = "yes"
ScanELF = "yes"
ScanMail = "yes"
ScanPartialMessages disabled
PhishingSignatures = "yes"
PhishingScanURLs = "yes"
HeuristicAlerts = "yes"
HeuristicScanPrecedence disabled
StructuredDataDetection disabled
StructuredMinCreditCardCount = "3"
StructuredMinSSNCount = "3"
StructuredSSNFormatNormal = "yes"
StructuredSSNFormatStripped disabled
ScanHTML = "yes"
ScanOLE2 = "yes"
AlertBrokenExecutables disabled
AlertBrokenMedia disabled
AlertEncrypted disabled
StructuredCCOnly disabled
AlertEncryptedArchive disabled
AlertEncryptedDoc disabled
AlertOLE2Macros disabled
AlertPhishingSSLMismatch disabled
AlertPhishingCloak disabled
AlertPartitionIntersection disabled
ScanPDF = "yes"
ScanSWF = "yes"
ScanXMLDOCS = "yes"
ScanHWP3 = "yes"
ScanOneNote = "yes"
ScanArchive = "yes"
ScanImage = "yes"
ScanImageFuzzyHash = "yes"
ForceToDisk disabled
MaxScanTime = "120000"
MaxScanSize = "104857600"
MaxFileSize = "26214400"
MaxRecursion = "16"
MaxFiles = "10000"
MaxEmbeddedPE = "10485760"
MaxHTMLNormalize = "10485760"
MaxHTMLNoTags = "2097152"
MaxScriptNormalize = "5242880"
MaxZipTypeRcg = "1048576"
MaxPartitions = "50"
MaxIconsPE = "100"
MaxRecHWP3 = "16"
PCREMatchLimit = "10000"
PCRERecMatchLimit = "5000"
PCREMaxFileSize = "26214400"
OnAccessMountPath disabled
OnAccessIncludePath disabled
OnAccessExcludePath disabled
OnAccessExcludeRootUID disabled
OnAccessExcludeUID disabled
OnAccessExcludeUname disabled
OnAccessMaxFileSize = "5242880"
OnAccessDisableDDD disabled
OnAccessPrevention disabled
OnAccessExtraScanning disabled
OnAccessCurlTimeout = "5000"
OnAccessMaxThreads = "5"
OnAccessRetryAttempts disabled
OnAccessDenyOnError disabled
DevACOnly disabled
DevACDepth disabled
DevPerformance disabled
DevLiblog disabled
DisableCertCheck disabled
AlgorithmicDetection = "yes"
BlockMax disabled
PhishingAlwaysBlockSSLMismatch disabled
PhishingAlwaysBlockCloak disabled
PartitionIntersection disabled
OLE2BlockMacros disabled
ArchiveBlockEncrypted disabled
Config file: freshclam.conf
---------------------------
LogFileMaxSize = "9223372036854775807"
LogTime = "yes"
LogSyslog disabled
LogFacility = "LOG_LOCAL6"
LogVerbose disabled
LogRotate = "yes"
PidFile disabled
DatabaseDirectory = "/var/lib/clamav"
Foreground disabled
Debug disabled
UpdateLogFile = "/var/log/clamav/freshclam.log"
DatabaseOwner = "clamav"
Checks = "24"
DNSDatabaseInfo = "current.cvd.clamav.net"
DatabaseMirror disabled
PrivateMirror disabled
MaxAttempts = "5"
ScriptedUpdates = "yes"
TestDatabases = "yes"
CompressLocalDatabase disabled
ExtraDatabase disabled
ExcludeDatabase disabled
DatabaseCustomURL disabled
HTTPProxyServer disabled
HTTPProxyPort disabled
HTTPProxyUsername disabled
HTTPProxyPassword disabled
HTTPUserAgent disabled
NotifyClamd = "/etc/clamav/clamd.conf"
OnUpdateExecute disabled
OnErrorExecute = "/bin/run-parts --lsbsysinit /etc/clamav/onerrorexecute.d"
OnOutdatedExecute disabled
LocalIPAddress disabled
ConnectTimeout = "30"
ReceiveTimeout disabled
Bytecode = "yes"
Config file: clamav-milter.conf
-------------------------------
LogFile = "/var/log/clamav/clamav-milter.log"
LogFileUnlock disabled
LogFileMaxSize = "1048576"
LogTime = "yes"
LogSyslog disabled
LogFacility = "LOG_LOCAL6"
LogVerbose disabled
LogRotate = "yes"
PidFile = "/var/run/clamav/clamav-milter.pid"
TemporaryDirectory = "/tmp"
FixStaleSocket = "yes"
MaxThreads = "10"
ReadTimeout = "120"
Foreground disabled
User = "clamav"
MaxFileSize = "26214400"
ClamdSocket = "unix:/var/run/clamav/clamd.ctl"
MilterSocket = "/var/run/clamav/clamav-milter.ctl"
MilterSocketGroup = "clamav"
MilterSocketMode = "666"
LocalNet disabled
OnClean = "Accept"
OnInfected = "Quarantine"
OnFail = "Defer"
RejectMsg disabled
AddHeader = "Replace"
ReportHostname disabled
VirusAction disabled
Chroot disabled
AllowList disabled
Whitelist disabled
SkipAuthenticated disabled
LogInfected = "Off"
LogClean = "Off"
SupportMultipleRecipients disabled
Software settings
-----------------
Version: 1.4.7
Optional features supported: MEMPOOL AUTOIT_EA06 ICONV
Database information
--------------------
Database directory: /var/lib/clamav
main.cvd: version 63, sigs: 3287027, built on Wed Dec 17 01:18:22 2025
bytecode.cvd: version 339, sigs: 80, built on Thu Sep 11 14:29:19 2025
daily.cld: version 28199, sigs: 355836, built on Wed Dec 2 08:27:10 2026
Total number of signatures: 3642943
Platform information
--------------------
uname: Linux 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64
OS: Linux, ARCH: x86_64, CPU: x86_64
Full OS version: Debian GNU/Linux 13 (trixie)
zlib version: 1.3.1 (1.3.1), compile flags: a9
platform id: 0x0a21d9d908000000000e0200
Build information
-----------------
GNU C: 14.2.0 (14.2.0)
sizeof(void*) = 8
Engine flevel: 217, dconf: 217
--- data dir ---
total 171468
-rw-r--r-- 1 clamav clamav 281702 Dec 1 15:19 bytecode.cvd
-rw-r--r-- 1 clamav clamav 86211584 Dec 2 08:47 daily.cld
-rw-r--r-- 1 clamav clamav 90 Dec 1 15:19 freshclam.dat
-rw-r--r-- 1 clamav clamav 89072577 Dec 1 15:19 main.cvd
-- System Information:
Debian Release: 13.8
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'proposed-updates'), (500, 'stable'), (1, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.118+deb13-amd64 (SMP w/3 CPU threads; PREEMPT)
Locale: LANG=en_ZA.UTF-8, LC_CTYPE=en_ZA.UTF-8 (charmap=UTF-8), LANGUAGE=en_ZA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages clamav-milter depends on:
ii adduser 3.152
ii clamav-base 1.4.7+dfsg-1~deb13u2
ii clamav-freshclam [clamav-data] 1.4.7+dfsg-1~deb13u2
ii debconf [debconf-2.0] 1.5.91
ii dpkg 1.22.22
ii init-system-helpers 1.69~deb13u1
ii libc6 2.41-12+deb13u5
ii libclamav12 1.4.7+dfsg-1~deb13u2
ii libmilter1.0.1 8.18.1-6+b1
ii logrotate 3.22.0-1
ii procps 2:4.0.4-9
ii ucf 3.0052
Versions of packages clamav-milter recommends:
ii clamav-daemon 1.4.7+dfsg-1~deb13u2
Versions of packages clamav-milter suggests:
ii clamav-doc 1.4.7+dfsg-1~deb13u2
pn daemon <none>
-- debconf information:
clamav-milter/OnFail: Defer
clamav-milter/SupportMultipleRecipients: false
clamav-milter/LogInfected: Off
clamav-milter/LocalNet:
clamav-milter/Whitelist:
clamav-milter/debconf: true
clamav-milter/AddHeader: Replace
clamav-milter/MilterSocket: /var/run/clamav/clamav-milter.ctl
clamav-milter/LogFile: /var/log/clamav/clamav-milter.log
clamav-milter/ClamdSocket: unix:/var/run/clamav/clamd.ctl
clamav-milter/MilterSocketMode: 666
clamav-milter/FixStaleSocket: true
clamav-milter/LogRotate: true
clamav-milter/Foreground: false
clamav-milter/RejectMsg:
clamav-milter/LogFileMaxSize: 1M
clamav-milter/PidFile: /var/run/clamav/clamav-milter.pid
clamav-milter/TemporaryDirectory: /tmp
clamav-milter/LogFacility: LOG_LOCAL6
clamav-milter/LogTime: true
clamav-milter/LogClean: Off
clamav-milter/Chroot:
clamav-milter/User: clamav
clamav-milter/AddGroups:
clamav-milter/OnInfected: Quarantine
clamav-milter/LogSyslog: false
clamav-milter/MaxFileSize: 25
clamav-milter/MilterSocketGroup: clamav
clamav-milter/LogFileUnlock: false
clamav-milter/ReadTimeout: 120
clamav-milter/LogVerbose: false
More information about the Pkg-clamav-devel
mailing list