瀏覽代碼

[Rspamd] Do not quarantine blacklisted entities

andryyy 5 年之前
父節點
當前提交
85b8b74a4c
共有 1 個文件被更改,包括 7 次插入3 次删除
  1. 7 3
      data/conf/rspamd/local.d/metadata_exporter.conf

+ 7 - 3
data/conf/rspamd/local.d/metadata_exporter.conf

@@ -47,9 +47,13 @@ end
 EOD;
   reject_no_global_bl = <<EOD
 return function(task)
-  if not task:has_symbol('GLOBAL_SMTP_FROM_BL') and not task:has_symbol('GLOBAL_MIME_FROM_BL') then
-    local action = task:get_metric_action('default')
-    return (action == 'reject')
+  if not task:has_symbol('GLOBAL_SMTP_FROM_BL')
+    and not task:has_symbol('GLOBAL_MIME_FROM_BL')
+    and not task:has_symbol('LOCAL_BL_ASN')
+    and not task:has_symbol('GLOBAL_RCPT_BL')
+    and not task:has_symbol('MAILCOW_BLACK') then
+      local action = task:get_metric_action('default')
+      return (action == 'reject')
   end
   return false
 end