Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reformatted page and corrected .forward instructions

How do I

...

ensure that procmail is working?

Wiki Markup
If you already use procmail, skip to the next section.  If not, ensure procmail is installed using {{which procmail}} or install it from \[http://www.procmail.org/ www.procmail.org\].  Note that some systems use procmail by default, so the directions in the next paragraph may not be necessary for your installation.  Also, some accounts require use of web-based configuration tools to specify that a given mailbox should "filter" to {{/usr/local/bin/procmail}} (for example).

In a traditional shell installation, create a .forward file in your home directory (or .qmail as appropriate) containing the below lines, but replacing user with your username (which you can discover by entering whoami):First you must ensure that procmail is used as your local mail delivery agent (MDA). To enable this as a per-user setting, you may need to add a .forward or .qmail file in your home directory containing the following line (Note: the quotes matter)

No Format
"| formail -dsIFS=' ' && exec /usr/bin/procmail"

...

 -f- || exit 75 #user"

How do I use SpamAssassin with procmail?

Wiki Markup
Now, edit or create a .procmailrc file in your home directory containing the below lines, which come from the \[http://spamassassin.org/dist/procmailrc.example procmailrc.example\].

...

No Format
wget http://spamassassin.org/dist/procmailrc.example
mv procmail.example .procmailrc

Important details

If you're running procmail as root, you need to add the line DROPPRIVS=yes at the top of the procmail script to avoid having an invalid owner of the processed email.

...

Wiki Markup
Read \[http://mirrors.ccs.neu.edu/cgi-bin/unixhelp/man-cgi?procmailrc 'man procmailrc'\] and \[http://mirrors.ccs.neu.edu/cgi-bin/unixhelp/man-cgi?procmailex 'man procmailex'\] for futher details and explanation.

Contributors