Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31797 - postfix-2.0.16-r1 /var/spool/postfix/ permission error
Summary: postfix-2.0.16-r1 /var/spool/postfix/ permission error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-23 00:48 UTC by archan
Modified: 2003-11-08 00:55 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 archan 2003-10-23 00:48:01 UTC
When I installed postfix-2.0.16-r1 using emerge postfix, the installation went
well. After the installation, I tried to start postfix service using following
command "/etc/init.d/postfix restart". Postfix service did not start. I
inspected /var/log/mail/current and found following log -
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by root:
/var/spool/postfix
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by postfix:
/var/spool/postfix/active
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by postfix:
/var/spool/postfix/bounce
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by postfix:
/var/spool/postfix/corrupt
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by postfix:
/var/spool/postfix/defer
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by postfix:
/var/spool/postfix/deferred
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by postfix:
/var/spool/postfix/flush
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by postfix:
/var/spool/postfix/hold
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by postfix:
/var/spool/postfix/incoming
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by postfix:
/var/spool/postfix/private
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by postfix:
/var/spool/postfix/public
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by group postdrop:
/var/spool/postfix/public
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by group postdrop:
/var/spool/postfix/maildrop
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by postfix:
/var/spool/postfix/maildrop
Oct 23 13:06:39 [postfix/postsuper] fatal: scan_dir_push: open directory defer:
Permission denied
Oct 23 13:06:40 [postfix/postfix-script] fatal: Postfix integrity check failed!

I changed the ownership of the dir using "chown -R postfix:postfix
/var/spool/postfix/" and postfix service got started successfully.

Reproducible: Always
Steps to Reproduce:
1. emerge postfix
2. /etc/init.d/postfix restart


Actual Results:  
localhost root # /etc/init.d/postfix restart
 * Starting postfix...                   [ !! ]
localhost root # cat /var/log/mail/current 
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by root:
/var/spool/postfix
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by postfix:
/var/spool/postfix/active
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by postfix:
/var/spool/postfix/bounce
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by postfix:
/var/spool/postfix/corrupt
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by postfix:
/var/spool/postfix/defer
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by postfix:
/var/spool/postfix/deferred
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by postfix:
/var/spool/postfix/flush
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by postfix:
/var/spool/postfix/hold
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by postfix:
/var/spool/postfix/incoming
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by postfix:
/var/spool/postfix/private
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by postfix:
/var/spool/postfix/public
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by group postdrop:
/var/spool/postfix/public
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by group postdrop:
/var/spool/postfix/maildrop
Oct 23 13:06:39 [postfix/postfix-script] warning: not owned by postfix:
/var/spool/postfix/maildrop
Oct 23 13:06:39 [postfix/postsuper] fatal: scan_dir_push: open directory defer:
Permission denied
Oct 23 13:06:40 [postfix/postfix-script] fatal: Postfix integrity check failed!



Expected Results:  
localhost root # /etc/init.d/postfix restart
 * Starting postfix...   [ ok ]
Comment 1 Max Kalika (RETIRED) gentoo-dev 2003-11-08 00:55:38 UTC
Fixed in CVS.  Try emerging postfix 2.0.16-r1 again and please verify that
your spool directory (and all the subdirs) contain proper permissions.  Feel
free to post the results of

  ls -l /var/spool/postfix

... or whereever your postfix queue happens to be.