MailPolicyExplainer

1.3.1

Explains a domain's email DNS records, including MX, SPF, DKIM, DMARC, and more.

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name MailPolicyExplainer -RequiredVersion 1.3.1

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name MailPolicyExplainer -Version 1.3.1

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2018, 2020, 2023 Colin Cogle. All rights reserved.

Package Details

Author(s)

  • Colin Cogle

Tags

email mail SPF DKIM DMARC BIMI DNSSEC DANE MTA-STS MX TLSRPT STARTTLS domainkey TLS TLSA ADSP DNS policy SenderID tester Reporting Test Exchange Office365 Google Network Cloud security audit IPv4 IPv6 SMTP RSA Ed25519 Windows MacOS Linux

Functions

Test-MailPolicy Test-MXRecord Test-IPVersions Test-DkimSelector Test-AdspRecord Test-DmarcRecord Test-BimiSelector Test-MtaStsPolicy Test-SmtpTlsReportingPolicy Test-SpfRecord Test-DaneRecord Invoke-GooglePublicDnsApi

PSEditions

Core Desktop

Dependencies

This module has no dependencies.

Release Notes

This release adds one new feature: IP version checks are now indented when run from `Test-MailPolicy`.

Many bugs were fixed, too:
- Implied MX records are now displayed correctly.
- `Test-DaneRecords` now correctly checks DANE records for domains without MX records.
- The DMARC `fo` token is now parsed correctly when multiple values are present.
- The DMARC `rf` token is now parsed correctly.
- The IntelliSense handling of `Test-SpfRecord` has been improved by hiding some internal-use-only parameters.
- The IP version checks now work with implied MX records.
- The MTA-STS policy file test returns a better error message when the file does not have the correct CRLF line endings.
- The SMTP TLS reporting policy test now checks to make sure exactly one `v` tag is present with the value `TLSRPTv1`.
- The SMTP TLS reporting policy test now fails gracefully when invalid text is returned.
- The SPF `exists` and `mx` token parsers no longer generate a spurious error when not counting DNS lookups.
- Online help is fixed for `Test-SmtpTlsReportingPolicy`, `Test-MtaStsPolicy`, and `Test-SpfRecord`.
- Cleaned up the output of `Test-DaneRecords` a little.
- Miscellaneous code cleanup.

FileList

Version History

Version Downloads Last updated
1.5.1 21 3/4/2025
1.5.0 30 2/22/2025
1.4.1 645 5/23/2024
1.4.0 35 4/4/2024
1.3.4 43 1/25/2024
1.3.3 15 1/19/2024
1.3.2 24 12/9/2023
1.3.1 (current version) 12 12/7/2023
1.3.0 29 11/7/2023
1.2.0 14 10/20/2023
1.1.0 11 10/19/2023
1.0.0 19 10/15/2023
Show less