From owner-freebsd-questions Thu Mar 19 06:33:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA26451 for freebsd-questions-outgoing; Thu, 19 Mar 1998 06:33:36 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from bigbrother (bigbrother.rstcorp.com [206.29.49.2]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id GAA26445; Thu, 19 Mar 1998 06:33:27 -0800 (PST) (envelope-from vshah@rstcorp.com) Received: (from uucp@localhost) by bigbrother (8.6.12/8.6.9) id KAA28158; Thu, 19 Mar 1998 10:22:13 -0500 Received: from fault.rstcorp.com(206.29.49.18) by bigbrother.rstcorp.com via smap (V2.0) id xma028152; Thu, 19 Mar 98 10:21:14 -0500 Received: (from vshah@localhost) by rstcorp.com (8.8.1/8.8.1) id JAA04315; Thu, 19 Mar 1998 09:25:55 -0500 (EST) Date: Thu, 19 Mar 1998 09:25:55 -0500 (EST) Message-Id: <199803191425.JAA04315@rstcorp.com> MIME-Version: 1.0 From: "Viren R. Shah" To: Steven Rutter Cc: freebsd-questions@FreeBSD.ORG, freebsd-newbies@FreeBSD.ORG Subject: Re: procmail (fwd) In-Reply-To: References: X-Mailer: VM 6.40 under 19.16 "Lille" XEmacs Lucid Reply-To: "Viren R. Shah" X-Face: )~y+U*K:yzjz{q<5lzpI_SVef'U.])9g[C9`1N@]u3,MHY7f*l7C)[_NjM4y4K8$uIUh|\u (K&&HS6,M!61&GMTk'mqmB/Qg]]X}"?TzsFl]"2v!bl8']dma.:^IY^a[lbOI>U:b<~FyK3q-p{HmZ mn~g.`~BE!5{2D:}Yi+\_KkWe?XaHj9$ko1k8iKLYv5*_2c8"G=?Up[}hn+7RNM(bzBZ_wWk6!Pf&B ?3Tcm7M7B~W%K/I0aX3]*=jP?aM]H6HBPT`oLk+0n^_;N\2\%|Rhy;p}34Q.jEsM\qtnxcm;ag%Nq Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> "Steven" == Steven Rutter writes: >> As the mail from this list mounts I feel the need to use procmail. :*) I >> created my ~/.procmailrc file correctly [I think] but it does not seem to >> work. The manpage says that it can be started "over the .forward file" or >> the sysadmin can set it up. It does not explain how to do either of those >> however. I would prefer to set it up system-wide. Does anyone know how to >> do this? Assume procmail is in /usr/local/bin My setup is below. The .forward file tells the local mail delivery agent to use procmail. Procmail will look for a file called ~/.procmailrc My .procmailrc first does some spam checking, and then tells procmail to read the file ~/.procmail/rc.maillists. It also logs stuff into ~/.procmail/pmlog. The file rc.maillists has rules for separating out the messages from different mailling lists into folders in ~/Mailfiles/LISTS/XXX.mail You should be able to cut-n-paste stuff from the files included and get the beginnings of a simple procmail filter. [vshah@hal] ~> cat ~/.forward "| IFS=' ';exec /usr/local/bin/procmail #vshah" --------------------------------- [vshah@hal] ~> cat ~/.procmailrc #Set on when debugging VERBOSE=off #Replace `mail' with your mail directory (Pine uses mail, Elm uses Mail) MAILDIR=$HOME/Mailfiles #Directory for storing procmail log and rc files PMDIR=$HOME/.procmail JFDIR=$PMDIR/junkfilter-export LOGFILE=$PMDIR/pmlog #Use the Junk filter INCLUDERC=$JFDIR/rc.junk :0 : * SPAMMER ?? . | formail -i "X-Fkey: junk" -i "X-Spammer: $SPAMMER" >> junkmail #catch the mailing list stuff INCLUDERC=$PMDIR/rc.maillists --------------------------------- [vshah@hal] ~> cat ~/.procmail/rc.maillists SHELL=/bin/sh SENDMAIL=/usr/lib/sendmail PATH=${PATH}:/usr/local/bin:/home/users/toconnor/bin :0 Wh: msgid.lock | formail -D 32768 msgid.cache :0 * ^Sender:.*owner.*@.*freebsd.org$ { :0: * ^Sender:.*cvs LISTS/freebsd-cvs.mail :0: * ^Sender:.*sparc LISTS/freebsd-sparc.mail :0: * ^Sender:.*smp LISTS/freebsd-smp.mail :0: * ^Sender:.*questions LISTS/freebsd-questions.mail :0 : *^Sender:.*hackers LISTS/freebsd-hackers.mail :0 : *^Sender:.*hardware LISTS/freebsd-hardware.mail :0 : *^Sender:.*ports LISTS/freebsd-ports.mail :0 : *^Sender:.*stable LISTS/freebsd-stable.mail :0 : *^Sender:.*current LISTS/freebsd-current.mail } :0 : *^From.*owner-fvwm LISTS/fvwm.mail :0 : *^From.*bujold LISTS/dendarii.mail --------------------------------- Hope this helps Viren -- Viren R. Shah viren@rstcorp.com Everyone was born right-handed. Only the greatest overcome it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message