[Rspamd] Do not quarantine blacklisted entities
This commit is contained in:
parent
c7e17c7fd1
commit
85b8b74a4c
@ -47,9 +47,13 @@ end
|
|||||||
EOD;
|
EOD;
|
||||||
reject_no_global_bl = <<EOD
|
reject_no_global_bl = <<EOD
|
||||||
return function(task)
|
return function(task)
|
||||||
if not task:has_symbol('GLOBAL_SMTP_FROM_BL') and not task:has_symbol('GLOBAL_MIME_FROM_BL') then
|
if not task:has_symbol('GLOBAL_SMTP_FROM_BL')
|
||||||
local action = task:get_metric_action('default')
|
and not task:has_symbol('GLOBAL_MIME_FROM_BL')
|
||||||
return (action == 'reject')
|
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
|
end
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user