(1)Procmailが新しいスプールファイルに660の許可を与える条件とされる記述です。
Procmail will give new spool files permission of 660 if and only if
a) the spool directory is not owned by the user as which procmail is
running, and
b) the spool directory is not world writable, or the sgid bit is set
on the directory, and
c) procmail is setgid to the group of the spool directory (or otherwise
has a matching egid).
So, you'll need to choose a non-root user (uid != 0) that is not otherwise
used (you may have to create one for this), and change the spool directory
to be owned by it. Then, turn on the sgid bit on the spool directory:
chown mailspool /var/mail # or whatever user you use
chgrp mail /var/mail # just in case...
chmod g+s /var/mail # or chmod o-w /var/mail
(2)procmailがumaskを使用する条件とされる記述です。
That wouldn't work anyway, as the permissions on new mailboxes are set
when they're 'screened' before procmail opens any rcfiles.
Procmail will only use a umask of 007 when creating mail spools if
1) the spool directory is not owned by the user that procmail is
started as or setuid to (i.e., not owned by root), and
2) procmail is setuid to the group of the spool directory, and
3) either the setgid bit is set on the spool directory or the spool
is not world writable.
コメントを投稿 :