]> source.dussan.org Git - rspamd.git/commitdiff
[Enhancement] Detect freemail and disposable e-mail usage for MDN
authortwesterhever <40121680+twesterhever@users.noreply.github.com>
Tue, 9 Apr 2024 11:13:15 +0000 (11:13 +0000)
committertwesterhever <40121680+twesterhever@users.noreply.github.com>
Tue, 9 Apr 2024 11:13:15 +0000 (11:13 +0000)
conf/modules.d/multimap.conf

index b707ddfb130e659a4934dd8b11e3cfe92b7c05a2..0b43b6ca9a6be855ab0959c2ca949456eca17f4f 100644 (file)
@@ -85,6 +85,16 @@ multimap {
     score = 0.0;
   }
 
+  freemail_mdn {
+    type = "header";
+    header = "Disposition-Notification-To";
+    filter = "email:domain";
+    map = "https://maps.rspamd.com/freemail/free.txt.zst";
+    symbol = "FREEMAIL_MDN";
+    description = "Disposition-Notification-To is a Freemail address";
+    score = 0.0;
+  }
+
   # Disposable Addresses
   disposable_envfrom {
     type = "from";
@@ -147,6 +157,16 @@ multimap {
     score = 0.0;
   }
 
+  disposable_mdn {
+    type = "header";
+    header = "Disposition-Notification-To";
+    filter = "email:domain";
+    map = "https://maps.rspamd.com/freemail/disposable.txt.zst";
+    symbol = "DISPOSABLE_MDN";
+    description = "Disposition-Notification-To is a disposable e-mail address";
+    score = 0.5;
+  }
+
   .include(try=true,priority=5) "${DBDIR}/dynamic/multimap.conf"
   .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/multimap.conf"
   .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/multimap.conf"