LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   .procmailrc MAILDIR=$HOME/Maildir not working? (http://www.linuxquestions.org/questions/linux-newbie-8/procmailrc-maildir%3D%24home-maildir-not-working-700472/)

paulclark 01-28-2009 06:23 AM

.procmailrc MAILDIR=$HOME/Maildir not working?
 
Hi

I have set up procmail to filter my incoming emails and the recipes are working in the sense that they are splitting into the individual mailboxes or the inbox but they are all going to my HOME folder rather than HOME/Mail

I have:-

VERBOSE=on
PATH=/usr/bin::/bin:/usr/local/bin:.
MAILDIR=$HOME/Mail
DEFAULT=$MAILDIR/inbox
LOGFILE=$MAILDIR/log

There are no errors in the log file which also goes to my HOME directory and I have tried changing the permissions on the "Mail" folder to all rwx to see if that made any difference. It didn't.

This is in Fedora Core 10.

Can anyone tell me what I am missing here?

Paul

repo 01-28-2009 07:07 AM

Is mail owned by the user?
do
chmod 755 Mail

paulclark 01-28-2009 07:23 AM

Yes. I have changed permission and now reads.

drwxr-xr-x 2 paul paul 4096 2009-01-26 16:51 Mail

Sent a test email to myself that still ended up in HOME/inbox

repo 01-28-2009 07:31 AM

Take a look in the logfile for errors
try to remove the directory, and recreate it
what is the procmail rule you are using?

paulclark 01-28-2009 07:56 AM

>Take a look in the logfile for errors

Had a look in there and it said.

procmail: No match on "^X-list: finservukecomm-list@silverquick.com"
procmail: No match on "^X-list: finservuk-list@silverquick.com"
procmail: No match on "^X-list: finservukoracle-list@silverquick.com"
procmail: Locking "./inbox.lock"
procmail: Assigning "LASTFOLDER=./inbox"
procmail: Opening "./inbox"
procmail: Acquiring kernel-lock
procmail: Unlocking "./inbox.lock"
procmail: Notified comsat: "paul@0:././inbox"
From park.investments@talktalk.net Wed Jan 28 13:19:05 2009
Subject: test
Folder: ./inbox

>try to remove the directory, and recreate it

Wow! I removed it, recreated it and chmod 755'd it. That worked thankyou, but I don't know why?

Looks the same to me

drwxr-xr-x 2 paul paul 4096 2009-01-28 13:49 Mail


All times are GMT -5. The time now is 02:38 AM.