From 0660e7f17ee74f9bf4cbc677155b424be6100276 Mon Sep 17 00:00:00 2001 From: twesterhever <40121680+twesterhever@users.noreply.github.com> Date: Tue, 9 Apr 2024 11:13:15 +0000 Subject: [PATCH] [Enhancement] Detect freemail and disposable e-mail usage for MDN --- conf/modules.d/multimap.conf | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/conf/modules.d/multimap.conf b/conf/modules.d/multimap.conf index b707ddfb1..0b43b6ca9 100644 --- a/conf/modules.d/multimap.conf +++ b/conf/modules.d/multimap.conf @@ -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" -- 2.39.5