postfix: do NOT create directory /var/spool/mail
PATCH 1/1 postfix: do NOT create directory /var/spool/mail
From: Kai Kang <[email protected]>
postfix installs directory /var/spool/mail which conflicts with package shadow.
| Error: Transaction check error: | file /var/spool/mail conflicts between attempted installs of | postfix-3.1.1-r0.ppc64e6500 and shadow-4.2.1-r0.1.ppc64e6500
Make postfix not create /var/spool/mail that it does NOT create the directory on Fedora and Ubuntu either.
--- meta-networking/recipes-daemons/postfix/postfix.inc | 2 -- 1 file changed, 2 deletions(-)
meta-networking/recipes-daemons/postfix/postfix.inc +0 -2
@@ -164,8 +164,6 @@ do_install () { install -m 770 -d ${D}${localstatedir}/spool/postfix chown postfix:postfix ${D}${localstatedir}/spool/postfix - install -m 2755 -d ${D}${localstatedir}/spool/mail - chown postfix:nogroup ${D}${localstatedir}/spool/mail install -m 0755 -d ${D}${localstatedir}/lib/postfix chown postfix:nogroup ${D}${localstatedir}/lib/postfix install -m 0755 -d ${D}${localstatedir}/spool/postfix
Signature · 1 line
2.10.1
Quoted 11 lines · On 4/9/17 9:18 PM, [email protected] wrote:
From: Kai Kang <[email protected]>
postfix installs directory
/var/spool/mailwhich conflicts with package shadow.| Error: Transaction check error: | file /var/spool/mail conflicts between attempted installs of | postfix-3.1.1-r0.ppc64e6500 and shadow-4.2.1-r0.1.ppc64e6500Make postfix not create
/var/spool/mailthat it does NOT create the directory on Fedora and Ubuntu either.
I am not sure this is correct.
The two packages have (according to DNF/RPM) different permissions, owner or group assigned to that particular directory.
I think it's reasonable for both of the packages to create the directory, however they must match in perms/owner/group. I would defer to shadow as the correct source for this information.
It may be necessary though to change shadow's default to something more reasonable if 'root:root' is not right.
--Mark
Quoted 19 lines
Signed-off-by Kai Kang <[email protected]>--- meta-networking/recipes-daemons/postfix/postfix.inc | 2 -- 1 file changed, 2 deletions(-)meta-networking/recipes-daemons/postfix/postfix.inc +0
-2@@ -164,8 +164,6 @@ do_install () { install -m 770 -d ${D}${localstatedir}/spool/postfix chown postfix:postfix ${D}${localstatedir}/spool/postfix - install -m 2755 -d ${D}${localstatedir}/spool/mail - chown postfix:nogroup ${D}${localstatedir}/spool/mail install -m 0755 -d ${D}${localstatedir}/lib/postfix chown postfix:nogroup ${D}${localstatedir}/lib/postfix install -m 0755 -d ${D}${localstatedir}/spool/postfix
Quoted 12 lines · Mark Hatle
Quoted 11 lines · On 4/9/17 9:18 PM, [email protected] wrote:
From: Kai Kang <[email protected]>
postfix installs directory
/var/spool/mailwhich conflicts with package shadow.| Error: Transaction check error: | file /var/spool/mail conflicts between attempted installs of | postfix-3.1.1-r0.ppc64e6500 and shadow-4.2.1-r0.1.ppc64e6500Make postfix not create
/var/spool/mailthat it does NOT create the directory on Fedora and Ubuntu either.
Quoted 8 lines
I am not sure this is correct.
The two packages have (according to DNF/RPM) different permissions, owner or group assigned to that particular directory.
I think it's reasonable for both of the packages to create the directory, however they must match in perms/owner/group. I would defer to shadow as the correct source for this information.
Do you mean use to update-alternative to keep them both?
Quoted 3 lines
It may be necessary though to change shadow's default to something more reasonable if 'root:root' is not right.
I checked on both Fedora and Ubuntu that /var/spool/mail is set with 'root:mail'. I will update it in recipe shadow. And it also set with 'setgid' on Ubuntu, do we need 'setgid' too?
Thanks.
--Kai
Quoted 23 lines
--Mark
Quoted 19 lines
Signed-off-by Kai Kang <[email protected]>--- meta-networking/recipes-daemons/postfix/postfix.inc | 2 -- 1 file changed, 2 deletions(-)meta-networking/recipes-daemons/postfix/postfix.inc +0
-2@@ -164,8 +164,6 @@ do_install () { install -m 770 -d ${D}${localstatedir}/spool/postfix chown postfix:postfix ${D}${localstatedir}/spool/postfix - install -m 2755 -d ${D}${localstatedir}/spool/mail - chown postfix:nogroup ${D}${localstatedir}/spool/mail install -m 0755 -d ${D}${localstatedir}/lib/postfix chown postfix:nogroup ${D}${localstatedir}/lib/postfix install -m 0755 -d ${D}${localstatedir}/spool/postfix
Signature · 2 lines
Regards, Neil | Kai Kang