mailman and spamassassin

blissend

Member
May 16, 2008
6
0
51
I've created a few small lists with mailman and I'd like to have spamassassin check the emails but currently even though its enabled it does not for anything but email accounts. How can I get it to do so?

I found this link here but its old and I'm not sure if it'll work with a cpanel setup. Has anyone tried it?

If that doesn't work I'm wondering about something stupid here... is it possible to create an email account of the same name as the list just to get spamassassin working? Getting desperate I suppose.

Are there any other options? I know of ASSP but that seems a bit much for some really small lists.
 

blissend

Member
May 16, 2008
6
0
51
Success! I now have cpanel's mailman and spamassassin working together with said fix in links above (attached fix for the lazy).

How I did it...
  1. Upload scripts to /usr/local/cpanel/3rdparty/mailman/Mailman/Handlers
  2. Edit /usr/local/cpanel/3rdparty/mailman/Mailman/mm_cfg.py to add this line... GLOBAL_PIPELINE.insert(1, 'SpamAssassin')
  3. Restart mailman... /usr/local/cpanel/3rdparty/mailman/bin/mailmanctl restart

There on out you can configure as you like but don't use cpanel's spamassassin configure page. Read the above links to figure out how to configure the mm_cfg.py appropriately or edit the variable's value in SpamAssassin.py
 

Attachments

paulkoan

Well-Known Member
Nov 24, 2006
80
0
156
Right...

Is there an alternative that doesn't require this level of admin overhead? Perhaps by using a forwarder:

user -> forwarding address -> mailman address

Or does spam checking not happen until the mail is written?
 

blissend

Member
May 16, 2008
6
0
51
Right...

Is there an alternative that doesn't require this level of admin overhead? Perhaps by using a forwarder:

user -> forwarding address -> mailman address

Or does spam checking not happen until the mail is written?
Sounds like it would be tricky to setup something like that. I'm not sure how it would handle the replies going back and forth as it has to go to the right address each time. It would also probably skip spamassassin check unless it was an email account.
 
Last edited: