From 8e18fe03a677dac9842276f1e1b3a9eb1dc08517 Mon Sep 17 00:00:00 2001 From: Jumper78 <52802286+Jumper78@users.noreply.github.com> Date: Tue, 25 Feb 2025 15:33:30 +0100 Subject: [PATCH] simplify function Alternative.dns_dmarc_report_needed Co-authored-by: Florent Daigniere --- core/admin/mailu/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/core/admin/mailu/models.py b/core/admin/mailu/models.py index ea9c0c2d..699854d4 100644 --- a/core/admin/mailu/models.py +++ b/core/admin/mailu/models.py @@ -385,6 +385,7 @@ class Alternative(Base): @cached_property def dns_dmarc_report_needed(self): + return self.name != app.config['DOMAIN'] """ return true if DMARC report record is needed """ domain = app.config['DOMAIN'] if self.name != domain: