Setting up procmail

procmail is usually invoked from your .forward file by putting this line in your .forward. (Be sure to keep the double quotes at the beginning and end, they are important)

"|IFS=' '&&exec /usr/local/bin/procmail -f-||exit 75 #YOUR_USERNAME"

On some systems the existance of a .procmailrc is sufficient for invoking procmail. No .forward file is necessary. Check with your system administrator to find out if procmail is installed as the mail delivery agent. If you are the system administrator you'll know if there's a section such as:

Mlocal,  P=/usr/local/bin/procmail, F=lsDFMAw5:/|@qSPfhn9,S=10/30, R=20/40,
         T=DNS/RFC822/X-Unix,
         A=procmail -Y -a $h -d $u
in your /etc/sendmail.cf. If you get into trouble at some point (mail loop, etc) you can very easily shut everything down by doing:

mv .forward .for

or

mv .procmailrc .proc
if procmail is set up to work without a .forward file.

(Trust me, this comes in handy =)
Back: Where do I get procmail? Top Next: The .procmailrc

j g r o s s @ s t i m p y . n e t