rhymeswithmogul / MailPolicyExplainer

A PowerShell module to test and explain all facets of a domain's email records.
https://www.powershellgallery.com/packages/MailPolicyExplainer/
GNU Affero General Public License v3.0
9 stars 1 forks source link

Fix compare function #2

Closed skyblaster closed 3 months ago

skyblaster commented 3 months ago

I just implemented MTA-STS in my domain and using PowerShell 5.1, found I was always seeing the following error, even though my mta-sta.txt file was properly formatted with CRLF.

MTA-STS Policy: The policy file does not have the correct CRLF line endings!

Confirmed the same behavior running Test-MtaStsPolicy microsoft.com

rhymeswithmogul commented 3 months ago

I won't have access to PowerShell 5.1 until Monday, but this is working for me with PowerShell 7. I'll take your word for it!