aboutsummaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2016-09-17 12:01:10 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2016-09-18 14:48:32 +0300
commitf47afa34e8442adab3fa01b7c476432e40710f8b (patch)
treee777410ac956ac54acae9dd98921308c18ede3e1 /conf
parentf733c89e9297cff3dcaea5b02eeaa5eb3a640b94 (diff)
downloadrspamd-f47afa34e8442adab3fa01b7c476432e40710f8b.tar.gz
rspamd-f47afa34e8442adab3fa01b7c476432e40710f8b.zip
[Feature] Add `mid` Lua module
Diffstat (limited to 'conf')
-rw-r--r--conf/mid.inc9
-rw-r--r--conf/modules.d/mid.conf25
2 files changed, 34 insertions, 0 deletions
diff --git a/conf/mid.inc b/conf/mid.inc
new file mode 100644
index 000000000..6207819a4
--- /dev/null
+++ b/conf/mid.inc
@@ -0,0 +1,9 @@
+# Known invalid or missed Message-IDs
+# 'domain' 'Message-ID regexp'
+
+aliexpress.com /^(?:(?:[0-9]{14}|[a-z]{4}UTT_[0-9]{5}_)[$])?[a-f0-9]{32}$/
+is-zakupki.com
+mirtesen.ru
+promo.wildberries.ru /^[A-F0-9]{8}(?:-[A-F0-9]{4}){2}-[0-9]{4}-[A-F0-9]{12}$/
+sberbank-ast.ru
+wildberries.ru /^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$/
diff --git a/conf/modules.d/mid.conf b/conf/modules.d/mid.conf
new file mode 100644
index 000000000..36639790a
--- /dev/null
+++ b/conf/modules.d/mid.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
+
+mid = {
+ url = [
+ "${CONFDIR}/mid.inc",
+ "$LOCAL_CONFDIR/local.d/mid.inc"
+ ];
+
+ .include(try=true,priority=5) "${DBDIR}/dynamic/mid.conf"
+ .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/mid.conf"
+ .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/mid.conf"
+}