LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   procmail mailboxes ... some work, some don't (https://www.linuxquestions.org/questions/linux-newbie-8/procmail-mailboxes-some-work-some-dont-697018/)

Spechal 01-13-2009 11:06 AM

procmail mailboxes ... some work, some don't
 
'ello all.

I had several accounts up and working, now half of them do not deliver email to the users home directory.

I have the following .procmailrc in each users home directory

Code:

PATH=/bin:/usr/bin
SHELL=/bin/sh
MAILDIR=$HOME/mail/INBOX/
DEFAULT=$MAILDIR
VERBOSE=OFF
LOGFILE=$HOME/procmail.log
TMP=/var/tmp
:0
${MAILDIR}

Using this .procmailrc I can receive mail, but some other users mail is still being delivered to /var/mail/$USER

Code:

ls -al /home/
drwxrwxr-x  5 awyrick    mail 4096 Jan 13 09:35 awyrick
drwxrwxr-x  6 bounces    mail 4096 Jan 13 09:37 bounces
drwxrwxr-x  6 spam      mail 4096 Jan 13 09:39 spam
drwxrwxr-x  2 fsdss      mail 4096 Nov  7 12:42 fsdss
drwxrwxr-x  5 abc        mail 4096 Jan 13 10:51 abc
drwxrwxr-x  6 dfsd      mail 4096 Jan 13 09:55 dfsd

abc, spam and bounces all work. The others get delivered to /var/mail/$USER

Anyone have any ideas? I am at a loss here. All users home directories are owned by $USER:mail

Spechal 01-13-2009 12:23 PM

Holy crap ...

I had to change the groups for all users to users, change the owner of /home to root:users and chmod -R 755 /home/* and chgrp -R /home/* users
I used
Code:

cat /var/mail/mailbox | formail -s sendmail -t "me@you.com"
to get all of the email delivered to the right boxes.


All times are GMT -5. The time now is 03:10 PM.