Explorar o código

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

andryyy %!s(int64=5) %!d(string=hai) anos
pai
achega
943730de47
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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 {
 GLOBAL_MIME_FROM_WL {
   type = "header";
   type = "header";
   header = "from";
   header = "from";
+  filter = "email:addr";
   map = "${LOCAL_CONFDIR}/custom/global_mime_from_whitelist.map";
   map = "${LOCAL_CONFDIR}/custom/global_mime_from_whitelist.map";
   regexp = true;
   regexp = true;
   score = -2050;
   score = -2050;
@@ -68,6 +69,7 @@ GLOBAL_MIME_FROM_WL {
 GLOBAL_MIME_FROM_BL {
 GLOBAL_MIME_FROM_BL {
   type = "header";
   type = "header";
   header = "from";
   header = "from";
+  filter = "email:addr";
   map = "${LOCAL_CONFDIR}/custom/global_mime_from_blacklist.map";
   map = "${LOCAL_CONFDIR}/custom/global_mime_from_blacklist.map";
   regexp = true;
   regexp = true;
   prefilter = true;
   prefilter = true;