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

Yasuhiro KIMURA yasu at utahime.org
Mon Jan 28 10:22:47 EST 2019


From: Matus UHLAR - fantomas <uhlar at fantomas.sk>
Subject: Re: [clamav-users] warning: connect to Milter service unix:/var/run/clamav/clamav-milter.ctl: No such file or directory
Date: Mon, 28 Jan 2019 15:32:51 +0100

> don't you run "smtpd" in chroot?

You are right! There is following lines in /etc/postfix/master.cf.

----------------------------------------------------------------------
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (no)    (never) (100)
# ==========================================================================
smtp      inet  n       -       y       -       -       smtpd
----------------------------------------------------------------------

So I changed setting of MilterSocket in /etc/clamav/clamav-milter.conf
as following.

----------------------------------------------------------------------
MilterSocket /var/spool/postfix/clamav/clamav-milter.ctl
----------------------------------------------------------------------

And also changed milter setting in /etc/postfix/main.cf as following.

----------------------------------------------------------------------
smtp_milters = unix:clamav/clamav-milter.ctl
smtpd_milters = unix:clamav/clamav-milter.ctl
milter_default_action = accept
----------------------------------------------------------------------

Then Postfix recieves mail without writing warning message to syslog.

Thank you for suggestion.

---
Yasuhiro KIMURA



More information about the clamav-users mailing list