2
0
Эх сурвалжийг харах

[ClamAV] Remove deprecated AllowSupplementaryGroups

André 7 жил өмнө
parent
commit
777e469958

+ 0 - 1
data/conf/clamav/clamd.conf

@@ -15,7 +15,6 @@ MaxQueue 80
 IdleTimeout 20
 SelfCheck 3600
 User clamav
-AllowSupplementaryGroups yes
 Foreground yes
 DetectPUA yes
 # See https://github.com/vrtadmin/clamav-faq/blob/master/faq/faq-pua.md

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

@@ -1,5 +1,5 @@
 clamav {
-  attachments_only = false;
+  attachments_only = true;
   symbol = "CLAM_VIRUS";
   type = "clamav";
   log_clean = true;

+ 4 - 15
data/conf/rspamd/local.d/metrics.conf

@@ -3,20 +3,12 @@ actions {
 	add_header = 5;
 	greylist = 4;
 }
+
 symbol "MAILCOW_AUTH" {
 	description = "mailcow authenticated";
 	score = -20.0;
 }
-group "statistics" {
-	symbol "BAYES_SPAM" {
-		weight = 7.5;
-		description = "Message probably spam, probability: ";
-	}
-	symbol "BAYES_HAM" {
-		weight = -2.5;
-		description = "Message probably ham, probability: ";
-	}
-}
+
 group "MX" {
 	symbol "MX_INVALID" {
 	  score = 0.5;
@@ -34,15 +26,12 @@ group "MX" {
 	  one_shot = "true";
 	}
 }
+
 symbol "SPOOFED_SENDER" {
 	description = "Sender is not authenticated but part of mailcow managed domains";
 	score = 1.0;
 }
-group "policies" {
-  symbol "R_SPF_FAIL" {
-    score = 4.0;
-  }
-}
+
 symbol "CTYPE_MIXED_BOGUS" {
   score = 0.0;
 }

+ 4 - 1
data/conf/rspamd/local.d/policies_group.conf

@@ -1,5 +1,8 @@
 symbols = {
     "ARC_REJECT" {
-        weight = 0.0;
+        score = 0.0;
+    }
+    "R_SPF_FAIL" {
+        score = 4.0;
     }
 }

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

@@ -0,0 +1,10 @@
+symbols = {
+    "BAYES_SPAM" {
+        weight = 7.5;
+        description = "Message probably spam, probability: ";
+    }
+    "BAYES_HAM" {
+        weight = -2.5;
+        description = "Message probably ham, probability: ";
+    }
+}

+ 1 - 0
data/conf/rspamd/override.d/logging.inc

@@ -2,3 +2,4 @@ type = "console";
 systemd = false;
 .include "$CONFDIR/logging.inc"
 .include(try=true; priority=20) "$CONFDIR/override.d/logging.custom.inc"
+debug_modules = ["antivirus"];