I'm playing with procmail and not really getting very far!
I've got 2 Linux machines, one's got RH6.0 the other Mandrake 6.1, I get
the same problem with both.
I've read the books, searched the Internet, and this is what I'm doing ...
I've made a .procmailrc file in my home directory, this has had several
incarnations, the simplest being
MAILDIR=$HOME/mail
:0:
* ^Subject:.*test
Test
/home/danb/mail does exist by the way
Now, having sent mail to myself it doesn't get filtered. So I created a
.forward file with 644 permissions ...
"|exec /usr/bin/procmail #501"
501 being my user id
When I try this I get ...
[danb@portal:danb]$ mail danb
Subject: test
hi
.
Cc:
/home/danb/.forward: line 1: forwarding to "|exec /usr/bin/procmail #501"
"|exec /usr/bin/procmail #501"... Connecting to prog...
"|exec /usr/bin/procmail #501"... Service unavailable
/home/danb/.forward: line 1: forwarding to "|exec /usr/bin/procmail #501"
/home/danb/dead.letter... Saved message in /home/danb/dead.letter
[danb@portal:danb]$
$ type procmail gives:
procmail is /usr/bin/procmail
and it is rpm'd in.
So, what totally basic step am I doing wrong ? Do I have to set up
sendmail to use procmail? I read somewhere RH6 and higher uses procmail by
default so I don't need a .forward file, is this true?
Thanks
Dan