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 strigiwm@gmail.com 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.
- 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?
- 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 Listadmins@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/listadmins