procmail has stopped working

Francisco Borges f.borges at rug.nl
Fri Nov 10 22:52:30 UTC 2006


Hello!

: On Fri, Nov 10, 2006 at 09:48PM +0000, Matthew East wrote:

> something has gone screwy with the permissions, although I wouldn't
> recognise the problem if I saw it, I suppose. Here they are:
>
> Relevant files in ~ are:
>
> - -rw-------   1 mdke pg596143  154 2006-11-04 07:57 .forward.postfix
> - -rw-rw-rw-   1 mdke pg596143  456 2006-11-10 13:42 .procmailrc

What I do know *for sure* is that procmail won't use $HOME/.procmailrc
if it's group-writable or if it is in a group-writable directory, unless
it's your default group. Is pg596143 your default group?


Second, this "other user" read and write access has got to be dead
wrong. I would be sincerely surprised if procmail would accept running a
file that anyone could write.

[ ... went to test it myself ... ]

It does not work. A default $HOME/.procmailrc will *not* run with these
permissions (-rw-rw-rw), regardless of the group issue I mentioned
above:

% ls -l ~/.procmailrc
-rw----rw- 1 borges aistaff 400 2006-11-10 23:38 /home/borges/.procmailrc

% procmail < mail.txt
procmail: Suspicious rcfile "/home/borges/.procmailrc"
procmail: Couldn't read "/home/borges/.procmailrc"

After a "chmod og-rwx ~/.procmailrc" it works again.

> ~/procmail is:
>
> - -rw-rw-rw-   1 mdke pg596143   229 2006-11-10 00:09 bounces.rc
> - -rw-rw-rw-   1 mdke pg596143   118 2006-11-10 00:09 bugmail.rc
> - -rw-------   1 mdke pg596143 76646 2006-11-09 00:06 log
> - -rw-rw-rw-   1 mdke pg596143  1311 2006-11-10 00:09 mailinglists.rc
> - -rw-rw-rw-   1 mdke pg596143   149 2006-11-10 00:09 misc.rc
> - -rw-rw-rw-   1 mdke pg596143   282 2006-11-10 00:08 postspam.rc
> - -rw-rw-rw-   1 mdke pg596143   254 2006-11-10 00:08 spam.rc

No permission checking is done on INCLUDERC files.

Cheers,
-- 
Francisco





More information about the ubuntu-users mailing list