]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add rule for localhost HELOs in Received headers 4890/head
authortwesterhever <40121680+twesterhever@users.noreply.github.com>
Sun, 24 Mar 2024 17:48:53 +0000 (17:48 +0000)
committertwesterhever <40121680+twesterhever@users.noreply.github.com>
Sun, 24 Mar 2024 17:48:53 +0000 (17:48 +0000)
rules/regexp/headers.lua

index 5f6a49437ed12f1ca65b1f1d4231656984d3c10e..6f163bcd139014f4ad0e3dbb41bc10f084a1b8ce 100644 (file)
@@ -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,