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? (true
orfalse
)hasSPF
: Domain has SPF record? (true
orfalse
)spfRecord
: SPF record contentshasDMARC
: Domain has DMARC record? (true
orfalse
)dmarcRecord
: DMARC record contents