Browse Source

[Rspamd] Re-add bad subject maps (_not_ related to previous mem leaks)

andryyy 4 years ago
parent
commit
bb2351ccf8

+ 1 - 0
data/conf/rspamd/local.d/metadata_exporter.conf

@@ -51,6 +51,7 @@ return function(task)
     and not task:has_symbol('GLOBAL_MIME_FROM_BL')
     and not task:has_symbol('GLOBAL_MIME_FROM_BL')
     and not task:has_symbol('LOCAL_BL_ASN')
     and not task:has_symbol('LOCAL_BL_ASN')
     and not task:has_symbol('GLOBAL_RCPT_BL')
     and not task:has_symbol('GLOBAL_RCPT_BL')
+    and not task:has_symbol('BAD_SUBJECT_00')
     and not task:has_symbol('MAILCOW_BLACK') then
     and not task:has_symbol('MAILCOW_BLACK') then
       local action = task:get_metric_action('default')
       local action = task:get_metric_action('default')
       if action == 'reject' or action == 'add header' or action == 'rewrite subject' then
       if action == 'reject' or action == 'add header' or action == 'rewrite subject' then

+ 8 - 0
data/conf/rspamd/local.d/multimap.conf

@@ -171,3 +171,11 @@ SMTP_LIMITED_ACCESS {
   symbols_set = ["SMTP_LIMITED_ACCESS"];
   symbols_set = ["SMTP_LIMITED_ACCESS"];
 }
 }
 
 
+BAD_SUBJECT_00 {
+  type = "header";
+  header = "subject";
+  regexp = true;
+  map = "http://nullnull.org/bad-subject-regex.txt";
+  score = 6.0;
+  symbols_set = ["BAD_SUBJECT_00"];
+}