[clamav-users] No such file or directory + after milter-reject
Hello Clamav-group I'am fighting now meny days with this problem, I cant believe I changed now folder and permission but I don't see why this arnt find this clamav-milter.ctl Please this message appear in Postfix mail.info For any help, thanks! Mauri -- Mail.info Mar 4 15:40:13 mail postfix/smtpd[21566]: warning: connect to Milter service unix:/var/spool/postfix/clamav/clamav-milter.ctl: No such file or directory -- And after 5-10min, i cant send mail outside Mar 4 19:59:09 mail postfix/cleanup[3488]: 61F2A405CF: message-id=<038301d5f256$8018dd00$804a9700$@caloro.ch> Mar 4 19:59:09 mail postfix/cleanup[3488]: 61F2A405CF: milter-reject: END-OF-MESSAGE from name.d-h.d.ch[xxx.xxx.xxx.xxx]: 4.7.1 Service unavailable - try again later; # Milter String milter_protocol = 6 milter_default_action = accept smtpd_milters = unix:/var/spool/postfix/clamav/clamav-milter.ctl # clamav-milter -V clamav-milter 0.101.5 # ls -la /var/spool/postfix/clamav/clamav-milter.ctl srw-rw 1 clamav postfix 0 Mar 1 06:25 /var/spool/postfix/clamav/clamav-milter.ctl /etc/clamav# cat clamav-milter.conf MilterSocket unix:/var/spool/postfix/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.socket OnClean Accept OnInfected Quarantine OnFail Defer AddHeader Replace LogSyslog false LogFacility LOG_MAIL 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 postfix MilterSocketMode 666 ___ clamav-users mailing list clamav-users@lists.clamav.net https://lists.clamav.net/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] No such file or directory + after milter-reject
>>Yasuhiro KIMURA Hello >>I think you experienced same problem as me of about a year ago. So check >>thread starting with following message. >>https://lists.clamav.net/pipermail/clamav-users/2019-January/007506.html And please, you found any possible short solution? ___ clamav-users mailing list clamav-users@lists.clamav.net https://lists.clamav.net/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
[clamav-users] Milterlog are thinking that no Clamd Server not be avilable
Please why mening clamav-milter.log thinking that clamav deamon arnt running ? var/log/clam/clamav-milter.log Wed Mar 4 21:21:49 2020 -> WARNING: No clamd server appears to be available Wed Mar 4 21:22:10 2020 -> ERROR: Failed to initiate streaming/fdpassing Wed Mar 4 21:22:10 2020 -> WARNING: No clamd server appears to be available Wed Mar 4 21:22:32 2020 -> WARNING: No clamd server appears to be available root@mail:/var/log/clamav# dpkg -l | grep clamav ii clamav 0.101.5+dfsg-0+deb8u1 amd64 anti-virus utility for Unix - command-line interface ii clamav-base 0.101.5+dfsg-0+deb8u1 allanti-virus utility for Unix - base package ii clamav-daemon 0.101.5+dfsg-0+deb8u1 amd64 anti-virus utility for Unix - scanner daemon ii clamav-freshclam 0.101.5+dfsg-0+deb8u1 amd64 anti-virus utility for Unix - virus database update utility ii clamav-milter 0.101.5+dfsg-0+deb8u1 amd64 anti-virus utility for Unix - sendmail integration rc libclamav70.100.3+dfsg-0+deb8u1 amd64 anti-virus utility for Unix - library ii libclamav9:amd64 0.101.5+dfsg-0+deb8u1 amd64 anti-virus utility for Unix - library root@mail:/etc/clamav# systemctl | grep clamav clamav-daemon.service loaded active running Clam AntiVirus userspace daemon clamav-freshclam.service loaded active running ClamAV virus database updater clamav-milter.service loaded active running LSB: ClamAV virus milter clamav-daemon.socket loaded active running Socket for Clam AntiVirus userspace daemon root@mail:/var/log/clamav# cat /etc/clamav/clamav-milter.conf #Automatically Generated by clamav-milter postinst #To reconfigure clamav-milter run #dpkg-reconfigure clamav-milter #Please read /usr/share/doc/clamav-base/README.Debian.gz for details ## MilterSocket unix:/var/spool/postfix/clamav/clamav-milter.ctl MilterSocket inet:7357 FixStaleSocket true User clamav ReadTimeout 120 Foreground false PidFile /var/run/clamav/clamav-milter.pid ClamdSocket unix:/var/run/clamav/clamd.socket OnClean Accept OnInfected Quarantine OnFail Defer AddHeader Replace LogSyslog false LogFacility LOG_MAIL 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 postfix ## MilterSocketGroup clamav MilterSocketMode 666 ## MilterSocketMode 660 ___ clamav-users mailing list clamav-users@lists.clamav.net https://lists.clamav.net/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] No such file or directory + after milter-reject
Hello I try now this way. but also no chance... for any help, thanks But the error styl persist: 23:05:00 mail postfix/cleanup[6087]: 24741405D0: milter-reject: END-OF-MESSAGE from pub158181113102.dh-hfc.g.c[xxx.xxx.xxx.xxx]: 4.7.1 Service unavailable - try again later; from= to= Main.cf - Postfix # Milter Sttings # # milter_clamav = inet:[127.0.0.1]:7357 milter_default_action = accept milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen} milter_protocol = 6 non_smtpd_milters = $milter_opendkim smtpd_milters = $milter_clamav,$milter_opendkim,$milter_opendmarc cat clamav-milter.conf MilterSocket "inet:7357@localhost" ClamdSocket "tcp:127.0.0.1:3310" FixStaleSocket true User clamav ReadTimeout 120 Foreground false PidFile /var/run/clamav/clamav-milter.pid OnClean Accept OnInfected Quarantine 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 disabled MilterSocketMode disabled cat 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 TCPSocket "3310" TCPAddr "localhost" # 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 ___ clamav-users mailing list clamav-users@lists.clamav.net https://lists.clamav.net/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] No such file or directory + after milter-reject
Hello I found the issue ... wau this was tricky apt-get purge --remove clamav clamav-base clamav-daemon clamav-freshclam clamav-milter libclamav9:amd64 apt-get install clamav-daemon clamav-freshclam clamav-milter /etc/systemd/system/clamav-daemon.socket.d/extend.conf [Socket] ListenStream=127.0.0.1:3310 And now the port 3310 are ready Fri Mar 6 00:45:35 2020 -> TCP: Received AF_INET SOCK_STREAM socket from systemd. But please what would mean this ??? " unreasonable packet length", and "read error" Mar 6 00:52:32 mail postfix/smtps/smtpd[20006]: warning: milter inet:[127.0.0.1]:3310: unreasonable packet length: 1431194446 > 1073741823 Mar 6 00:52:32 mail postfix/smtps/smtpd[20006]: warning: milter inet:[127.0.0.1]:3310: read error in initial handshake Thanks for our possible update. -Ursprüngliche Nachricht- Von: G.W. Haywood Gesendet: Freitag, 6. März 2020 00:47 An: mauri...@caloro.ch; ClamAV users ML Betreff: Re: [clamav-users] No such file or directory + after milter-reject Hi there, On Thu, 5 Mar 2020, mauri via clamav-users wrote: > I try now this way. but also no chance... for any help, thanks ... > Main.cf - Postfix I can't help you with Postfix configuration I'm afraid, but you'll probably need to check that you have it right. > cat clamav-milter.conf > > MilterSocket "inet:7357@localhost" > ClamdSocket "tcp:127.0.0.1:3310" Remove the quotes. > FixStaleSocket true Useless directive - applies to Unix sockets. > cat clamd.conf > ... > LocalSocket /var/run/clamav/clamd.ctl > FixStaleSocket true > LocalSocketGroup clamav > LocalSocketMode 666 > ... I've never actually checked, but I'd be surprised if you can use _both_ a local (Unix) socket _and_ a TCP socket for clamd, and since you appear to have configured the milter for TCP then I think you should remove all these local socket directives. But you might be better off using Unix (local) sockets. I do not like the use of the word 'local' applied to sockets, I think it's confusing, but we have what we have. > TCPSocket "3310" > TCPAddr "localhost" Remove the quotes. Have you checked that clamav-milter and clamd actually start and continue to run? Do you know how to do that? -- 73, Ged. ___ clamav-users mailing list clamav-users@lists.clamav.net https://lists.clamav.net/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] No such file or directory + after milter-reject
Hello together yesterday installed clamav-milter with postfix, but the next problem will appear quick :-) please what will here the possible mistake, in the meantime i google this, I really haven't found anything useful yet. Mar 6 08:44:47 mail postfix/smtpd[31388]: warning: milter inet:[127.0.0.1]:3310: unreasonable packet length: 1431194446 > 1073741823 Mar 6 08:44:47 mail postfix/smtpd[31388]: warning: milter inet:[127.0.0.1]:3310: read error in initial handshake also strange to see if send to my "Eichar text" file, the Milter he doesn't care. please, whats going wrong now ?? the services clamav-daemon and clamav-milter, freshclam are still up and running. Debian 8.11 -Postfix 2.11.3 -Dovecot 2.2.13 -SpamAssassin version 3.4.1 -Clamd daemon 0.101.5 Postfix # Milter Sttings # # milter_clamav = inet:[127.0.0.1]:3310 milter_default_action = accept milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen} milter_opendkim = inet:[127.0.0.1]:8891 milter_opendmarc = inet:[127.0.0.1]:8893 milter_protocol = 6 non_smtpd_milters = $milter_opendkim smtpd_milters = $milter_clamav,$milter_opendkim,$milter_opendmarc -- root@mail:/etc/postfix# telnet 127.0.0.1 3310 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. -- root@mail:/etc/clamav# systemctl status clamav-milter ● clamav-milter.service - LSB: ClamAV virus milter Loaded: loaded (/etc/init.d/clamav-milter) Active: active (running) since Fri 2020-03-06 09:15:35 CET; 8s ago Process: 6926 ExecStop=/etc/init.d/clamav-milter stop (code=exited, status=0/SUCCESS) Process: 7042 ExecStart=/etc/init.d/clamav-milter start (code=exited, status=0/SUCCESS) CGroup: /system.slice/clamav-milter.service ├─ 7157 /usr/sbin/clamav-milter --config-file=/etc/clamav/clamav-milter.conf └─21385 /usr/sbin/clamav-milter --config-file=/etc/clamav/clamav-milter.conf Mar 06 09:15:35 mail.domain.ch clamav-milter[7042]: Starting Sendmail milter plugin for ClamAV: clamav-milter. Mar 06 09:15:35 mail.domain.ch systemd[1]: Started LSB: ClamAV virus milter. thanks for any update! Regards Mau -Ursprüngliche Nachricht- Von: mauri...@caloro.ch Gesendet: Freitag, 6. März 2020 00:55 An: 'G.W. Haywood' ; 'ClamAV users ML' Betreff: AW: [clamav-users] No such file or directory + after milter-reject Hello I found the issue ... wau this was tricky apt-get purge --remove clamav clamav-base clamav-daemon clamav-freshclam clamav-milter libclamav9:amd64 apt-get install clamav-daemon clamav-freshclam clamav-milter /etc/systemd/system/clamav-daemon.socket.d/extend.conf [Socket] ListenStream=127.0.0.1:3310 And now the port 3310 are ready Fri Mar 6 00:45:35 2020 -> TCP: Received AF_INET SOCK_STREAM socket from systemd. But please what would mean this ??? " unreasonable packet length", and "read error" Mar 6 00:52:32 mail postfix/smtps/smtpd[20006]: warning: milter inet:[127.0.0.1]:3310: unreasonable packet length: 1431194446 > 1073741823 Mar 6 00:52:32 mail postfix/smtps/smtpd[20006]: warning: milter inet:[127.0.0.1]:3310: read error in initial handshake Thanks for our possible update. -Ursprüngliche Nachricht- Von: G.W. Haywood Gesendet: Freitag, 6. März 2020 00:47 An: mauri...@caloro.ch; ClamAV users ML Betreff: Re: [clamav-users] No such file or directory + after milter-reject Hi there, On Thu, 5 Mar 2020, mauri via clamav-users wrote: > I try now this way. but also no chance... for any help, thanks ... > Main.cf - Postfix I can't help you with Postfix configuration I'm afraid, but you'll probably need to check that you have it right. > cat clamav-milter.conf > > MilterSocket "inet:7357@localhost" > ClamdSocket "tcp:127.0.0.1:3310" Remove the quotes. > FixStaleSocket true Useless directive - applies to Unix sockets. > cat clamd.conf > ... > LocalSocket /var/run/clamav/clamd.ctl > FixStaleSocket true > LocalSocketGroup clamav > LocalSocketMode 666 > ... I've never actually checked, but I'd be surprised if you can use _both_ a local (Unix) socket _and_ a TCP socket for clamd, and since you appear to have configured the milter for TCP then I think you should remove all these local socket directives. But you might be better off using Unix (local) sockets. I do not like the use of the word 'local' applied to sockets, I think it's confusing, but we have what we have. > TCPSocket "3310" > TCPAddr "localhost" Remove the quotes. Have you checked that clamav-milter and clamd actually start and continue to run? Do you know how to do that? -- 73, Ged. ___ clamav-users mailing list clamav-users@lists.clamav.net https://lists.clamav.net/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
[clamav-users] Server Busy 421 - Debian 9
Hello Debian 9, ClamAV and ClamSmtp daemon are running, the port are in listen state... but if try to telnet to this Appair the messeges < 421 Server busy, too many connections > # telnet 127.0.0.1 10026 and 10025 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. 421 Server busy, too many connections Clamd.log dosn't appair with any error message... User i have changed on both config to clamav clamsmtp.conf OutAddress: 10026 MaxConnections: 64 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 User: clamav root@mail:/etc/clamav# cat 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 12 MaxScanSize 100M MaxFileSize 25M MaxRecursion 16 MaxFiles 1 MaxPartitions 50 MaxIconsPE 100 PCREMatchLimit 1 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 6 OnAccessMaxFileSize 5M ___ clamav-users mailing list clamav-users@lists.clamav.net https://lists.clamav.net/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml