Date: Thu, 19 Mar 1998 09:25:55 -0500 (EST) From: "Viren R. Shah" <viren@rstcorp.com> To: Steven Rutter <steven@che.softaid.net> Cc: freebsd-questions@FreeBSD.ORG, freebsd-newbies@FreeBSD.ORG Subject: Re: procmail (fwd) Message-ID: <199803191425.JAA04315@rstcorp.com> In-Reply-To: <Pine.BSF.3.96.980319030128.16620A-100000@che.softaid.net> References: <Pine.BSF.3.96.980319030128.16620A-100000@che.softaid.net>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "Steven" == Steven Rutter <steven@che.softaid.net> 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-newbies" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803191425.JAA04315>