Browse Source

[Rspamd] Deactivate neural but use a more aggressive learning method (no autolearn)

André 7 years ago
parent
commit
59c4cc054e

+ 3 - 7
data/conf/rspamd/local.d/fuzzy_check.conf

@@ -6,7 +6,7 @@ rule "local" {
     # Additional mime types to store/check
     mime_types = ["application/*"];
     # Hash weight threshold for all maps
-    max_score = 20.0;
+    max_score = 100.0;
     # Whether we can learn this storage
     read_only = no;
     # Ignore unknown flags
@@ -17,15 +17,11 @@ rule "local" {
     # Map flags to symbols
     fuzzy_map = {
         LOCAL_FUZZY_DENIED {
-            max_score = 20.0;
-            flag = 11;
-        }
-        LOCAL_FUZZY_PROB {
             max_score = 10.0;
-            flag = 12;
+            flag = 11;
         }
         LOCAL_FUZZY_WHITE {
-            max_score = 2.0;
+            max_score = 5.0;
             flag = 13;
         }
     }

+ 2 - 5
data/conf/rspamd/local.d/fuzzy_group.conf

@@ -3,12 +3,9 @@ symbols = {
         weight = 2.0;
     }
     "LOCAL_FUZZY_DENIED" {
-        weight = 12.0;
-    }
-    "LOCAL_FUZZY_PROB" {
-        weight = 5.0;
+        weight = 10.0;
     }
     "LOCAL_FUZZY_WHITE" {
-        weight = -3.0;
+        weight = -3.4;
     }
 }

+ 1 - 1
data/conf/rspamd/local.d/neural.conf

@@ -8,6 +8,6 @@ train {
 }
 ann_expire = 80d;
 timeout = 20; # Increase redis timeout
-enabled = ${HAS_TORCH}; # Explicitly disable module when torch is disabled
+enabled = false;
 use_settings = false; # If enabled, then settings-id is used to dispatch networks