dotBATmanNO / PSGet-Domain-MailInfo

PowerShell script to get domain mail info and control status such as MX, SPF, DKIM, DMARC and StartTLS.
GNU General Public License v3.0
12 stars 2 forks source link

Fails to check DMARC policy if there is no MX record #16

Closed dotBATmanNO closed 3 years ago

dotBATmanNO commented 4 years ago

The script skips checking for DMARC, and possibly other policies, if there is no MX record. This could be considered a bug, however the script does say #N/A rather than None.

This default of not checking should be highlighted to users. If possible consider adding an option to force checking of specific / all policies, regardless of MX records.

To recreate the issue run the script against any domain that has a DMARC policy but no MX record. The domain this was noticed for was coronavirus.gov, see https://internet.nl/mail/coronavirus.gov/399588/.

Tweet_SPFPolicy_Coronavirus gov