Here's my .procmailrc from my ~aewhale Directory. One Caveat, I am using 2.4 currently, and I have configure my environment to use the Procmail utility per individual user. Do you specify the procmail delivery agent in your Sendmail.mc (m4 Macro configuration file) or sendmail.cf file? You will need the entries:
/etc/mail/ABS.mc:define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail') /etc/mail/ABS.mc:FEATURE(`local_procmail') /etc/mail/ABS.mc:MAILER(procmail) in order to create the entries: /etc/mail/ABS.cf:##### $Id: local_procmail.m4,v 8.21 1999/11/18 05:06:23 ca Exp $ ##### /etc/mail/ABS.cf:##### $Id: local_procmail.m4,v 8.21 1999/11/18 05:06:23 ca Exp $ ##### /etc/mail/ABS.cf:##### $Id: procmail.m4,v 8.20 1999/10/18 04:57:54 gshapiro Exp $ ##### /etc/mail/ABS.cf:Mprocmail, P=/usr/bin/procmail, F=DFMSPhnu9, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP/HdrFromSMTP, /etc/mail/ABS.cf: A=procmail -Y -m $h $f $u /etc/mail/ABS.cf:Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, /etc/mail/ABS.cf: A=procmail -Y -a $h -d $u Don't forget, my ABS should be your sendmail filename. Here's my .procmailrc script. [/home/aewhale] more .procmailrc # junkfilter # a junk email filter system for procmail # Copyright 1997-2001 Gregory Sutter <[EMAIL PROTECTED]> # # $Id: procmailrc.sample,v 2.4 2001/05/28 20:10:50 gsutter Exp $ # # Please read the file "README" and the page # http://junkfilter.zer0.org/ before using junkfilter. # This is a simple sample .procmailrc that calls junkfilter. # It will work as-is, but you may want to change $PMDIR and $JFDIR. SHELL=/bin/sh PATH="$HOME/bin:/usr/bin:/usr/local/bin:/usr/include:/usr/local/sbin:/bin:/sbin: /usr/sbin" MAILDIR=/var/spool/mail PMDIR=/var/Procmail JFDIR=/var/Procmail/junkfilter DEFAULT=$ORGMAIL LOGFILE=/var/Procmail/log LOGABSTRACT=all VERBOSE=no # Call junkfilter INCLUDERC=$JFDIR/junkfilter # Take action if junkfilter caught a junkmail. :0 * JFEXP ?? . { :0 f * JFSTATUS ?? 1 | formail -i "X-junkfilter: $JFVERSION" -i "X-Spammer: $JFEXP" \ -i "X-JFClass: White List" :0 E : | formail -i "X-junkfilter: $JFVERSION" -i "X-Spammer: $JFEXP" \ -i "X-JFClass: SPAM" >> $ORGMAIL } # Catches everything else. :0 : | formail -i "X-JFClass: OK-ABS" >>$ORGMAIL # EOF procmailrc.sample HTH! Praedor Tempus wrote: > Hmpf. > > I have/had procmail working on my system. I have a directory: $HOME/.procmail > which contains a link to $HOME/.procmailrc. I read the somewhat confusing > directions in the README with junkfilter and elected to install the > junkfilter files in /usr/local/etc/junkfilter. I created a symlink in my > .procmail directory to the junkfilter directory, ie, "ln -s > /usr/local/etc/junkfilter $HOME/.procmail/junkfilter". I created a directory > in .procmail called "lists" which are for my user-specific lists. I set > "JFDIR=$PMDIR/junkfilter" and "JFUSERDIR=$PMDIR/lists" in my .procmailrc and > in my .bash_profile. I was then able to build/make the filters (make create > and make all) which filled my .procmail/lists directory with a load of empty > user files. The jf binary is executable and resides in the junkfilter > directory plus I followed your example and made a symlink to it in /usr/bin. > > I added INCLUDERC=$PMDIR/junkfilter to my .procmailrc. I've been watching the > procmail log in my .procmail dir and see whenever a new message is "handled" > by procmail. It just isn't doing anything. I have set my mailer to display > ALL headers and I have sent myself fake SPAM messages using keywords and > combinations included in the junkfilter filters ("Please read" and the like). > Nothing I've done leads to any message having any header information altered > or added to indicated that junkfilter looked it over and passed a judgement. > None of the fake spams have received any X-IS-SPAM additions and neither has > any of the real junk I have stored and resent to myself. > > There are no error messages and the procmail log indicates everything is > OK...but it isn't. > > praedor > > On Friday 22 November 2002 01:28 pm, Albert E. Whale wrote: > > It is my Understanding that you need to set the > > PMDIR = {directory of Procmail Storage info} - i.e. /var/Procmail > > JFDIR = {directory of Junkfilter Binaries} - i.e. /var/Procmail/junkfilter > > > -- > Conservatives of all times are adventitious liars. > - Friedrich Nietzsche. > > ------------------------------------------------------------------------ > Want to buy your Pack or Services from MandrakeSoft? > Go to http://www.mandrakestore.com -- Albert E. Whale - CISSP http://www.abs-comptech.com ---------------------------------------------------------------------- ABS Computer Technology, Inc. - ESM, Computer & Networking Specialists Sr. Security, Network, and Systems Consultant Board of Directors - InfraGard - Pittsburgh, PA
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
