[Mailman-Users] spamassassin + mailman

Jonas Meurer jonas at freesources.org
Sat Mar 8 20:06:48 CET 2003


Hello,
I have installed mailman from debian/testing (2.0.13-2) and spamassassin.
Now I got this SpamAssassin.py, copied it to
/usr/lib/mailman/Mailman/Handlers, and added this to
Mailman/Handlers/HandlersAPI.py:
  LIST_PIPELINE = ['SpamDetect',
->+                'SpamAssassin',
                   'Approve',

Then I added this to mm_cfg.py:
SPAMASSASSIN_HOST = 'localhost:783'
SPAMASSASSIN_DISCARD_SCORE = 10
SPAMASSASSIN_HOLD_SCORE = 5

but now /var/log/mailman/errors reports:
Mar 08 20:06:04 2003 qrunner(12891):   File
"/var/lib/mailman/Mailman/Handlers/HandlerAPI.py", line 79, in
do_pipeline
Mar 08 20:06:04 2003 qrunner(12891):      mod =
__import__('Mailman.Handlers.' + modname)
Mar 08 20:06:04 2003 qrunner(12891):   File
"/var/lib/mailman/Mailman/Handlers/SpamAssassin.py", line 68, in ?
Mar 08 20:06:04 2003 qrunner(12891):      class
SpamAssassinDiscard(Errors.DiscardMessage):
Mar 08 20:06:04 2003 qrunner(12891): AttributeError :  'Mailman.Errors'
module has no attribute 'DiscardMessage'

do you know how to fix that?

bye
 mejo

-- 
Efficiency and progess is ours one more
Now that we have the Neutron bomb
It's nice and quick and clean and gets things done
Kill kill kill kill kill the poor tonight



More information about the Mailman-Users mailing list