Bug 2655

Summary: maildrop needs to be group writable
Product: Mageia Reporter: Robert Riches <rmriches>
Component: RPM PackagesAssignee: Daniel Lucio <luis.daniel.lucio>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: marja11, remco, stormi-mageia
Version: 1   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: postfix CVE:
Status comment:

Description Robert Riches 2011-09-07 06:28:47 CEST
Directory /var/spool/postfix/maildrop was created with mode 755.  The man page for postdrop says it is sgid postdrop (which it is) in order to be able to write to the maildrop directory.  That implies that /var/spool/postfix/maildrop needs to be 775 (g+w relative to how it was created).  When I manually made the change in mode, postfix went from non-working to working for me.  My installation is Mageia 1 with postfix-2.7.4-1.mga1.
Remco Rijnders 2011-09-07 08:33:18 CEST

CC: (none) => remco

Samuel Verschelde 2011-10-01 17:48:53 CEST

CC: (none) => stormi
Assignee: bugsquad => dlucio
Source RPM: (none) => postfix

Comment 1 Daniel Lucio 2011-10-02 08:04:05 CEST
initial dir permitioswere 730, i did chante them to 770 since it was no necesary to give pemitio worldwide.

Please test.
Comment 2 Robert Riches 2011-10-03 01:25:08 CEST
I manually changed my /var/spool/postfix/maildrop to 770, from the 775 I had been using, and both outbound and inbound mail appears to still work.  I believe the test was successful.

Daniel, it is interesting (but probably not too very important) that you say its initial permissions were 730.  I definitely saw it initially with 755, g+rx relative to what the 730 you stated.  In fact, everything in my /var/spool/postfix is 755 except for maildrop (now 770) and saved (700).  The only mode difference "rpm -V postfix" reports in /var/spool/postfix is maildrop.  I'm running standard security level, but I don't think that would affect "rpm -V ..." checking.  My postfix version is postfix-2.7.4-1.mga1
Comment 3 Robert Riches 2011-10-15 22:04:01 CEST
Updated to postfix-2.7.4-1.2.mga1, which changed /var/spool/postfix/maildrop to mode 730, and both outbound and inbound mail appears to be working.  Thank you.
Comment 4 Marja Van Waes 2012-01-17 14:54:56 CET
(In reply to comment #3)
> Updated to postfix-2.7.4-1.2.mga1, which changed /var/spool/postfix/maildrop to
> mode 730, and both outbound and inbound mail appears to be working.  Thank you.

730, so group writeable, and everything works. Closing as fixed :)

Status: NEW => RESOLVED
CC: (none) => marja11
Resolution: (none) => FIXED