Tired of the sixteen terabytes of spam that confront you everymorning? Looking for a way to automatically manage and filter youremail? Say hello to procmail, automated message processing that's socool, it makes you want to believe in magic again.
The first order of business to install procmail on the your Linux box. Drop by the official procmail Web site at http://www.procmail.org/ and get yourself the latest stable release of the software (this tutorial uses procmail 3.2.2).
Once you've downloaded the source code archive to your Linux box (mine is named "olympus"), log in as "root"
[me@olympus] $ su -
Password: ****
and extract the source to a temporary directory.
[root@olympus] $ cd /tmp
[root@olympus] $ tar -xzvf /home/me/procmail-3.2.2.tar-gz
Next, compile and install the package.
[root@olympus] $ cd /home/me/procmail-3.2.2
[root@olympus] $ make install
Unless you specified a different path, procmail will have
been installed to the directory "/usr/bin".
Next, you need to configure your MTA to use procmail for local delivery. You will need to refer to the instructions that ship with your MTA to accomplish this (if you're using sendmail, it should come configured to use procmail out of the box).
Once you've got procmail installed, the next step is to take it for a test drive. Let's do that next.