dmstork / Show-AntiSpoof

Exchange PowerShell based script that checks every accepted domain of Exchange and will show the DNS configuration of SPF and DMARC for each domain using an external DNS server.
https://dirteam.com/dave
MIT License
19 stars 1 forks source link

Show-AntiSpoof

PowerShell based script that checks every accepted domain of Exchange and will show the DNS configuration of SPF and DMARC for each domain using an external DNS server. Alternatively you can request the same information on a specific domain not necessarily configured as Accepted Domain.

Author

License

MIT License Copyright (c) 2018-2020 Dave Stork

Version

Revision History

Known Limitations

Link

Dave Stork's IMHO

Description

Run the script in Exchange PowerShell (remote or in your current environment) and a report will be show with the current external SPF and DMARC configuration. Edit the variable if you require another default DNS server. Without Exchange PowerShell, you can run the script and get the same information by explicitly stating a domain.

Examples

.\Show-AntiSpoof
Checks all Exchange Accepted Domains 

.\Show-AntiSpoof -TranscriptOn 
Enables the creation of a transscript file in the same folder as where the script is run.

.\Show-AntiSpoof -DNSServer 1.2.3.4
Overrides the default DNS server (8.8.8.8) with one specified.

.\Show-AntiSpoof -DomainName contoso.com
Overrides checking Accepted Domains from the Exchange environment and checks only the provides domain
No Exchange PowerShell required when this is used.

.\Show-AntiSpoof -DomainName contoso.com -Selector Selector1
Will check whether the specified domain has the DKIM selector specified by the -Selector parameter.

.\Show-AntiSpoof -DomainBatchfile domains.csv
Will check all domains in CSV file with header "DomainName"