public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Commit
[Rspamd] Do not quarantine blacklisted entities
85b8b74a
data/conf/rspamd/local.d/metadata_exporter.conf | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
Diff
diff --git a/data/conf/rspamd/local.d/metadata_exporter.conf b/data/conf/rspamd/local.d/metadata_exporter.conf
index 32a1b514..877fd341 100644
--- a/data/conf/rspamd/local.d/metadata_exporter.conf
+++ b/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