Skip to Content.
Sympa Menu

baslinux - [BL] .procmailrc

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: sindi keesan <keesan AT sdf.lonestar.org>
  • To: baslinux AT lists.ibiblio.org
  • Subject: [BL] .procmailrc
  • Date: Thu, 28 Dec 2006 23:20:04 +0000 (UTC)

Here is a sample of how to set up a procmail filter. The spamassin part is optional.
--------------------------

[Copy this line to .forward]

|/usr/local/bin/procmail

----------------------------

[Copy the following lines to .procmailrc in your home directory.]

##If you delete the LOGFILE and VERBOSE lines you won't get a log file
##showing where messages ended up. If you change off to on
##you will get a much larger file showing what filter got them.

##change keesan to your own login name - I don't want your mail! MAIL=/var/mail/keesan
LOGFILE=$HOME/mail/logfile
VERBOSE=off

##The following few sections are a whitelist - mail you know you want.
##Make copies of the keesan line and change keesan to your friend's names.
##$MAIL - your inbox.

##Any mail sent with pine is not spam.
:0:
* ^References:.*pine
$MAIL

:0:
* ^From:.*keesan
$MAIL

:0B:
* linux
${HOME}/mail/linux

:0B:
* Windows-1252
${HOME}/mail/spam

:0B:
* viagra
/dev/null


##This section uses the global file spamc to access spamd=spamassasin
##which assigns points incoming mail that passed the above filters.

:0fw: spamassassin.lock
| /usr/local/bin/spamc

##This throws out any mail assigned 3 or more points.

:0:
* ^X-Spam-Level: \*\*\*
/dev/null

##This routes mail with 2 points to a spam folder.
## Read the spam folder mail then delete the folder.

:0:
* ^X-Spam-Level: \*\*
${HOME}/mail/spam

##You can add more filters here for things listed by spamcop, etc.

#This line sends anything else to your inbox.

:0:
$MAIL



Sindi Keesan



  • [BL] .procmailrc, sindi keesan, 12/28/2006

Archive powered by MHonArc 2.6.24.

Top of Page