procmail
[Top] [All Lists]

Procmail not getting invoked

2001-09-16 09:08:45
Hello,

I'm running a stock RedHat 7.1 system.

When mail comes in to the system, via Fetchmail (in a user/non-root
account) the Sendmail system is not invoking Procmail to process the mail.

1) I've checked /etc/sendmail.cf, it seems to contain the proper
invocation lines:

--- from /etc/sendmail.cf ---

#####  $Id: procmail.m4,v 8.20 1999/10/18 04:57:54 gshapiro Exp $  #####

Mprocmail,      P=/usr/bin/procmail, F=DFMSPhnu9, S=EnvFromSMTP/HdrFromSMTP, 
R=EnvToSMTP/HdrFromSMT
                T=DNS/RFC822/X-Unix,
                A=procmail -Y -m $h $f $u

---- end sendmail.cf ---

2) I've created a .forward file in my home directory (the user invoking
fetchmail) :

"|IFS=' ' && p=/usr/bin/procmail && test -f $p && exec $p -Yf- || exit 75 
#mlongval"

3) I've setup the .procmailrc file as such:

----
HOME=/home/mlongval
PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
MAILDIR=$HOME/mail      # You'd better make sure it exists
DEFAULT=$MAILDIR/mbox
LOGFILE=$MAILDIR/procmail.log
LOCKFILE=$HOME/.lockmail
---

Notice that there are no recipies, I just want everything to go into
$MAILDIR/mbox  (I had a bunch of recipies before, but decided to ditch
them temporarily to test procmail...)

4) I've also set the permissions to 0640 on $HOME/.procmailrc as I've read
on the net.

5) Right now I'm stumped, the reason I wanted to use procmail, was to
filter incoming mail into diferent mailboxes based on ^TO field and some
spam filters.

Thanks for any help.

Michael Longval, MD
mlongval(_at_)geocities(_dot_)com

-- 

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>