Quellcode durchsuchen

[Rspamd] Add reputation plugin, remove deprecated plugins

andryyy vor 4 Jahren
Ursprung
Commit
1b2731d6e6
2 geänderte Dateien mit 27 neuen und 0 gelöschten Zeilen
  1. 17 0
      data/conf/rspamd/local.d/groups.conf
  2. 10 0
      data/conf/rspamd/local.d/reputation.conf

+ 17 - 0
data/conf/rspamd/local.d/groups.conf

@@ -31,3 +31,20 @@ group "MX" {
     one_shot = true;
   }
 }
+
+group "reputation" {
+  symbols = {
+    "IP_REPUTATION_HAM" {
+      weight = 1.0;
+    }
+    "IP_REPUTATION_SPAM" {
+      weight = 4.0;
+    }
+    "SENDER_REP_HAM" {
+      weight = 1.0;
+    }
+    "SENDER_REP_SPAM" {
+      weight = 2.0;
+    }
+  }
+}

+ 10 - 0
data/conf/rspamd/local.d/reputation.conf

@@ -0,0 +1,10 @@
+rules {
+  ip_reputation = {
+    selector "ip" {
+    }
+    backend "redis" {
+      servers = "redis";
+    }
+    symbol = "IP_REPUTATION";
+  }
+}