From: Matus UHLAR - fantomas <uh...@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
_______________________________________________
clamav-users mailing list
clamav-users@lists.clamav.net
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

Reply via email to