[clamav-users] warning: connect to Milter service unix:/var/run/clamav/clamav-milter.ctl: No such file or directory
Scott Kitterman
debian at kitterman.com
Mon Jan 28 16:57:05 UTC 2019
On Monday, January 28, 2019 11:10:17 PM Yasuhiro KIMURA wrote:
> Hello,
>
> I'm trying to use ClamAV with Postfix and ClamAV milter on Debian 9.
> After installing clamav-milter package it uses
> /var/run/clamav/clamav-milter.ctl unix domain socket as MilterSocket
> by default setting. So I added following settings in
> /etc/postfix/main.cf.
>
> ----------------------------------------------------------------------
> smtp_milters = unix:/var/run/clamav/clamav-milter.ctl
> smtpd_milters = unix:/var/run/clamav/clamav-milter.ctl
> milter_default_action = accept
> ----------------------------------------------------------------------
>
> But when receiving mail from other host Postfix always writes
> following warning message to syslog.
>
> ----------------------------------------------------------------------
> Jan 28 22:46:59 kusanagi postfix/smtpd[15319]: warning: connect to Milter
> service unix:/var/run/clamav/clamav-milter.ctl: No such file or directory
> ----------------------------------------------------------------------
>
> However this socket surely exists on my sistem.
>
> ----------------------------------------------------------------------
> 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?
Based on this discussion, I've added some additional information to
README.Debian on setting the clamav-milter socket for use with postfix.
Hopefully that will help others in the future avoid this problem.
Scott K
More information about the clamav-users
mailing list