1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-20 02:52:11 +00:00

Use get_mail_domains instead of get_dns_zones

This commit is contained in:
cmharper 2019-04-12 08:53:43 +01:00
parent 5af89a2956
commit 4968f3dc10

View File

@ -25,7 +25,7 @@ def get_web_domains(env, include_www_redirects=True, exclude_dns_elsewhere=True)
domains |= set('www.' + zone for zone, zonefile in get_dns_zones(env))
# add the required subdomains for MTA-STS
domains |= set('mta-sts.' + zone for zone, zonefile in get_dns_zones(env))
domains |= set('mta-sts.' + zone for zone in get_mail_domains(env))
if exclude_dns_elsewhere:
# ...Unless the domain has an A/AAAA record that maps it to a different