do you have the postfix with chroot? if you have it, the path in main.cf should be unix: private/clamav/clamav-milter.ctl

El 30/03/2021 a las 17:25, Maurizio Caloro escribió:
/var/spool/postfix/private/clamav
        srw-rw-rw- 1 clamav:postfix     0 Mar 30 16:27 clamav-milter.ctl
        srw-rw-rw- 1 clamav:clamav      0 Mar 30 16:27 clamav-milter.ctl
        srw-rw-rw- 1 postfix:postfix    0 Mar 30 16:27 clamav-milter.ctl

no version will run.... but exist here any possibilities?

Postfix:
unix:/var/spool/postfix/private/clamav/clamav-milter.ctl: No such file or 
directory

thanks

-----Ursprüngliche Nachricht-----
Von: Francesc Peñalvez <naz...@almogavers.net>
Gesendet: Sonntag, 28. März 2021 12:25
An: mauri...@caloro.ch; postfix-users@postfix.org
Betreff: Re: AW: Postfix - ClamAvMilter refused

If you have deleted that line then you want to do it by sockets with
which in the main.cf of postfix it should be as unix:
/var/run/clamav/clamd.ctl

El 28/03/2021 a las 12:00, Maurizio Caloro escribió:
Thanks for your fast answer!

Delete this line now - MilterSocket inet:127.0.0.1:7357

# systemctl restart clamav-milter
        ● clamav-milter.service - LSB: ClamAV virus milter
           Loaded: loaded (/etc/init.d/clamav-milter; generated)
           Active: active (running) since Sun 2021-03-28 11:56:41 CEST; 2min 
29s ago

# netstat -ntlp | grep 7357

telnet> open localhost 7357
telnet: Unable to connect to remote host: Connection refused

-----Ursprüngliche Nachricht-----
Von: owner-postfix-us...@postfix.org <owner-postfix-us...@postfix.org>
Im Auftrag von Francesc Peñalvez
Gesendet: Sonntag, 28. März 2021 11:34
An: postfix-users@postfix.org
Betreff: Re: Postfix - ClamAvMilter refused

At a first glance, I see that you have ClamdSocket configured 2 times,
one per socket and one per tcp, delete the one you do not want to
execute and restart, to check if it is listening on the correct port you
can run netstat -tupan | grep 7357

El 28/03/2021 a las 11:26, Maurizio Caloro escribió:
hello

i know that me question are send to Postfix-group, so i will ask you
frendly, hopefully meny people use the same setup.

running with last Buster install clamav-milter 0.102.4 with Postfix
3.4.14 but it seems that the port 7357 dont open.

it will be refused, iam not shure why.

-

telnet> open localhost 7357

telnet: Unable to connect to remote host: Connection refused

-

main.cf

# Milter Sttings

#

#

milter_default_action = accept

milter_protocol = 6

smtpd_milters = unix:opendkim/opendkim.sock
unix:opendmarc/opendmarc.sock inet:127.0.0.1:7357

## smtpd_milters = unix:opendkim/opendkim.sock
unix:opendmarc/opendmarc.sock unix:/var/run/postfix/clamav/clamav-milter.ctl

non_smtpd_milters = $smtpd_milters

-

postfix/smtpd[17092]: warning: connect to Milter service
inet:127.0.0.1:7357: Connection refused

-

/etc/clamav# cat 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/run/postfix/clamav/clamav-milter.ctl

MilterSocket inet:127.0.0.1:7357

FixStaleSocket true

User clamav

ReadTimeout 120

Foreground false

PidFile /var/run/clamav/clamav-milter.pid

ClamdSocket unix:/var/run/clamav/clamd.ctl

## ClamdSocket unix:/var/run/clamav/clamd.ctl

ClamdSocket tcp:localhost:7357

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 postfix

MilterSocketMode 666




Attachment: smime.p7s
Description: Firma criptográfica S/MIME

Reply via email to