mailinabox icon indicating copy to clipboard operation
mailinabox copied to clipboard

Try to print MTA-STS missing DNS policy error reason

Open ValdikSS opened this issue 4 years ago • 3 comments

When proper (not self-signed) TLS certificate is not provisioned on the domain yet, MiaB prints only:

MTA-STS policy is missing: STSFetchResult.NONE

which may confuse the administrator, as .well-known/mta-sts.txt file is already present and opens correctly.

Print more human-friendly reason for this case. Code taken from dns-update.py and slightly edited.

ValdikSS avatar Dec 17 '20 20:12 ValdikSS

Thanks for this. If the cert is missing or invalid, I think we can just skip the MTA-STS message entirely, since there will be a message about the certificate.

JoshData avatar Dec 20 '20 00:12 JoshData

Like this I guess? Please check.

ValdikSS avatar Dec 20 '20 11:12 ValdikSS

@JoshData, hello, any chance to get this merged?

ValdikSS avatar Apr 03 '23 20:04 ValdikSS