On Mon, Mar 20, 2000 at 07:53:34AM +0000, Glyn Millington wrote:
-> On Sun, Mar 19, 2000 at 03:19:35PM -0700, thus spake Charles Curley:
->
-> >
-> > That is the text of my ~/.forward file
-> >
-> > I got the offending line from
-> > http://www.ii.com/internet/robots/procmail/qs/, another web page where the
-> > author looks like she knows what she is doing.
->
->
-> Sorry - second bite............
->
->
-> Try putting this in your .forward file and uncommenting each in
-> turn
->
->
-> #"|IFS=' ' ;exec /usr/bin/procmail -f- || exit 75 USER=glyn"
-> #"|exec /usr/bin/procmail #glyn"
-> #"|exec /usr/bin/procmail USER=glyn"
-> #"|IFS=' ';exec /usr/bin/procmail #glyn"
-> # "|IFS=' ';exec /usr/bin/procmail USER=glyn"
-> #"|/usr/bin/procmail #glyn"
-> #"|IFS=' '&&p=/usr/bin/procmail&&test -f $p&&exec $p -f-||exit 75#glyn"
-> # "|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #glyn"
->
->
-> I thuink I found them in the troubleshooting department of the
-> page you mentioned.
I never did get any of these to work correctly.
It turns out there is a more elegant solution, which someone on the
procmail list provided. The short of it is to make your .procmailrc file
writable only by its owner:
ccurley@charlesc $ ll .procmailrc
-rw-r--r-- 1 ccurley ccurley 799 Mar 22 13:45 .procmailrc
The long of it is:
Mark Irvine <[EMAIL PROTECTED]> writes:
...
>I'm trying to get procmail working on my home PC running Linux(2.2)(RedHat6.0).
>I am having some strange problems getting it to actually do ANYTHING.
>
>When I say it won't do anything, it won't do any basic filtering, or even
>generate a log file!
...
The problem is almost certainly one of permissions. If you were to examine
the maillog file in /var/log you should find bunches of messages saying
Suspicious rcfile "/home/mark/.procmailrc"
If you then look up "Suspicious rcfile" in the procmail(1) manpage you'll
see a blurb about procmail not trusting the default rcfile if it's either
a) world writable
b) in a world writable directory
c) group writable, or
d) in a group writable directory
The default Redhat installation puts each user in their own group and sets
their default permissions to include group-write, such that conditions
(c) and (d) are both met. There are two solutions:
1) The prefered solution is to install a version of procmail compiled with
the GROUP_PER_USER define set in the config.h file at compile time.
At one time there was an RPM of procmail version 3.13.1 that had this
set, but I don't know what happened to it. If you can't find such
a beast you can always download the source from:
ftp://ftp.procmail.org/pub/procmail/
and compile it yourself.
2) chmod g-w ~ ~/.procmailrc
This is quick, but fragile: don't forget to do this for all the other
users on the system and the new user template...
Philip Guenther
--
-- C^2
No windows were crashed in the making of this email.
Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley