Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'postfix permissions' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
postfix permissions
Authored by: sjk on Mar 19, '04 09:06:41AM
I've never seen Repair Disk Permissions report any /var/spool/postfix changes so I'm not sure why it happens on your system, but its subdirectories need to be set up correctly or Postfix won't run properly (if at all). Comments in the /etc/postfix/post-install script say:
set-permissions
Set all file/directory ownerships and permissions according to the contents of $config_directory/postfix-files, using the mail_owner and setgid_group parameter settings from the command line, process environment or from the installed main.cf file. Implies create-missing.

This is required when installing Postfix from a pre-built package or when changing the mail_owner or setgid_group installation parameter settings after Postfix is already installed.
On my working system:
% egrep '^(mail_owner|setgid_group)' /etc/postfix/main.cf
mail_owner = postfix
setgid_group = postdrop

% ls -l /var/spool/postfix
total 0
drwx------  18 postfix  wheel     612 17 Dec 22:00 active
drwx------   6 postfix  wheel     204 16 Mar 13:49 bounce
drwx------   2 postfix  wheel      68 25 Sep 20:25 corrupt
drwx------   3 postfix  wheel     102  8 Feb 19:26 defer
drwx------   3 postfix  wheel     102  8 Feb 19:26 deferred
drwx------   2 postfix  wheel      68 25 Sep 20:25 flush
drwx------   2 postfix  wheel      68 25 Sep 20:25 hold
drwx------  18 postfix  wheel     612 18 Mar 18:06 incoming
drwx-wx---   2 postfix  postdrop   68 18 Mar 11:00 maildrop
drwxr-xr-x  11 root     wheel     374  8 Feb 19:26 pid
drwx------  18 postfix  wheel     612 15 Mar 15:31 private
drwx--x---   7 postfix  postdrop  238 15 Mar 15:31 public


[ Reply to This | # ]