Bug 198215 - mail/postfix: wrong permission for /var/db/postfix
Summary: mail/postfix: wrong permission for /var/db/postfix
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Olli Hauer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-03 07:29 UTC by Xin LI
Modified: 2015-05-10 15:35 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (sahil)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xin LI freebsd_committer freebsd_triage 2015-03-03 07:29:11 UTC
The postfix package creates /var/db/postfix as root:wheel, while it should be postfix:.

Fix:

Change pkg-plist, this line:

@dir /var/db/postfix

to:

@dir(postfix,,700) /var/db/postfix
Comment 1 Olli Hauer freebsd_committer freebsd_triage 2015-05-09 19:10:25 UTC
I've taken the postfix ports, this will be fixed within the next days along with an update to a recent version.
Comment 2 commit-hook freebsd_committer freebsd_triage 2015-05-10 15:24:52 UTC
A commit references this bug:

Author: ohauer
Date: Sun May 10 15:24:33 UTC 2015
New revision: 385964
URL: https://svnweb.freebsd.org/changeset/ports/385964

Log:
  - update to version 3.0.1
  - rename OPTIONS to match default name of most ports
    - SASL2 -> SASL
    - OPENLDAP -> LDAP
  - install main.cf and master.cf with the @sample macro
  - rework pkg-install
  - fix wrong permission for /var/db/postfix [1]
  - sets WANT_OPENLDAP_SASL option for openldap port when
    postfix LDAP_SASL option is set [2]
  - make usage of new ${opt}_DEPENDS notation

  Release 3.0.1 or 3.0.2 is now a strong candidate to become the new
  default mail/postfix port (missing components are VDA and SPF).

  Changelog:
  20150211
  	Cleanup: strncasecmp_utf8() streamlining. Files: util/stringops.h,
  	util/allascii.c, util/strcasecmp_utf8.c.

  20150214
  	Bugfix (introduced: Postfix 3.0): missing #ifdef USE_TLS
  	inside #ifdef USE_SASL_AUTH.  Viktor Dukhovni. File:
  	smtpd/smtpd.c.

  20150217
  	Cleanup: missing <string.h> include. File: util/allascii.c.

  20150221
  	Bugfix (introduced: Postfix 3.0): don't append '.' to the
  	DNS resource record value, when converting TXT records to
  	the string form that is used used by xxx_dns_reply_filter.
  	File: dns/dns_strrecord.c.

  20150313
  	Documentation: incorrect Postfix version number for
  	postscreen_dnsbl_timeout. Quanah Gibson-Mount. File:
  	postscreen/postscreen.c.

  20150324
  	Bugfix (introduced: Postfix 2.6): sender_dependent_relayhost_maps
  	ignored the relayhost setting in the case of a DUNNO lookup
  	result.  It would use the recipient domain instead.  Viktor
  	Dukhovni. Wietse took the pieces of code that enforce the
  	precedence of a sender-dependent relayhost, the global
  	relayhost, and the recipient domain, and put that code
  	together in once place so that it is easier to maintain.
  	File: trivial-rewrite/resolve.c.

  20150328
  	Bugfix (introduced: Postfix 1.1.0): post-install expanded
  	macros in parameter values when trying to detect parameter
  	overrides, causing unnecessary main.cf updates during Postfix
  	start-up. Julian Reich, Viktor Dukhovni, and Wietse.  File:
  	conf/post-install.

  20150330
  	Bitrot: prepare for future changes in OpenSSL API. Viktor
  	Dukhovni. File: tls_dane.c.

  PR:	198215 [1]
  PR:	198857 [2]

Changes:
  head/mail/postfix-current/Makefile
  head/mail/postfix-current/distinfo
  head/mail/postfix-current/files/pkg-install.in
  head/mail/postfix-current/pkg-plist
Comment 3 commit-hook freebsd_committer freebsd_triage 2015-05-10 15:25:54 UTC
A commit references this bug:

Author: ohauer
Date: Sun May 10 15:25:34 UTC 2015
New revision: 385965
URL: https://svnweb.freebsd.org/changeset/ports/385965

Log:
  - update to version 2.11.5
  - rename OPTIONS to match default name of most ports
    - SASL2 -> SASL
    - OPENLDAP -> LDAP
  - install main.cf and master.cf with the @sample macro
  - rework pkg-install
  - fix wrong permission for /var/db/postfix [1]
  - sets WANT_OPENLDAP_SASL option for openldap port when
    postfix LDAP_SASL option is set [2]
  - make usage of new ${opt}_DEPENDS notation

  Changelog:
  20150324
          Bugfix (introduced: Postfix 2.6): sender_dependent_relayhost_maps
          ignored the relayhost setting in the case of a DUNNO lookup
          result.  It would use the recipient domain instead.  Viktor
          Dukhovni. Wietse took the pieces of code that enforce the
          precedence of a sender-dependent relayhost, the global
          relayhost, and the recipient domain, and put that code
          together in once place so that it is easier to maintain.
          File: trivial-rewrite/resolve.c.

  20150330
          Bitrot: prepare for future changes in OpenSSL API. Viktor
          Dukhovni. File: tls_dane.c.

  20150408
          Portability: FreeBSD10 support. Files: makedefs, util/sys_defs.h.

          Incompatibility: specifying "make makefiles" with "CC=command"
          will no longer override the default WARN setting.

  PR:	198215 [1]
  	198857 [2]

Changes:
  head/mail/postfix/Makefile
  head/mail/postfix/distinfo
  head/mail/postfix/files/patch-makedefs
  head/mail/postfix/files/patch-src__util__sys_defs.h
  head/mail/postfix/files/pkg-install.in
  head/mail/postfix/pkg-plist
Comment 4 Olli Hauer freebsd_committer freebsd_triage 2015-05-10 15:35:31 UTC
Committed,

Thanks for the fix!