aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-23 14:36:25 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-23 14:36:25 +0000
commit846687c186265c1cd422370ac2b2228e62f015d2 (patch)
tree6d35fc7ebbca752968dca10d8289a0144bac7268
parent4f964ef5a1bb68b91e6afa1a78a718be5f975923 (diff)
downloadrspamd-846687c186265c1cd422370ac2b2228e62f015d2.tar.gz
rspamd-846687c186265c1cd422370ac2b2228e62f015d2.zip
Add symbols for mime_types to the default config
-rw-r--r--conf/metrics.conf22
-rw-r--r--conf/modules.d/mime_types.conf4
2 files changed, 26 insertions, 0 deletions
diff --git a/conf/metrics.conf b/conf/metrics.conf
index aae3ebfb1..4b3d4b103 100644
--- a/conf/metrics.conf
+++ b/conf/metrics.conf
@@ -1201,4 +1201,26 @@ metric {
description = "DMARC failed";
}
}
+ group {
+ name = "mime_types";
+
+ symbol {
+ weight = -0.1;
+ name = "MIME_GOOD";
+ description = "Known content-type";
+ one_shot = true;
+ }
+ symbol {
+ weight = 1.0;
+ name = "MIME_BAD";
+ description = "Known bad content-type";
+ one_shot = true;
+ }
+ symbol {
+ weight = 0.1;
+ name = "MIME_UNKNOWN";
+ description = "Missing or unknown content-type";
+ one_shot = true;
+ }
+ }
}
diff --git a/conf/modules.d/mime_types.conf b/conf/modules.d/mime_types.conf
new file mode 100644
index 000000000..6b8ec36a5
--- /dev/null
+++ b/conf/modules.d/mime_types.conf
@@ -0,0 +1,4 @@
+mime_types {
+ .include(try=true,priority=1) "${DBDIR}/dynamic/mime_types.conf"
+ file = "${ETCDIR}/mime_types.inc";
+}