Browse Source

[Rspamd] Add filter to global mime black- and whitelists to only match addr

andryyy 5 years ago
parent
commit
943730de47
1 changed files with 2 additions and 0 deletions
  1. 2 0
      data/conf/rspamd/local.d/multimap.conf

+ 2 - 0
data/conf/rspamd/local.d/multimap.conf

@@ -60,6 +60,7 @@ GLOBAL_SMTP_FROM_BL {
 GLOBAL_MIME_FROM_WL {
   type = "header";
   header = "from";
+  filter = "email:addr";
   map = "${LOCAL_CONFDIR}/custom/global_mime_from_whitelist.map";
   regexp = true;
   score = -2050;
@@ -68,6 +69,7 @@ GLOBAL_MIME_FROM_WL {
 GLOBAL_MIME_FROM_BL {
   type = "header";
   header = "from";
+  filter = "email:addr";
   map = "${LOCAL_CONFDIR}/custom/global_mime_from_blacklist.map";
   regexp = true;
   prefilter = true;