From: twesterhever <40121680+twesterhever@users.noreply.github.com> Date: Sun, 24 Mar 2024 17:48:53 +0000 (+0000) Subject: [Minor] Add rule for localhost HELOs in Received headers X-Git-Tag: 3.9.0~82^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4890%2Fhead;p=thirdparty%2Frspamd.git [Minor] Add rule for localhost HELOs in Received headers --- diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua index 5f6a49437e..6f163bcd13 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,