Re: [Mailman-Users] X-Spam-Score: 22.4 and still sent out to the list...
On Fri, May 29, 2015 at 07:02:38AM -0700, James Nightly wrote: 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. Drop/Discard/Reject mails at SMTP time, before they hit Mailman? -- The power of accurate observation is often called cynicism by those who do not have it. -- George Bernard Shaw -- 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
Re: [Mailman-Users] X-Spam-Score: 22.4 and still sent out to the list...
On Fri, May 29, 2015 at 10:12 AM, Adam McGreggor adam-mail...@amyl.org.uk wrote: Drop/Discard/Reject mails at SMTP time, before they hit Mailman? Right, but it seems like James is saying Exim4 isn't doing that. I poked around the MM config for the chic...@python.org mailing list, but for the life of me couldn't find the setting where it holds messages with X-Spam-Score with spam or unsure values. (We use SpamBayes on mail.python.org.) I know it's there somewhere, but I can never find such nuggets. Mail.python.org has a very mature Postfix setup. It's all magic to me (well, except for the SpamBayes part), but I think publishing a small document about the configuration might be worthwhile. Skip Montanaro -- 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
Re: [Mailman-Users] X-Spam-Score: 22.4 and still sent out to the list...
On Fri, May 29, 2015 at 05:28:05PM +0100, Adam McGreggor wrote: I have a couple of ACLS (for check_message): the 'magic' I use is condition = ${if {$spam_score_int}{60}{1}{0}} http://www.exim.org/exim-html-current/doc/html/spec_html/ch-content_scanning_at_acl_time.html is still the place I go to, if needed… -- If we let people see that kind of thing, there would never again be any war. (US spokesman, on news film of Iraqi soldiers killed by helicopter gunfire) -- 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
Re: [Mailman-Users] X-Spam-Score: 22.4 and still sent out to the list...
On Fri, May 29, 2015 at 10:43:20AM -0500, Skip Montanaro wrote: On Fri, May 29, 2015 at 10:12 AM, Adam McGreggor adam-mail...@amyl.org.uk wrote: Drop/Discard/Reject mails at SMTP time, before they hit Mailman? Right, but it seems like James is saying Exim4 isn't doing that. If the mails are being scored (which was mentioned), then I would be inclined to deal with those before they're accepted -- let alone before they get to Exim's handling (routing) for Mailman. I poked around the MM config for the chic...@python.org mailing list, but for the life of me couldn't find the setting where it holds messages with X-Spam-Score with spam or unsure values. (We use SpamBayes on mail.python.org.) I know it's there somewhere, but I can never find such nuggets. I have a couple of ACLS (for check_message): the 'magic' I use is condition = ${if {$spam_score_int}{60}{1}{0}} (A SpamAssassin score 6) For drop/discard/reject, maybe see https://lists.exim.org/lurker/message/20090116.101052.18c04deb.en.html In my view (but your mailsystem, your rules), high scored Spam shouldn't be accepted; so score it, and deal with it at SMTP time; deal with the others once accepted. -- War is Peace Freedom is Slavery Ignorance is Strength 1984 -- 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
Re: [Mailman-Users] X-Spam-Score: 22.4 and still sent out to the list...
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.netThe highway is for gamblers, San Francisco Bay Area, Californiabetter 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