[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] procmail and mail spool permissions



I found the following bit of wisdom in procmail mail list.
-----------------------------------------------------
Finally, you need to make sure all mailboxes have permissions 760
rather than 600.  For new mailboxes, this line in /etc/procmailrc
should help:

       UMASK=007

For existing mailboxes, say

       chmod u+x,g+rw /var/spool/mail/*
or
       chmod 760 /var/spool/mail/*

Rationale?  The procmail(1) manpage says

       If  /var/spool/mail/$LOGNAME  already  is a valid mailbox,
       but has got too loose permissions  on  it,  procmail  will
       correct  this.   To  prevent procmail from doing this make
       sure the u+x bit is set.
------------------------------------------------------------------------
---------------

----- Original Message -----
From: Joshua Kim <thejk@xxxxxxxx>
To: COBALT USER GROUP <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Sunday, March 18, 2001 10:42 PM
Subject: [cobalt-users] procmail and mail spool permissions


> Ok, I thought I found out how to do this, but it ain't working as I
> hoped. While I continue my search for the answer on my own, can anyone
> help me?
>
> I'm trying to set the /home/spool/mail/username permissions to 660. I
> thought creating and adding a line (UMASK=117) to /etc/procmailrc
would
> do the trick, but it doesn't. Does anyone have any ideas? Thanks!
>