aboutsummaryrefslogtreecommitdiffstats
path: root/conf/modules.d
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2017-02-28 17:02:02 +0200
committerAndrew Lewis <nerf@judo.za.org>2017-02-28 17:02:02 +0200
commitb355b984bc914c0a529f2a2d5f1942ebe13d5999 (patch)
treeaf23feb66cfa49b1d345b3bd0b5a833e846a02fa /conf/modules.d
parentd3b505a18272ab490df753ec160b9f8cb6140166 (diff)
downloadrspamd-b355b984bc914c0a529f2a2d5f1942ebe13d5999.tar.gz
rspamd-b355b984bc914c0a529f2a2d5f1942ebe13d5999.zip
[Minor] Add default configs for several modules
Diffstat (limited to 'conf/modules.d')
-rw-r--r--conf/modules.d/force_actions.conf23
-rw-r--r--conf/modules.d/metadata_exporter.conf25
-rw-r--r--conf/modules.d/metric_exporter.conf23
-rw-r--r--conf/modules.d/rmilter_headers.conf25
-rw-r--r--conf/modules.d/url_reputation.conf48
-rw-r--r--conf/modules.d/url_tags.conf29
6 files changed, 173 insertions, 0 deletions
diff --git a/conf/modules.d/force_actions.conf b/conf/modules.d/force_actions.conf
new file mode 100644
index 000000000..bdb10f51c
--- /dev/null
+++ b/conf/modules.d/force_actions.conf
@@ -0,0 +1,23 @@
+# Please don't modify this file as your changes might be overwritten with
+# the next update.
+#
+# You can modify '$LOCAL_CONFDIR/rspamd.conf.local.override' to redefine
+# parameters defined on the top level
+#
+# You can modify '$LOCAL_CONFDIR/rspamd.conf.local' to add
+# parameters defined on the top level
+#
+# For specific modules or configuration you can also modify
+# '$LOCAL_CONFDIR/local.d/file.conf' - to add your options or rewrite defaults
+# '$LOCAL_CONFDIR/override.d/file.conf' - to override the defaults
+#
+# See https://rspamd.com/doc/tutorials/writing_rules.html for details
+
+force_actions {
+
+ # Refer to https://rspamd.com/doc/modules/force_actions.html for information on configuration
+
+ .include(try=true,priority=5) "${DBDIR}/dynamic/force_actions.conf"
+ .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/force_actions.conf"
+ .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/force_actions.conf"
+}
diff --git a/conf/modules.d/metadata_exporter.conf b/conf/modules.d/metadata_exporter.conf
new file mode 100644
index 000000000..2284f7431
--- /dev/null
+++ b/conf/modules.d/metadata_exporter.conf
@@ -0,0 +1,25 @@
+# Please don't modify this file as your changes might be overwritten with
+# the next update.
+#
+# You can modify '$LOCAL_CONFDIR/rspamd.conf.local.override' to redefine
+# parameters defined on the top level
+#
+# You can modify '$LOCAL_CONFDIR/rspamd.conf.local' to add
+# parameters defined on the top level
+#
+# For specific modules or configuration you can also modify
+# '$LOCAL_CONFDIR/local.d/file.conf' - to add your options or rewrite defaults
+# '$LOCAL_CONFDIR/override.d/file.conf' - to override the defaults
+#
+# See https://rspamd.com/doc/tutorials/writing_rules.html for details
+
+metadata_exporter {
+
+ # Refer to https://rspamd.com/doc/modules/metadata_exporter.html for information on configuration
+ rules {
+ }
+
+ .include(try=true,priority=5) "${DBDIR}/dynamic/metadata_exporter.conf"
+ .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/metadata_exporter.conf"
+ .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/metadata_exporter.conf"
+}
diff --git a/conf/modules.d/metric_exporter.conf b/conf/modules.d/metric_exporter.conf
new file mode 100644
index 000000000..b334d4c5a
--- /dev/null
+++ b/conf/modules.d/metric_exporter.conf
@@ -0,0 +1,23 @@
+# Please don't modify this file as your changes might be overwritten with
+# the next update.
+#
+# You can modify '$LOCAL_CONFDIR/rspamd.conf.local.override' to redefine
+# parameters defined on the top level
+#
+# You can modify '$LOCAL_CONFDIR/rspamd.conf.local' to add
+# parameters defined on the top level
+#
+# For specific modules or configuration you can also modify
+# '$LOCAL_CONFDIR/local.d/file.conf' - to add your options or rewrite defaults
+# '$LOCAL_CONFDIR/override.d/file.conf' - to override the defaults
+#
+# See https://rspamd.com/doc/tutorials/writing_rules.html for details
+
+metric_exporter {
+
+ # Refer to https://rspamd.com/doc/modules/metric_exporter.html for information on configuration
+
+ .include(try=true,priority=5) "${DBDIR}/dynamic/metric_exporter.conf"
+ .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/metric_exporter.conf"
+ .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/metric_exporter.conf"
+}
diff --git a/conf/modules.d/rmilter_headers.conf b/conf/modules.d/rmilter_headers.conf
new file mode 100644
index 000000000..432057e03
--- /dev/null
+++ b/conf/modules.d/rmilter_headers.conf
@@ -0,0 +1,25 @@
+# Please don't modify this file as your changes might be overwritten with
+# the next update.
+#
+# You can modify '$LOCAL_CONFDIR/rspamd.conf.local.override' to redefine
+# parameters defined on the top level
+#
+# You can modify '$LOCAL_CONFDIR/rspamd.conf.local' to add
+# parameters defined on the top level
+#
+# For specific modules or configuration you can also modify
+# '$LOCAL_CONFDIR/local.d/file.conf' - to add your options or rewrite defaults
+# '$LOCAL_CONFDIR/override.d/file.conf' - to override the defaults
+#
+# See https://rspamd.com/doc/tutorials/writing_rules.html for details
+
+rmilter_headers {
+
+ # Refer to https://rspamd.com/doc/modules/rmilter_headers.html for information on configuration
+
+ use = [];
+
+ .include(try=true,priority=5) "${DBDIR}/dynamic/rmilter_headers.conf"
+ .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/rmilter_headers.conf"
+ .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/rmilter_headers.conf"
+}
diff --git a/conf/modules.d/url_reputation.conf b/conf/modules.d/url_reputation.conf
new file mode 100644
index 000000000..6bc347311
--- /dev/null
+++ b/conf/modules.d/url_reputation.conf
@@ -0,0 +1,48 @@
+# Please don't modify this file as your changes might be overwritten with
+# the next update.
+#
+# You can modify '$LOCAL_CONFDIR/rspamd.conf.local.override' to redefine
+# parameters defined on the top level
+#
+# You can modify '$LOCAL_CONFDIR/rspamd.conf.local' to add
+# parameters defined on the top level
+#
+# For specific modules or configuration you can also modify
+# '$LOCAL_CONFDIR/local.d/file.conf' - to add your options or rewrite defaults
+# '$LOCAL_CONFDIR/override.d/file.conf' - to override the defaults
+#
+# See https://rspamd.com/doc/tutorials/writing_rules.html for details
+
+url_reputation {
+ enabled = false; # Please set enabled = true to activate
+
+ # Key prefix for redis - default "Ur."
+ #key_prefix = "Ur.";
+ # Symbols to insert - defaults as shown
+ #symbols {
+ # white = "URL_REPUTATION_WHITE";
+ # black = "URL_REPUTATION_BLACK";
+ # grey = "URL_REPUTATION_GREY";
+ # neutral = "URL_REPUTATION_NEUTRAL";
+ #}
+ # DKIM/DMARC/SPF allow symbols - defaults as shown
+ #foreign_symbols {
+ # dmarc = "DMARC_POLICY_ALLOW";
+ # dkim = "R_DKIM_ALLOW";
+ # spf = "R_SPF_ALLOW";
+ #}
+ # SURBL metatags to ignore - default as shown
+ #ignore_surbl = ["URIBL_BLOCKED", "DBL_PROHIBIT", "SURBL_BLOCKED"];
+ # Amount of samples required for scoring - default 5
+ #threshold = 5;
+ # Maximum number of TLDs to update reputation on (default 1)
+ #update_limit = 1;
+ # Maximum number of TLDs to query reputation on (default 100)
+ #query_limit = 100;
+ # If true, try to find most 'relevant' URL (default true)
+ #relevance = true;
+
+ .include(try=true,priority=5) "${DBDIR}/dynamic/url_reputation.conf"
+ .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/url_reputation.conf"
+ .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/url_reputation.conf"
+}
diff --git a/conf/modules.d/url_tags.conf b/conf/modules.d/url_tags.conf
new file mode 100644
index 000000000..a1e53e340
--- /dev/null
+++ b/conf/modules.d/url_tags.conf
@@ -0,0 +1,29 @@
+# Please don't modify this file as your changes might be overwritten with
+# the next update.
+#
+# You can modify '$LOCAL_CONFDIR/rspamd.conf.local.override' to redefine
+# parameters defined on the top level
+#
+# You can modify '$LOCAL_CONFDIR/rspamd.conf.local' to add
+# parameters defined on the top level
+#
+# For specific modules or configuration you can also modify
+# '$LOCAL_CONFDIR/local.d/file.conf' - to add your options or rewrite defaults
+# '$LOCAL_CONFDIR/override.d/file.conf' - to override the defaults
+#
+# See https://rspamd.com/doc/tutorials/writing_rules.html for details
+
+url_tags {
+ enabled = false; # Please set enabled = true to activate
+
+ # expiry time for tags - default 1 hour
+ #expire = 1h;
+ # key prefix for redis - default "Ut."
+ #key_prefix = "Ut.";
+ # tags that shouldn't be persisted - default empty
+ #ignore_tags = ["surbl"];
+
+ .include(try=true,priority=5) "${DBDIR}/dynamic/url_tags.conf"
+ .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/url_tags.conf"
+ .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/url_tags.conf"
+}