Get-MailRecords

2.0.0

Performs a comprehensive DNS audit of mail-related records (MX, NS, SPF, DMARC, DKIM, BIMI, MTA-STS, TLS-RPT) for a domain, email address, or URL. Includes FCrDNS (PTR) validation on the primary MX host, DKIM selector auto-discovery, TXT/CNAME/BOTH record-type modes, pipeline/bulk input, and CSV/JSON export. Runs on Windows (Resolve-DnsName) and Linux/macOS (dig).

Minimum PowerShell version

5.1

Installation Options

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

Install-Module -Name Get-MailRecords

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

Install-PSResource -Name Get-MailRecords

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) 2023 Dan Casmas. Licensed under the GNU General Public License v3.0.

Package Details

Author(s)

  • Dan Casmas

Tags

DNS Mail Email SPF DMARC DKIM MX NS BIMI MTA-STS TLS-RPT PTR FCrDNS DomainHealth EmailSecurity Networking CrossPlatform

Functions

Get-MailRecords

Dependencies

This module has no dependencies.

Release Notes

v2.0.0: Major feature release. Added MX_A (A record of the primary MX host), PTR (FCrDNS validation — === match / =/= mismatch), BIMI (default._bimi TXT), MTA-STS (_mta-sts TXT), and TLS-RPT (_smtp._tls TXT) to the output object. Removed the boolean A-record field. -Selector defaults to DKIM auto-discovery; SELECTOR output shows unprovided when DKIM is not found and no selector was given, hinting the user to supply one explicitly. dig path hardened with +time=2 +tries=1 and improved comment/blank-line filtering.

FileList

Version History

Version Downloads Last updated
2.0.0 (current version) 2 3/27/2026