mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-20 02:52:11 +00:00
Update management/dns_update.py
Co-authored-by: Daniel Mabbett <triumph_2500@hotmail.com>
This commit is contained in:
parent
88dba22df0
commit
e35fccc90c
@ -320,7 +320,7 @@ def build_zone(domain, all_domains, additional_records, www_redirect_domains, en
|
|||||||
response = check_certificate(env['PRIMARY_HOSTNAME'], get_prim_cert['certificate'],get_prim_cert['private-key'])
|
response = check_certificate(env['PRIMARY_HOSTNAME'], get_prim_cert['certificate'],get_prim_cert['private-key'])
|
||||||
# we don't want those records on the primary hostname
|
# we don't want those records on the primary hostname
|
||||||
# and we only want these records if the certificate is valid
|
# and we only want these records if the certificate is valid
|
||||||
if response[0] == 'OK':
|
if response[0] == 'OK' and domain in get_mail_domains(env):
|
||||||
mta_sts_records = [
|
mta_sts_records = [
|
||||||
("mta-sts", "A", env["PUBLIC_IP"], "Provides MTA-STS support"),
|
("mta-sts", "A", env["PUBLIC_IP"], "Provides MTA-STS support"),
|
||||||
("mta-sts", "AAAA", env.get('PUBLIC_IPV6'), "Provides MTA-STS support"),
|
("mta-sts", "AAAA", env.get('PUBLIC_IPV6'), "Provides MTA-STS support"),
|
||||||
|
Loading…
Reference in New Issue
Block a user