From 3e4ef072351b727fd48b3e8c4ff2327fa06ea101 Mon Sep 17 00:00:00 2001 From: Rik Date: Fri, 12 May 2017 11:45:56 +0200 Subject: [PATCH] Use domain admin username as domain filter Domain administrators that have their domain name as user name are not able to set whitelist or blacklist entries for their domain unless it is explicitly added to the filters of the domain administrator user. However doing so results in duplicate email in the daily spam report. This patch adds the domain administrator user name as domain filter. --- mailscanner/lists.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mailscanner/lists.php b/mailscanner/lists.php index 510575a87..63db1c1e1 100644 --- a/mailscanner/lists.php +++ b/mailscanner/lists.php @@ -193,6 +193,8 @@ $ar = explode('@', $_SESSION['myusername']); $domainname = $ar[1]; $to_domain_filter[] = $domainname; + } else { + $to_domain_filter[] = $_SESSION['myusername']; } $to_domain_filter = array_unique($to_domain_filter); break;