Get-Mailprotection

1.15

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).
Also some Webrequests are required for MTA-STS, TenantID (OIDC), Security.txt.
And connects via
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).
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 M365 TenantID Security.txt

Functions

Get-SPFLookupCount Invoke-STARTTLS Get-MailProtection

Dependencies

This script has no dependencies.

Release Notes

Version 1.15
- Fixed a Bug in Reverse Lookup of MX Records
- Added SMTPError to Output
- Added -ExportCSV Parameter
- Some minor Bugfixes

FileList

Version History

Version Downloads Last updated
1.15 (current version) 18 11/20/2024
1.14 56 9/28/2024
1.13 89 3/30/2024
1.12 85 1/13/2024
1.11 27 11/29/2023
1.10 20 11/8/2023
1.9 76 10/29/2023
1.8 87 9/30/2023
1.6 138 4/3/2023
1.4 148 10/8/2022
Show more