commit 65c8a66: [Minor] Add rule for localhost HELOs in Received headers

twesterhever 40121680+twesterhever at users.noreply.github.com
Mon Jul 29 17:54:49 UTC 2024


Author: twesterhever
Date: 2024-03-24 17:48:53 +0000
URL: https://github.com/rspamd/rspamd/commit/65c8a661989e22dadc08e5f5bdd60889c3b8ffcb (refs/pull/4890/head)

[Minor] Add rule for localhost HELOs in Received headers

---
 rules/regexp/headers.lua | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index 5f6a49437..6f163bcd1 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -800,6 +800,13 @@ reconf['INVALID_POSTFIX_RECEIVED'] = {
   group = 'headers'
 }
 
+reconf['RECEIVED_HELO_LOCALHOST'] = {
+  re = 'Received=/from (localhost|\\[127\\.0\\.0\\.1\\])\\s+/X',
+  score = 0.0,
+  description = 'Localhost HELO seen in Received header',
+  group = 'headers'
+}
+
 reconf['X_PHP_FORGED_0X'] = {
   re = "X-PHP-Originating-Script=/^0\\d/X",
   score = 4.0,


More information about the Commits mailing list