Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 841 - Postfix install broken
Summary: Postfix install broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Grant Goodyear (RETIRED)
URL: http://www.bsdtoday.com/2000/Septembe...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-24 20:07 UTC by Eric Floehr
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Floehr 2002-02-24 20:07:40 UTC
For a non-root user, postdrop fails with

"warning: mail_queue_enter: create file maildrop/###.###: Permission denied"

where, ###.### is some number.  The reason is that postfix isn't installed with 
setgid (install.cf), so postdrop runs with the permissions of the user who runs 
it (postdrop is called by postfix's sendmail replacement, which is called by 
mail programs like mutt).  But /var/spool/postfix/maildrop is installed with 
user/group postfix/postdrop and isn't world-writable.  Postdrop needs to write 
to that directory, so if setgid isn't set in the postfix install/build, which 
appears to not be, /var/spool/postfix/maildrop should be world-writable (the 
Mandrake postfix install does this).  However, the better answer is to set 
setgid on the postfix install.

The URL above has more info: Scroll down to "Protecting your maildrop 
directory".
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-02-27 17:22:40 UTC
latest postfix fixes this problem .. thanks woodchip :)