Mail Checker extracts a domain's DMARC and SPF Record.
go get github.com/gospacedev/mail-checker
Mail Checker takes in the targeted domain and the config file info and returns the domain's mail information to the config file:
package main
import "github.com/gospacedev/mail-checker"
func main() {
mail.CheckDomainMX("google.com", "config", "json", ".")
}
The mail information is outputted to the config file, Mail Checker supports writing to JSON, TOML, and YAML config files:
{
"dmarcrecord": "v=DMARC1; p=reject; rua=mailto:mailauth-reports@google.com",
"domain": "google.com",
"hasdmarc": true,
"hasmx": true,
"hasspf": false,
"sprecord": ""
}