Size: 2393
Comment:
|
← Revision 3 as of 2008-07-31 14:04:47 ⇥
Size: 58
Comment: Page renamed to DOC/4.23 How do I use SpamAssassin with Mailman?
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
#pragma page-filename DOC/versions/4292717 == 4.23. How do I use SpamAssassin with Mailman? == There are 3 ways. 1. Integrate it into the MTA, such as described in FAQ entry 6.12 at <[[http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq06.012.htp]]>. 2. Add "GLOBAL_PIPELINE.insert(1, 'SpamAssassin')" to your mm_cfg.py file. See http://www.jamesh.id.au/articles/mailman-spamassassin/. 3. Using procmail to execute spamassassin before handing the message to mailman. (see rest of FAQ entry). From a post to the mailman-users list by Dave Stern <dave@umiacs.umd.edu> on 26 Feb 2003. Editted to use default paths. Editted to use better procmail rules. --([[../Begin Message|Begin Message]])-- Seeing how others have asked about this, I've gotten an older version of mailman (2.0.12) and spamassassin (2.1) working together. Let's say we have two lists, one called mylst, the other mylist2: * add to you aliases file {{{ mylist: "/usr/bin/procmail -m /etc/procmailrc" mylist2: "/usr/bin/procmail -m /etc/procmailrc" }}} Note: procmail will need to be in your smrsh directory. * /etc/procmailrc include things like --([[../Start /etc/procmailrc|Start /etc/procmailrc]])-- {{{ :0f | /usr/bin/spamassassin }}} {{{ :0: * ^X-Spam-Status: Yes /tmp/Likelyspam }}} {{{ :0 * ^TO_mylist@domain.com |/etc/smrsh/wrapper post mylist }}} {{{ :0 * ^TO_mylist2@domain.com |/etc/smrsh/wrapper post mylist2 }}} --([[../End /etc/procmailrc|End /etc/procmailrc]])-- --([[../End Message|End Message]])-- The second method will work with any version of mailman giving the wrapper call is correct. For mailman 2.0 /etc/smrsh/wrapper For mailman 2.1 /etc/smrsh/mailman Under Debian, relplace /etc/smrsh with /var/lib/mailman/mail or possibly /etc/mail/smrsh depending on your sendmail config. Q: What if one does not have command line access to mailman, can one still use spamassassin with mailman? A: Yes but you would probably have to set up a pretty fancy forwarding scheme. Moderated messages getting forwarded to an administrator whose .procmailrc sent them to spamassassin... ''Last changed on Fri Jan 25 00:19:57 2008 by'' jidanni <<Color2(Converted from the Mailman FAQ Wizard, col=darkgreen)>>This is one of many [[../Frequently Asked Questions|Frequently Asked Questions]]. |
#REDIRECT DOC/4.23 How do I use SpamAssassin with Mailman? |
Differences between revisions 1 and 3 (spanning 2 versions)
MailmanWiki: DOC/How do I use SpamAssassin with Mailman? (last edited 2008-07-31 14:04:47 by dunxd)