We receive a lot of spam on our servers from 3rd party servers and often this spam includes the email header such as:
DKIM: validation error: error:0407008A:rsa routines:RSA_padding_check_PKCS1_type_1:invalid padding
This can be caused by many trivial things such as incorrect line feeds but I wanted to query about this as I can't find the correct information:
I believe this is an issue with the sender (them) rather than the receiver (us), therefore:
-
- Is there any way our server can uniformly block or otherwise throttle emails incoming from external sources that fail DKIM? Either failing this specific error or any error?
-
- Is it a good idea to do this (I sadly suspect not?)? How prevelant is competent DKIM currently? My quick research seems to imply it's not at all a safe way of filtering incoming emails, despite this appearing to be a common theme amongst email providers and badly set up amongst recognised spammers.
-
- Could something like SpamAssassin check DKIM mail validity and mark accordingly?