Bei mir tritt seit Februar exakt dasselbe Problem auf (Debian 11). Das Problem scheint immer kurz nach dem Update der Virendatenbank aufzutreten.
Ich habe lediglich clamav installiert und in LiveConfig den Haken rein gemacht.
Es kommt dann immer die "milter-reject: END-OF-MESSAGE from" Meldung in mail.log und Postfix versendet keine E-mails und empfängt auch keine. In den clamav-Logfiles kommt:
1) clamav.log:
Tue Apr 11 08:34:25 2023 -> SelfCheck: Database status OK.
Tue Apr 11 09:34:39 2023 -> SelfCheck: Database status OK.
Tue Apr 11 10:02:05 2023 -> Reading databases from /var/lib/clamav
Tue Apr 11 10:02:58 2023 -> Database correctly reloaded (8661648 signatures)
Tue Apr 11 10:02:58 2023 -> Activating the newly loaded database...
Tue Apr 11 10:34:31 2023 -> Client disconnected (FD 9)
Tue Apr 11 10:34:31 2023 -> Client disconnected (FD 10)
Tue Apr 11 10:34:31 2023 -> Client disconnected (FD 11)
Tue Apr 11 10:34:31 2023 -> Client disconnected (FD 12)
2) clamav-milter.log:
Tue Apr 11 10:05:06 2023 -> ERROR: Timed out while reading clamd reply
Tue Apr 11 10:05:06 2023 -> ERROR: No reply from clamd
Tue Apr 11 10:05:16 2023 -> ERROR: Timed out while reading clamd reply
Tue Apr 11 10:05:16 2023 -> ERROR: No reply from clamd
Tue Apr 11 10:05:36 2023 -> ERROR: Timed out while reading clamd reply
Tue Apr 11 10:05:36 2023 -> ERROR: No reply from clamd
ein wenig später folgt:
Tue Apr 11 10:15:53 2023 -> ERROR: Failed to initiate streaming/fdpassing
Tue Apr 11 10:15:53 2023 -> WARNING: No clamd server appears to be available
Tue Apr 11 10:15:58 2023 -> ERROR: Failed to initiate streaming/fdpassing
Tue Apr 11 10:15:58 2023 -> WARNING: No clamd server appears to be available
Tue Apr 11 10:15:59 2023 -> ERROR: Failed to initiate streaming/fdpassing
3) freshclam.log:
Tue Apr 11 10:01:36 2023 -> daily database available for update (local version: 26871, remote version: 26872)
Tue Apr 11 10:01:50 2023 -> Testing database: '/var/lib/clamav/tmp.e5d96d1992/clamav-b8b9027196e7c225d606da08a47c5692.tmp-daily.cld' ...
Tue Apr 11 10:02:04 2023 -> Database test passed.
Tue Apr 11 10:02:04 2023 -> daily.cld updated (version: 26872, sigs: 2029730, f-level: 90, builder: raynman)
Tue Apr 11 10:02:04 2023 -> main.cvd database is up-to-date (version: 62, sigs: 6647427, f-level: 90, builder: sigmgr)
Tue Apr 11 10:02:04 2023 -> bytecode.cld database is up-to-date (version: 334, sigs: 91, f-level: 90, builder: anvilleg)
Tue Apr 11 10:02:05 2023 -> Clamd successfully notified about the update.
Tue Apr 11 10:02:05 2023 -> --------------------------------------
Tue Apr 11 11:02:05 2023 -> Received signal: wake up
Tue Apr 11 11:02:05 2023 -> ClamAV update process started at Tue Apr 11 11:02:05 2023
Tue Apr 11 11:02:05 2023 -> daily.cld database is up-to-date (version: 26872, sigs: 2029730, f-level: 90, builder: raynman)
Tue Apr 11 11:02:05 2023 -> main.cvd database is up-to-date (version: 62, sigs: 6647427, f-level: 90, builder: sigmgr)
Tue Apr 11 11:02:05 2023 -> bytecode.cld database is up-to-date (version: 334, sigs: 91, f-level: 90, builder: anvilleg)
Tue Apr 11 11:02:05 2023 -> --------------------------------------
Tue Apr 11 12:02:05 2023 -> Received signal: wake up
Tue Apr 11 12:02:05 2023 -> ClamAV update process started at Tue Apr 11 12:02:05 2023
Das sind meine Konfigurationen:
1) clamd.conf:
LocalSocket /var/run/clamav/clamd.ctl
FixStaleSocket true
LocalSocketGroup clamav
LocalSocketMode 666
# TemporaryDirectory is not set to its default /tmp here to make overriding
# the default with environment variables TMPDIR/TMP/TEMP possible
User clamav
ScanMail true
ScanArchive true
ArchiveBlockEncrypted false
MaxDirectoryRecursion 15
FollowDirectorySymlinks false
FollowFileSymlinks false
ReadTimeout 180
MaxThreads 12
MaxConnectionQueueLength 15
LogSyslog false
LogRotate true
LogFacility LOG_LOCAL6
LogClean false
LogVerbose true
PreludeEnable no
PreludeAnalyzerName ClamAV
DatabaseDirectory /var/lib/clamav
OfficialDatabaseOnly false
SelfCheck 3600
Foreground false
Debug false
ScanPE true
MaxEmbeddedPE 10M
ScanOLE2 true
ScanPDF true
ScanHTML true
MaxHTMLNormalize 10M
MaxHTMLNoTags 2M
MaxScriptNormalize 5M
MaxZipTypeRcg 1M
ScanSWF true
ExitOnOOM false
LeaveTemporaryFiles false
AlgorithmicDetection true
ScanELF true
IdleTimeout 30
CrossFilesystems true
PhishingSignatures true
PhishingScanURLs true
PhishingAlwaysBlockSSLMismatch false
PhishingAlwaysBlockCloak false
PartitionIntersection false
DetectPUA false
ScanPartialMessages false
HeuristicScanPrecedence false
StructuredDataDetection false
CommandReadTimeout 30
SendBufTimeout 200
MaxQueue 100
ExtendedDetectionInfo true
OLE2BlockMacros false
AllowAllMatchScan true
ForceToDisk false
DisableCertCheck false
DisableCache false
MaxScanTime 120000
MaxScanSize 100M
MaxFileSize 25M
MaxRecursion 16
MaxFiles 10000
MaxPartitions 50
MaxIconsPE 100
PCREMatchLimit 10000
PCRERecMatchLimit 5000
PCREMaxFileSize 25M
ScanXMLDOCS true
ScanHWP3 true
MaxRecHWP3 16
StreamMaxLength 25M
LogFile /var/log/clamav/clamav.log
LogTime true
LogFileUnlock false
LogFileMaxSize 0
Bytecode true
BytecodeSecurity TrustSigned
BytecodeTimeout 60000
OnAccessMaxFileSize 5M
ConcurrentDatabaseReload yes
2) clamav-milter.conf:
MilterSocket /var/run/clamav/clamav-milter.ctl
FixStaleSocket true
User clamav
ReadTimeout 120
Foreground false
PidFile /var/run/clamav/clamav-milter.pid
ClamdSocket unix:/var/run/clamav/clamd.ctl
OnClean Accept
OnInfected Reject
OnFail Defer
AddHeader Replace
LogSyslog false
LogFacility LOG_LOCAL6
LogVerbose false
LogInfected Off
LogClean Off
LogRotate true
MaxFileSize 25M
SupportMultipleRecipients false
TemporaryDirectory /tmp
LogFile /var/log/clamav/clamav-milter.log
LogTime true
LogFileUnlock false
LogFileMaxSize 1M
MilterSocketGroup clamav
MilterSocketMode 666
RejectMsg Rejecting harmful email: %v found.
3) freshclam.conf:
DatabaseOwner clamav
UpdateLogFile /var/log/clamav/freshclam.log
LogVerbose false
LogSyslog false
LogFacility LOG_LOCAL6
LogFileMaxSize 0
LogRotate true
LogTime true
Foreground false
Debug false
MaxAttempts 5
DatabaseDirectory /var/lib/clamav
DNSDatabaseInfo current.cvd.clamav.net
ConnectTimeout 30
ReceiveTimeout 0
TestDatabases yes
ScriptedUpdates yes
CompressLocalDatabase no
Bytecode true
NotifyClamd /etc/clamav/clamd.conf
# Check for new database 24 times a day
Checks 24
DatabaseMirror db.local.clamav.net
DatabaseMirror database.clamav.net
Hat irgendwer eine Idee wie man das Problem in den Griff bekommt? So ist das nicht benutzbar. Mal ist der Mailserver für 0,5h weg, mal für 5-6h. Mit dem Monitoring bemerkt man das nicht, weil der Dienst ja verfügbar ist.
Vielen Dank schon mal!