Get-Mailprotection

1.20

This Script checks diffrent DNS Records about a Domain - mostly about Mailsecurity Settings.
Most of the Querys are simple DNS Querys (NS, MX, SPF, DKIM, DMARC, BIMI, MTA-STS, TLSRPT).
The Script uses also DNS over HTTP for several checks (ZoneSigned, TLSA Record for DANE) and
Decentralized Identifiers (DID), Model Context Protocol (MCP).
Also some Webrequests are req
This Script checks diffrent DNS Records about a Domain - mostly about Mailsecurity Settings.
Most of the Querys are simple DNS Querys (NS, MX, SPF, DKIM, DMARC, BIMI, MTA-STS, TLSRPT).
The Script uses also DNS over HTTP for several checks (ZoneSigned, TLSA Record for DANE) and
Decentralized Identifiers (DID), Model Context Protocol (MCP).
Also some Webrequests are required for MTA-STS, TenantID (OIDC), Security.txt.
And connects via SMTP to check if the Server supports STARTTLS.

Show more

Installation Options

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

Install-Script -Name Get-Mailprotection

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

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

Free to copy, inspire, etc...

Package Details

Author(s)

  • Andres Bohren Contact: a.bohren@icewolf.ch https://twitter.com/andresbohren

Tags

DNSSEC MX Reverse Lookup STARTTLS SPF DKIM DMARC DANE MTA-STS TLSRPT BIMI CAA Autodiscover Lyncdiscover Teamsfederation M365 TenantID Security.txt Decentralized Identifiers (DID) Model Context Protocol (MCP)

Functions

Get-SPFLookupCount Invoke-STARTTLS Get-MailProtection

Dependencies

This script has no dependencies.

Release Notes

Version 1.20
- Fixed Bug Autodiscover and Lyncdiscover with multiple A Records
- Added Decentralized Identifiers (DID) Detection (Experimental)
- https://domain.tld/.well-known/did-configuration.json
- Added Model Context Protocol (MCP) Detection (Experimental)
- https://domain.tld/.well-known/mcp.json
- https://domain.tld/.well-known/mcp/manifest.json

FileList

Version History

Version Downloads Last updated
1.20 (current version) 14 9/12/2025
1.17 57 7/23/2025
1.16 164 3/15/2025
1.15 510 11/20/2024
1.14 57 9/28/2024
1.13 90 3/30/2024
1.12 86 1/13/2024
1.11 28 11/29/2023
1.10 21 11/8/2023
1.9 77 10/29/2023
1.8 96 9/30/2023
1.6 143 4/3/2023
1.4 150 10/8/2022
Show more