On Tue, 8 Jan 2008, Noah wrote:

Thanks John,

the problem is that our moderators are getting way too much mail and just want to trash the high-scoring meesages.

We filter on mailman mailing lists in a roundabout way.

We changed the mailman "post" alias to invoke a procmail script, like:
list-blah:         "|/usr/bin/procmail -m /etc/procmailrcs/list-blah.rc"

Then, the procmail recipe 1. runs spamc, 2. /dev/nulls anything over
10, and 3. calls mailman "post" the way the alias used to.  I've
included an example below.

Then, in the mailman config for that list, under privacy option ->
Spam Filters, we added a line to the "Legacy anti-spam filter" section
that says "X-Spam-Flag: YES" causing anything between our default
score and 10 to get held for moderation.  You could of course, change
these levels and take different actions if you have a more recent
version of mailman.

Maybe that helps...

----------------------------------------------------------
#procmail recipe for getting rid of high-scoring mail-list spam

:0fw
*
|spamc -f

:0e
{
   EXITCODE=$?
}

:0:
* ^X-Spam-Level:.*\*\*\*\*\*\*\*\*\*\*\*
/dev/null

:0
*
|/home/mailman/mail/mailman post list-blah
-------------------------------------------------------





Cheers,

Noah


John D. Hardin wrote:
 On Tue, 8 Jan 2008, Noah wrote:

>  We want to run spamassassin on mail lists

 If you're managing your mailing lists using Mailman, there are patches
 floating around that will make mailman pass messages through SA and
 hold high-scoring messages for moderation.

 --
  John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
  [EMAIL PROTECTED]    FALaholic #11174     pgpk -a [EMAIL PROTECTED]
  key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
 -----------------------------------------------------------------------
   Liberals love sex ed because it teaches kids to be safe around their
   sex organs. Conservatives love gun education because it teaches kids
   to be safe around guns. However, both believe that the other's
   education goals lead to dangers too terrible to contemplate.
 -----------------------------------------------------------------------
  9 days until Benjamin Franklin's 302nd Birthday



--
Public key #7BBC68D9 at            |                 Shane Williams
http://pgp.mit.edu/                |      System Admin - UT iSchool
=----------------------------------+-------------------------------
All syllogisms contain three lines |              [EMAIL PROTECTED]
Therefore this is not a syllogism  | www.ischool.utexas.edu/~shanew

Reply via email to