Date: Tue, 29 Jul 2014 01:15:47 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 192229] New: [patch] mail/milter-regex:Postfix cannot connect to Milter service Message-ID: <bug-192229-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192229 Bug ID: 192229 Summary: [patch] mail/milter-regex:Postfix cannot connect to Milter service Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: bug@mbfw.net Created attachment 145110 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=145110&action=edit Make /var/run/milter-regex/sock readable by postfix On 10.0-STABLE with postfix 2.11.1_2,1, postfix logs "postfix/smtpd[24120]: warning: connect to Milter service unix:/var/run/milter-regex/sock: Permission denied" Postfix runs as the user postfix, in the groups postfix and mail. So its smtpd process is unable to read the sock file for milter-regex: % sudo ls -l /var/run/milter-regex/ total 8 -rw-rw---- 1 mailnull daemon 5 Jul 26 12:40 milter-regex.pid srw------- 1 mailnull daemon 0 Jul 26 12:40 sock The directory permissions (700) also prevent postfix from accessing the sock file. See attached patch for suggested fix (with thanks to neirbowj). The patch has been tested and addresses the sock permission denied issue with postfix. Since sendmail runs as mailnull, this patch only modifies group ownership and permissions to add access for postfix, and should not prevent sendmail from accessing sock. It is also consistent with guidance from postfix that a milter not run as the postfix user. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192229-13>