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
e35fccc90c
commit
8e75fad3a0
@ -335,7 +335,7 @@ def build_zone(domain, all_domains, additional_records, www_redirect_domains, en
|
|||||||
for alias in get_mail_aliases(env):
|
for alias in get_mail_aliases(env):
|
||||||
if alias[0] == tls_rpt_email:
|
if alias[0] == tls_rpt_email:
|
||||||
tls_rpt_string = " rua=mailto:%s" % tls_rpt_email
|
tls_rpt_string = " rua=mailto:%s" % tls_rpt_email
|
||||||
mta_sts_records.append(("_smtp._tls", "TXT", "v=TLSRPTv1;%s" % tls_rpt_string, "For reporting, add an mail alias: 'tlsrpt@%s' or add a custom TXT record like 'v=TLSRPTv1; rua=mailto:[youremail]@%s' for reporting" % (env["PRIMARY_HOSTNAME"], env["PRIMARY_HOSTNAME"]) ))
|
mta_sts_records.append(("_smtp._tls", "TXT", "v=TLSRPTv1;%s" % tls_rpt_string, "For reporting, add an email alias: 'tlsrpt@%s' or add a custom TXT record like 'v=TLSRPTv1; rua=mailto:[youremail]@%s' for reporting" % (env["PRIMARY_HOSTNAME"], env["PRIMARY_HOSTNAME"])))
|
||||||
for qname, rtype, value, explanation in mta_sts_records:
|
for qname, rtype, value, explanation in mta_sts_records:
|
||||||
if value is None or value.strip() == "": continue # skip IPV6 if not set
|
if value is None or value.strip() == "": continue # skip IPV6 if not set
|
||||||
if not has_rec(qname, rtype):
|
if not has_rec(qname, rtype):
|
||||||
|
Loading…
Reference in New Issue
Block a user