mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-20 02:52:11 +00:00
more verbose text for tlsrpt@mailinabox.email
This commit is contained in:
parent
bce84ee1a3
commit
2bb67a6b05
@ -319,7 +319,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: tls_rpt_string = " rua:%s" % tls_rpt_email
|
if alias[0] == tls_rpt_email: tls_rpt_string = " rua:%s" % tls_rpt_email
|
||||||
|
|
||||||
mta_sts_records.append(("_smtp._tls", "TXT", "v=TLSRPTv1;%s" % tls_rpt_string, "For reporting, add an mail alias, for example 'tlsrpt@%s' and a custom TXT record like 'v=TLSRPTv1; rua=mailto:tlsrpt@%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 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"]) ))
|
||||||
|
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user