On 05/29/2015 09:28 AM, Stephen J. Turnbull wrote:
> James Nightly writes:
> 
>  > How can I configure mailman on Debian to reject messages with
>  > X-Spam-Score over 8? We are getting bombarded with spam, messages are
>  > tagged by Spamassasin, but for some reason Exim4 still sends these to
>  > Mailman.
> 
> "Evaluating" numbers by regexp is finicky, but there's a SpamAssassin
> setting that makes it provide a header with as many stars as the
> message got spam points.  Then you just filter on r"^X-Spam-Stars:
> \*\*\*\*\*\*\*\*" (where you need to substitute the real header name
> for "X-Spam-Stars", of course).


Right, and while it is still best to do this ahead of Mailman, Mailman's
Privacy options... -> Spam filters -> header_filter_rules is the place
to do it in Mailman. (and that's where chic...@python.org does it bases
on x-spam-status:).

-- 
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to