Hi,
Now, I test it with chmod a+r of my $HOME and my .procmailrc and don't
work
Your $HOME must be x (searchable) by all.
Is your home directory NFS-mounted from another machine?
yes, my home directory on NFS and my spool/mail to another
Aha!
It's important?
Yes. Here is what happens.
When you send mail to yourself, procmail might be running as your uid,
so it can read and search your home directory. If somebody else sends
mail to you, procmail may run as root (or maybe as that other person's
uid). In that case, an NFS-mounted directory might not be searchable
by root. Notice what happens when I make a directory on an
NFS-mounted system and try to access it as root:
$ pwd
/net/blahblah/home/collin
$ mkdir nxr
$ cd nxr
$ echo '# hi there' > .procmailrc
$ chmod a+r . .procmailrc
$ ls -la
total 9
drwxr--r-- 2 collin users 1024 Aug 14 09:09 .
drwxr-xr-x 111 collin users 13312 Aug 14 09:09 ..
-rw-r--r-- 1 collin users 11 Aug 14 09:09 .procmailrc
$ PS1='# ' su
Password:
# ls -la
ls: ..: Permission denied
ls: .procmailrc: Permission denied
total 1
drwxr--r-- 2 collin users 1024 Aug 14 09:09 .
# cat .procmailrc
cat: .procmailrc: Permission denied
# exit
Notice that root can't read /net/blahblah/home/collin/nxr/.procmailrc
even though "chmod a+r" was done on the directory. If I do this,
though, root can read it just fine:
$ chmod a+x .
$ PS1='# ' su
Password:
# cat .procmailrc
# hi there
It worked!
# ls -la
total 9
drwxr-xr-x 2 collin users 1024 Aug 14 09:09 .
drwxr-xr-x 111 collin users 13312 Aug 14 09:09 ..
-rw-r--r-- 1 collin users 11 Aug 14 09:09 .procmailrc
# exit
$ exit
hth
collin
--
Neither I nor my employer will accept any liability for any problems
or consequential loss caused by relying on this information.
Collin Park Not a statement of my employer.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail