From 7bec8029a43a0d01ccd969d306d1146af8192e23 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Thu, 9 Sep 2021 21:41:03 +0200 Subject: [PATCH] strip not necessary anymore --- core/admin/mailu/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/admin/mailu/models.py b/core/admin/mailu/models.py index 86e285d0..f93b158f 100644 --- a/core/admin/mailu/models.py +++ b/core/admin/mailu/models.py @@ -312,7 +312,7 @@ class Domain(Base): def check_mx(self): """ checks if MX record for domain points to mailu host """ try: - hostnames = set(fqdn.strip() for fqdn in app.config['HOSTNAMES'].split(',')) + hostnames = set(app.config['HOSTNAMES'].split(',')) return any( rset.exchange.to_text().rstrip('.') in hostnames for rset in dns.resolver.query(self.name, 'MX')