diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-10-28 15:31:02 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-10-28 15:31:02 +0100 |
commit | 9fb5afd475d564bea97d08a092be61ce77bba8b5 (patch) | |
tree | 7a3bec4e7c78f861fb39da7f6c875feafd4782b2 /src/plugins | |
parent | 0cad33873c08a0f680140296c6eb5d742ef7f118 (diff) | |
download | rspamd-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.lua | 5 |
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') |