I've been getting a lot of spam lately from many domains (too many to blacklist) where the sender name follows this pattern: Name S.
so the name followed by a white space, then by a single letter and finally a point. I was wondering if I could implement this in Spamassassin. With that in mind, here are my questions:
Which part of the header contains the sender name? I'm guessing the
from
header, but then postfix only shows me Email adresses in the logs so I'm a little confused there.Assuming the answer to 1. is yes, is this a correct Spamassassin rule / correct regexp for what I want to achieve:
header NAME_SPACE_LETTER_POINT=~/((?:[a-z][a-z]+))(\s+)([a-z])(\.)/
score NAME_SPACE_LETTER_POINT 5.0
- Is it considered a good practise to mark mails as spam based only on a single rule? (the spam threshold of the server is 5, so the above rule would mark any mail as spam immediately)
Thanks in advance for any suggestions / answers to these questions!