[List admins] Re: Spam prevention

2023-04-24 Thread Bryan Davis
On Mon, Apr 24, 2023 at 11:49 AM MusikAnimal  wrote:
>
> Hello! I am an admin of the 
> https://lists.wikimedia.org/postorius/lists/wikipedia-en-editfilters.lists.wikimedia.org/
>  mailing list. Starting some months ago, we get spam more or less on a daily 
> basis. We have all messages automatically held for approval, so our readers 
> aren't seeing the spam, rather myself and the other admin are burdened with 
> logging in and rejecting the emails every day.
>
> Is there any advice on how to prevent this from happening?

The use of the x-spam-score header is not described in your current
attempts to keep spam from the list, so
<https://meta.wikimedia.org/wiki/Mailing_lists/Administration#Spam_filters>
may be worth looking at.

Bryan
-- 
Bryan Davis  Technical Engagement  Wikimedia Foundation
Principal Software Engineer   Boise, ID USA
[[m:User:BDavis_(WMF)]]  irc: bd808
___
Listadmins mailing list -- listadmins@lists.wikimedia.org
To unsubscribe send an email to listadmins-le...@lists.wikimedia.org

To request technical changes for a specific list, please instead create a task 
in Phabricator. See https://meta.wikimedia.org/wiki/Mailing_lists

Re: [List admins] Help with spam configuration and regex filtering

2017-06-07 Thread Bryan Davis
On Wed, Jun 7, 2017 at 2:18 PM, Milos Rancic <mill...@gmail.com> wrote:
> 1) I would write the regex this way: 
> "^X\-Spam\-Score:\s*[0-9]+\.[0-9]+\(\+*\)"
>
> Note that "^" is here because SMTP protocol requires the filed to
> start at the beginning of the line. We can't be sure what's at the end
> of the line.

This regex matches zero to inifinty '+' characters in the X-Spam-Score
header. The original regex of "X-Spam-Score:[^+]*[+]{4,}" only matches
when four or more '+' characters occur in series in the header. I know
that regex works with mailman because I use it on the labs-l and
labs-announce lists. Updating it with a start of line anchor would be
fine too: "^X-Spam-Score:[^+]*[+]{4,}"

For anyone who doesn't read regex fluently (and honestly why should
you), this pattern says:
* "^" : match only at the start of a new line
* "X-Spam-Score:" : match this literal string
* "[^+]*" : match zero to infinity characters that are not '+'
* "[+]{4,}" : match four to infinity '+' characters in series


Bryan
-- 
Bryan Davis  Wikimedia Foundation<bd...@wikimedia.org>
[[m:User:BDavis_(WMF)]] Manager, Cloud Services  Boise, ID USA
irc: bd808v:415.839.6885 x6855

___
Listadmins mailing list
Listadmins@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/listadmins