diff options
Diffstat (limited to 'conf')
-rw-r--r-- | conf/mid.inc | 9 | ||||
-rw-r--r-- | conf/modules.d/mid.conf | 25 |
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" +} |