]> source.dussan.org Git - rspamd.git/commitdiff
[Rules] Do not insert ONCE_RECEIVED_STRICT on RDNS missing
authorVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 28 Oct 2022 14:31:02 +0000 (15:31 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 28 Oct 2022 14:31:02 +0000 (15:31 +0100)
Suggested by: @moisseev

src/plugins/lua/once_received.lua

index aa17315ef87de476804c537b14ad729146eae671..def82ebb8dc8e53b276f1c2651e8bbdbc3e5ccd9 100644 (file)
@@ -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')