Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 669304

Summary: mail-mta/postfix-3.3.1-r1 fails to set permissions on /usr/sbin/{postqueue,postdrop}
Product: Gentoo Linux Reporter: Timo Rothenpieler <timo>
Component: Current packagesAssignee: Eray Aslan <eras>
Status: RESOLVED DUPLICATE    
Severity: normal CC: gentoo_bugs_peep, net-mail+disabled, williamh
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Timo Rothenpieler 2018-10-22 10:48:42 UTC
After upgrading from 3.2.4 to 3.3.1-r1 I ended up with some of my system services seemingly randomly unable to send mail, even though it worked fine from the command line.

Found the following in my postfix log:
postfix/postfix-script[2883]: warning: not owned by group postdrop: /usr/sbin/postqueue
postfix/postfix-script[2884]: warning: not owned by group postdrop: /usr/sbin/postdrop
postfix/postfix-script[2886]: warning: not set-gid or not owner+group+world executable: /usr/sbin/postqueue
postfix/postfix-script[2887]: warning: not set-gid or not owner+group+world executable: /usr/sbin/postdrop

After doing as told by the warning (chgrp postdrop and chmod g+s), the warnings disappeared and my services can send mail again.

Looking at the ebuild, I'd assume that the call to "postfix set-permissions" would be supposed to set those.
Doing it manually shows it failing though, because I do not have any .proto or .default config files in my /etc/postfix dir, which probably makes it abort early, never setting those file permissions.
Comment 1 Philippe Chaintreuil 2019-03-26 20:31:37 UTC
Is this a dupe of bug #665280?  ("mail-mta/postfix-3.3.1-r1: Many permissions incorrect after update, postfix functionality impaired")
Comment 2 Eray Aslan gentoo-dev 2021-11-09 06:02:35 UTC

*** This bug has been marked as a duplicate of bug 665280 ***