commit 182e382: [Minor] Add max scores for some groups

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Mar 23 20:21:09 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-03-23 20:18:52 +0000
URL: https://github.com/rspamd/rspamd/commit/182e382558783e2eddd7980852b03e0d7b32a65f (HEAD -> master)

[Minor] Add max scores for some groups

---
 conf/scores.d/headers_group.conf    | 1 +
 conf/scores.d/mime_types_group.conf | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/conf/scores.d/headers_group.conf b/conf/scores.d/headers_group.conf
index 83048ea28..56a8f7f3d 100644
--- a/conf/scores.d/headers_group.conf
+++ b/conf/scores.d/headers_group.conf
@@ -16,6 +16,7 @@
 # See https://rspamd.com/doc/tutorials/writing_rules.html for details
 
 description = "Various headers checks";
+max_score = 8.0;
 
 symbols = {
     "FORGED_SENDER" {
diff --git a/conf/scores.d/mime_types_group.conf b/conf/scores.d/mime_types_group.conf
index 4e95f6835..2453ba6f7 100644
--- a/conf/scores.d/mime_types_group.conf
+++ b/conf/scores.d/mime_types_group.conf
@@ -16,6 +16,9 @@
 # See https://rspamd.com/doc/tutorials/writing_rules.html for details
 
 description = "Mime attachments rules";
+# Define some limit for this group
+max_score = 10.0;
+
 
 symbols = {
     "MIME_GOOD" {


More information about the Commits mailing list