I’m trying to block email addresses from a particular domain - from which we seem to receive multiple spam user accounts per hour sigining up.
They come from .jil.kr where can be one of some 20 or so names I’ve seen so far.
I tried adding jil.kr but that doesn’t match, so then tried *.jil.kr instead but that gives an error in the log that the regex is invalid as there’s no subject for the * character, so I then tried (.*).jil.kr and that doesn’t match either - I think because the . character in the brackets is being escaped.
It must be considering everything after the @ to be the domain as opposed to “ends with”
Depending on how many variations are possible you’ll be playing whack-a-mole without some form of regex here.
How about in addition to an exact match, if the end matches and the email address has a period immediately preceding the specified domain, that’s also a match.