Procmail recipies

John Seth johnseth at phoenixwing.com
Sat Jan 24 19:16:33 EST 2004


you can also check out SpamAssassin.  It's a perl based program that
interacts with procmail. Take a look at http://spamassassin.org/ for
more info.  I once did procmail recipes, but run spamassassin instead.

My current reciper is as follows:

----- begin .procmailrc -----
:0:
* ^List-ID: <mysql.mysql.com>
.MySQL/

:0:
* ^list-post: <mailto:php-db at lists.php.net>
.PHP/

:0fw
|/usr/bin/spamc -f

:0 H
* ^X-Spam-Status: Yes
.Spam/
----- end .procmailrc -----

Note that I run Maildir rather than standard mbox format so the
".MySQL/", and ".PHP/" etc lines may differ for your setup.

This recipe sends everything incoming from my MySQL and PHP mailing
lists to a folder inside my inbox prior to being filtered for Spam, then
runs the SpamAssassin filter.  Anything tagged as Spam (labeled as such
in the header by X-Spam-Status) is then sent into a .Spam/ folder for me
to check via webmail or imap.

It may be easier to manage a setup with spamassassin than updating
procmail recipes, but that's up to each person.  I use Squirrelmail
combined with a SpamAssassin plugin to manage my spamassassin settings,
and works rather well, both on my personal system, and at the ISP I work
for.

I hope that helps some...

   -- Tony


michael.phillips at michaelphillipsnet.com said:
> Quoting hawkwynd <hawkwynd at adelphia.net>:
>> 1. Filtering incoherently written bodies. Sometimes you get a spam
>> from
>> somewhere that has garbled words in no apparent meaning or order. How
>> can
>> I filter for that?
>
> I was recieveing e-mail like that.  I went and look at the e-mail's
> headers and
> found a common link to all of them.  This is the recipe that I came up
> with:
>
> :0:
> * ^Content-type: text/html; charset=(euc-kr|ks_c_5601-1987)
> trash
>
>> 2. I'd like to create a blacklist of domains where I want to be able
>> to
>> read from a file, and filter from the list in the file. I saw a recipe
>> out
>> there once, lost it when I re-formatted, and didn't back it up (Doh!)
>
> You will need to find an external program to procmail recipes.
>
> Michael
>
>




More information about the nflug mailing list