From 9fb5afd475d564bea97d08a092be61ce77bba8b5 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 28 Oct 2022 15:31:02 +0100 Subject: [PATCH] [Rules] Do not insert ONCE_RECEIVED_STRICT on RDNS missing Suggested by: @moisseev --- src/plugins/lua/once_received.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/lua/once_received.lua b/src/plugins/lua/once_received.lua index aa17315ef..def82ebb8 100644 --- a/src/plugins/lua/once_received.lua +++ b/src/plugins/lua/once_received.lua @@ -56,7 +56,10 @@ local function check_quantity_received (task) if not results then if nreceived <= 1 then task:insert_result(symbol, 1) - task:insert_result(symbol_strict, 1) + -- Avoid strict symbol inserting as the remaining symbols have already + -- quote a significant weight, so a message could be rejected by just + -- this property. + --task:insert_result(symbol_strict, 1) -- Check for MUAs local ua = task:get_header('User-Agent') local xm = task:get_header('X-Mailer') -- 2.39.5