Bläddra i källkod

[Rspamd] Add 00 abuse domains (wip!)

andryyy 4 år sedan
förälder
incheckning
56a085b632

+ 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('LOCAL_BL_ASN')
     and not task:has_symbol('GLOBAL_RCPT_BL')
+    and not task:has_symbol('ABUSE_NULLNULL')
     and not task:has_symbol('MAILCOW_BLACK') then
       local action = task:get_metric_action('default')
       if action == 'reject' or action == 'add header' or action == 'rewrite subject' then

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

@@ -143,7 +143,7 @@ BAD_LANG {
   score = 5.0;
 }
 
-BAZAR_ABUSE_CH {
+BAZAAR_ABUSE_CH {
   type = "selector";
   selector = "attachments(hex,md5)";
   map = "https://bazaar.abuse.ch/export/txt/md5/recent/";
@@ -162,3 +162,10 @@ SMTP_LIMITED_ACCESS {
   map = "redis://SMTP_LIMITED_ACCESS";
   symbols_set = ["SMTP_LIMITED_ACCESS"];
 }
+
+ABUSE_NULLNULL {
+  type = "selector";
+  selector = "urls:get_host.lower";
+  map = "http://dns.mailcow.email/bad-domains.txt";
+  score = 20.0;
+}

+ 1 - 1
docker-compose.yml

@@ -71,7 +71,7 @@ services:
             - clamd
 
     rspamd-mailcow:
-      image: mailcow/rspamd:1.76
+      image: mailcow/rspamd:1.77
       stop_grace_period: 30s
       depends_on:
         - dovecot-mailcow