commit 9fb5afd: [Rules] Do not insert ONCE_RECEIVED_STRICT on RDNS missing
Vsevolod Stakhov
vsevolod at rspamd.com
Fri Oct 28 14:35:03 UTC 2022
Author: Vsevolod Stakhov
Date: 2022-10-28 15:31:02 +0100
URL: https://github.com/rspamd/rspamd/commit/9fb5afd475d564bea97d08a092be61ce77bba8b5 (HEAD -> master)
[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')
More information about the Commits
mailing list