Thanks Milos,

However I've read that mailman uses python regexes to work so I'm still not
sure, taking into account that the instructions on the very mailman config
page difer a bit.

Oh, and I forgot to mention that <
https://wikitech.wikimedia.org/wiki/Mailman#Spam_scores> is the advice I
followed on 1)

Regards, M.

2017-06-07 22:18 GMT+02:00 Milos Rancic <[email protected]>:

> 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.
>
> 2) Mail servers should be able to recognize banned domains with just
> "@banneddomain.com" or even "banneddomain.com".
>
> However, if you really have to write the regular expression, then it
> should be like this: ".*\@banneddomain\.com"
>
> Note here that you should escape both @ and dot. It would likely work
> without them, but it could break.
>
>
> On Wed, Jun 7, 2017 at 10:07 PM, MarcoAurelio <[email protected]> wrote:
> > Dear colleagues,
> >
> > I am writting to you all because I have doubts as to how to correctly
> > configure some variables on some mailing lists I administer.
> >
> > 1) Spam
> >
> > As noted on <> I added "X-Spam-Score:[^+]*[+]{4,}" at
> > VARHELP=privacy/spam/header_filter_rules. Is that correct? I note that
> the
> > header format is like "X-Spam-Score: 6.7 (++++++)" with numbers and curve
> > brackets. Is that regex correct to match this?
> >
> > 2) Regex for filtering senders
> >
> > We've got some email addresses from the same domain banned in
> > VARHELP=privacy/sender/discard_these_nonmembers. To avoid the list to
> grow,
> > I was thinking on using "^.*@banneddomain.com" but I'm not sure if
> that'd
> > work. Could you please advice me here?
> >
> > Thanks for your help.
> >
> > Best regards, M.
> >
> > _______________________________________________
> > Listadmins mailing list
> > [email protected]
> > https://lists.wikimedia.org/mailman/listinfo/listadmins
> >
>
> _______________________________________________
> Listadmins mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/listadmins
>
_______________________________________________
Listadmins mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/listadmins

Reply via email to