clamsmtp не работает [РЕШЕНО]

Автор dsdsda, 05 августа 2020, 12:29:30

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

dsdsda

Добрый день. Такая проблема. Не работает clamsmtp.
systemctl status clamsmtp
● clamsmtp.service - virus-scanning SMTP proxy clamsmtp
     Loaded: loaded (/lib/systemd/system/clamsmtp.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2020-08-05 10:54:42 +07; 5h 29min ago
       Docs: man:clamsmtpd(8)
    Process: 522 ExecStart=/usr/sbin/clamsmtpd (code=exited, status=0/SUCCESS)
   Main PID: 545 (clamsmtpd)
      Tasks: 1 (limit: 10600)
     Memory: 6.5M
     CGroup: /system.slice/clamsmtp.service
             └─545 /usr/sbin/clamsmtpd

авг 05 16:22:07xxxxxxx.ru clamsmtpd[545]: 100135: CLAMAV: couldn't connect to: /var/run/clamav/clamd.ctl: No such file or directory
авг 05 16:22:07 xxxxxx.ru clamsmtpd[545]: 100135: from=root@xxxxxx.ru, to=email
авг 05 16:22:07 xxxxx.ru clamsmtpd[545]: 10013A: CLAMAV: couldn't connect to: /var/run/clamav/clamd.ctl: No such file or directory



systemctl status clamav-daemon
● clamav-daemon.service - Clam AntiVirus userspace daemon
     Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/clamav-daemon.service.d
             └─extend.conf
     Active: inactive (dead)
  Condition: start condition failed at Wed 2020-08-05 10:57:47 +07; 5h 28min ago
             └─ ConditionPathExistsGlob=/var/lib/clamav/main.{c[vl]d,inc} was not met
       Docs: man:clamd(8)
             man:clamd.conf(5)
             https://www.clamav.net/documents/

авг 05 10:54:35 xxxxxx.ru systemd[1]: Condition check resulted in Clam AntiVirus userspace daemon being skipped.
авг 05 10:57:31 xxxxt.ru systemd[1]: Condition check resulted in Clam AntiVirus userspace daemon being skipped.
авг 05 10:57:47 xxxxxt.ru systemd[1]: Condition check resulted in Clam AntiVirus userspace daemon being skipped.
~
~


/etc/clamsmtpd.conf
OutAddress: 10026
Listen: 127.0.0.1:10025
ClamAddress: /var/run/clamav/clamd.ctl
Header: X-AV-Checked: ClamAV using ClamSMTP
TempDirectory: /var/spool/clamsmtp
PidFile: /var/run/clamsmtp/clamsmtpd.pid
Quarantine: on
User: clamsmtp
#VirusAction: /etc/clamav/script.sh


/etc/clamav/clamd.conf
#Automatically Generated by clamav-daemon postinst
#To reconfigure clamd run #dpkg-reconfigure clamav-daemon
#Please read /usr/share/doc/clamav-daemon/README.Debian.gz for details
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 false
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


postqueue -p

3B9935012BF      452 Wed Aug  5 10:53:35  root@xxxxx.ru
(host 127.0.0.1[127.0.0.1] said: 451 Local Error (in reply to end of DATA command))
                                         xxxxxxxxxx@yandex.ru
Подскажите, пожалуйста, как исправить проблему?