[Rspamd] Do not quarantine blacklisted entities

master
andryyy 2020-10-23 20:23:26 +02:00
parent c7e17c7fd1
commit 85b8b74a4c
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 7 additions and 3 deletions

View File

@ -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