From 4968f3dc1086e70ce11462093f0bc578a5d3d81b Mon Sep 17 00:00:00 2001 From: cmharper <1422608+cmharper@users.noreply.github.com> Date: Fri, 12 Apr 2019 08:53:43 +0100 Subject: [PATCH] Use get_mail_domains instead of get_dns_zones --- management/web_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/web_update.py b/management/web_update.py index 43e9c3bf..6c4a8445 100644 --- a/management/web_update.py +++ b/management/web_update.py @@ -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