procmail

procmail

This page is under construction.

procmail is a mail processor which can do a variety of things with and/or in response to your mail. It can selectively sort, forward, reject, remail or allow your mail to be delivered to you in the normal fashion.

Before you start using it, you should at least look at the manpage for procmail.

procmail is invoked on newly received mail via the .forward file. The contents of .forward should be

     "|IFS=' ';exec /usr/local/bin/procmail #YOUR_LOGIN_NAME"
where YOUR_LOGIN_NAME is your user ID.

procmail determines what to do based on "recipes" found in the .procmailrc file.

How can I just ignore someone?

Suppose you're getting annoying messages from bozo@somewhere.rutgers.edu. If you would like to never see another message from this person again, simply put the following recipe in your .procmailrc.
	:
	* ^From: .*bozo@somewhere.rutgers.edu
	/dev/null
The first line (":") starts the recipe. The second is an egrep regular expression to search the incoming message for. The third tells where to deliver the message if the above expression is matched. (/dev/null is the "bit bucket.")
I now have a web page describing how to use procmail to filter spam.
This page last updated January 26, 2005.