Tool for checking the existence of MX, SPF and DMARC records for domain names.
$ go get -v github.com/dstotijn/mailcheck
Outputting results to stdout:
$ mailcheck < domains.txt
Outputting results to file:
$ mailcheck < domains.txt > output.csv
The first line has CSV-headers:
domain,hasMX,hasSPF,spfRecord,hasDMARC,dmarcRecord
Each subsequent line has 6 comma separated fields:
domain: Domain namehasMX: Domain has at least one MX record? (trueorfalse)hasSPF: Domain has SPF record? (trueorfalse)spfRecord: SPF record contentshasDMARC: Domain has DMARC record? (trueorfalse)dmarcRecord: DMARC record contents