mirror of
https://github.com/optim-enterprises-bv/Mailu.git
synced 2025-11-02 19:18:07 +00:00
there too
This commit is contained in:
@@ -324,7 +324,7 @@ class Domain(Base):
|
||||
hostnames = set(app.config['HOSTNAMES'].split(','))
|
||||
return any(
|
||||
rset.exchange.to_text().rstrip('.') in hostnames
|
||||
for rset in dns.resolver.query(self.name, 'MX')
|
||||
for rset in dns.resolver.resolve(self.name, 'MX')
|
||||
)
|
||||
except dns.exception.DNSException:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user