From 208ef50997462a0f3b7c21d2f8bc96bf0b1f2a01 Mon Sep 17 00:00:00 2001 From: Steve Freegard Date: Mon, 19 Mar 2018 11:56:20 +0000 Subject: [PATCH] Add XM_CASE rule --- rules/headers_checks.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rules/headers_checks.lua b/rules/headers_checks.lua index 0a7a3c16e..a97d7483f 100644 --- a/rules/headers_checks.lua +++ b/rules/headers_checks.lua @@ -1033,3 +1033,13 @@ rspamd_config.INVALID_RCPT_8BIT = { score = 6.0, group = 'headers' } + +rspamd_config.XM_CASE = { + callback = function (task) + local xm = task:get_header('X-mailer', true) + if (xm) then return true end + end, + description = 'X-mailer .vs. X-Mailer', + score = 0.5, + group = 'headers', +} -- 2.39.5