aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-10-28 15:31:02 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-10-28 15:31:02 +0100
commit9fb5afd475d564bea97d08a092be61ce77bba8b5 (patch)
tree7a3bec4e7c78f861fb39da7f6c875feafd4782b2 /src/plugins
parent0cad33873c08a0f680140296c6eb5d742ef7f118 (diff)
downloadrspamd-9fb5afd475d564bea97d08a092be61ce77bba8b5.tar.gz
rspamd-9fb5afd475d564bea97d08a092be61ce77bba8b5.zip
[Rules] Do not insert ONCE_RECEIVED_STRICT on RDNS missing
Suggested by: @moisseev
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/once_received.lua5
1 files changed, 4 insertions, 1 deletions
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')