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 quaratine if symbol is GLOBAL_X_BL
0cfa056f
data/conf/rspamd/local.d/metadata_exporter.conf | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
Diff
diff --git a/data/conf/rspamd/local.d/metadata_exporter.conf b/data/conf/rspamd/local.d/metadata_exporter.conf
index eaf9a5b2..dcd0c011 100644
--- a/data/conf/rspamd/local.d/metadata_exporter.conf
+++ b/data/conf/rspamd/local.d/metadata_exporter.conf
@@ -2,7 +2,7 @@ rules {
QUARANTINE {
backend = "http";
url = "http://nginx:9081/pipe.php";
- selector = "is_reject";
+ selector = "reject_no_global_bl";
formatter = "default";
meta_headers = true;
}
@@ -22,5 +22,14 @@ return function(task)
end
return false
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')
+ end
+ return false
+end
EOD;
}