]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Rein in excess QP/base64 symbols 905/head
authorAndrew Lewis <nerf@judo.za.org>
Mon, 29 Aug 2016 10:21:35 +0000 (12:21 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Mon, 29 Aug 2016 10:21:35 +0000 (12:21 +0200)
conf/metrics.conf

index 8a4eef978a32d17ae1ecf78e0c64237d956550df..9441310804facc8fd2a82a8e7b3f920955399c96 100644 (file)
@@ -26,6 +26,44 @@ metric {
       greylist = 4;
     }
 
+    group "excessqp" {
+        max_score = 2.4;
+        symbol "FROM_EXCESS_QP" {
+            weight = 1.2;
+            description = "From that contains encoded characters while quoted-printable is not needed as all symbols are 7bit";
+        }
+        symbol "TO_EXCESS_QP" {
+            weight = 1.2;
+            description = "To that contains encoded characters while quoted-printable is not needed as all symbols are 7bit";
+        }
+        symbol "REPLYTO_EXCESS_QP" {
+            weight = 1.2;
+            description = "Reply-To that contains encoded characters while quoted-printable is not needed as all symbols are 7bit";
+        }
+        symbol "CC_EXCESS_QP" {
+            weight = 1.2;
+            description = "Cc that contains encoded characters while quoted-printable is not needed as all symbols are 7bit";
+        }
+    }
+    group "excessb64" {
+        max_score = 3.0;
+        symbol "FROM_EXCESS_BASE64" {
+            weight = 1.5;
+            description = "From that contains encoded characters while base 64 is not needed as all symbols are 7bit";
+        }
+        symbol "TO_EXCESS_BASE64" {
+            weight = 1.5;
+            description = "To that contains encoded characters while base 64 is not needed as all symbols are 7bit";
+        }
+        symbol "REPLYTO_EXCESS_BASE64" {
+            weight = 1.5;
+            description = "Reply-To that contains encoded characters while base 64 is not needed as all symbols are 7bit";
+        }
+        symbol "CC_EXCESS_BASE64" {
+            weight = 1.5;
+            description = "Cc that contains encoded characters while base 64 is not needed as all symbols are 7bit";
+        }
+    }
     group "header" {
         symbol "MISSING_SUBJECT" {
             weight = 2.0;
@@ -87,38 +125,6 @@ metric {
             weight = 2.0;
             description = "To header is missing";
         }
-        symbol "FROM_EXCESS_BASE64" {
-            weight = 1.5;
-            description = "From that contains encoded characters while base 64 is not needed as all symbols are 7bit";
-        }
-        symbol "FROM_EXCESS_QP" {
-            weight = 1.2;
-            description = "From that contains encoded characters while quoted-printable is not needed as all symbols are 7bit";
-        }
-        symbol "TO_EXCESS_BASE64" {
-            weight = 1.5;
-            description = "To that contains encoded characters while base 64 is not needed as all symbols are 7bit";
-        }
-        symbol "TO_EXCESS_QP" {
-            weight = 1.2;
-            description = "To that contains encoded characters while quoted-printable is not needed as all symbols are 7bit";
-        }
-        symbol "REPLYTO_EXCESS_BASE64" {
-            weight = 1.5;
-            description = "Reply-To that contains encoded characters while base 64 is not needed as all symbols are 7bit";
-        }
-        symbol "REPLYTO_EXCESS_QP" {
-            weight = 1.2;
-            description = "Reply-To that contains encoded characters while quoted-printable is not needed as all symbols are 7bit";
-        }
-        symbol "CC_EXCESS_BASE64" {
-            weight = 1.5;
-            description = "Cc that contains encoded characters while base 64 is not needed as all symbols are 7bit";
-        }
-        symbol "CC_EXCESS_QP" {
-            weight = 1.2;
-            description = "Cc that contains encoded characters while quoted-printable is not needed as all symbols are 7bit";
-        }
         symbol "R_MIXED_CHARSET" {
             weight = 5.0;
             description = "Mixed characters in a message";