[Bug 192229] New: [patch] mail/milter-regex:Postfix cannot connect to Milter service
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Jul 29 01:15:47 UTC 2014
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 at FreeBSD.org
Reporter: bug at 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.
More information about the freebsd-ports-bugs
mailing list