aboutsummaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-03-26 20:51:25 +0600
committerGitHub <noreply@github.com>2024-03-26 20:51:25 +0600
commit06b3c7350599b99db6ca3f74768b3815aea77078 (patch)
treee5ef5c7af6f78942f468686bb86109162e120ba5 /rules
parent78b78b9ec52b467f2c53dddb40a70d39f91d10d4 (diff)
parent65c8a661989e22dadc08e5f5bdd60889c3b8ffcb (diff)
downloadrspamd-06b3c7350599b99db6ca3f74768b3815aea77078.tar.gz
rspamd-06b3c7350599b99db6ca3f74768b3815aea77078.zip
Merge pull request #4890 from twesterhever/temp-received-localhost
[Minor] Add rule for localhost HELOs in Received headers
Diffstat (limited to 'rules')
-rw-r--r--rules/regexp/headers.lua7
1 files changed, 7 insertions, 0 deletions
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,