LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-13-2009, 11:06 AM   #1
Spechal
LQ Newbie
 
Registered: Apr 2007
Posts: 16

Rep: Reputation: 0
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
 
Old 01-13-2009, 12:23 PM   #2
Spechal
LQ Newbie
 
Registered: Apr 2007
Posts: 16

Original Poster
Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How Does Procmail Work w/ MTA? carlosinfl Linux - Server 4 01-31-2008 08:28 PM
Auto reply with postfix and procmail . my setting dosnt's work.? combilli Linux - Software 1 11-03-2006 09:16 AM
qmail work with procmail sizzlingdesi Linux - Software 0 11-02-2006 06:44 PM
Procmail Vs. Mailboxes hzs202 Linux - Software 2 08-07-2005 05:53 PM
Problem with mail delivery procmail>cyrus imap (using sendmail,procmail,cyrus,imap) bwana Linux - Software 2 03-24-2005 07:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration