[Mailman-Users] Spam filters and non-member posts

Mark Sapiro mark at msapiro.net
Mon Jul 13 01:43:43 CEST 2009


Daniel D Jones wrote:
>
>I'd like all posts from non-members discarded and posts from members to be 
>spam checked and held if they appear to be spam.  Is this possible without 
>hacking the source code?


It is possible by rearranging the global pipeline. This can be done in
mm_cfg.py.

The Default pipeline is in part:

    ...
    'SpamDetect',
    'Approve',
    'Replybot',
    'Moderate',
    'Hold',
    ...

Discarding non-member posts is done by Moderate and processing
header_filter_rules is done by SpamDetect. Approve should be before
Moderate and Hold or it won't be possible to pre-approve posts, so it
seems the best order to do what you want is to move SpamDetect to the
position between Moderate and Hold.

If this is your installation, and you control mm_cfg.py, you can
accomplish this by adding the following two lines to mm_cfg.py

GLOBAL_PIPELINE.remove('SpamDetect')
GLOBAL_PIPELINE.insert(GLOBAL_PIPELINE.index('Hold'), 'SpamDetect')

and restarting Mailman.  If this is a hosted Mailman, you'll have to
convince the host to do it for you which may be difficult as it will
affect all lists in the installation.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan



More information about the Mailman-Users mailing list