[clamav-users] warning: connect to Milter service unix:/var/run/clamav/clamav-milter.ctl: No such file or directory

Benny Pedersen me at junc.eu
Mon Jan 28 10:29:29 EST 2019


Yasuhiro KIMURA skrev den 2019-01-28 15:10:

> ----------------------------------------------------------------------
> root at kusanagi[2796]# ls -l /var/run/clamav/clamav-milter.ctl
> srw-rw-rw- 1 clamav clamav 0  1月 27 06:25 
> /var/run/clamav/clamav-milter.ctl=
> ----------------------------------------------------------------------
> 
> Then what is wrong? How can I fix this warning message?

postfix needs read write access to this socket, most simple way is to 
use inet socket, if you can


Config file: clamd.conf
-----------------------
TCPSocket = "3310"
TCPAddr = "127.0.0.1"

Config file: freshclam.conf
---------------------------

Config file: clamav-milter.conf
-------------------------------
ClamdSocket = "tcp:127.0.0.1:3310"
MilterSocket = "inet:7357 at localhost"
MilterSocketGroup disabled
MilterSocketMode disabled


main.cf

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_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


this works for me :=)



More information about the clamav-users mailing list