/mail-checker

Domain Email Record Extractor

Primary LanguageGoMIT LicenseMIT

Mail Checker

MIT Licence Go Reference Go Report Card

Mail Checker extracts a domain's DMARC and SPF Record.

Usage

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": ""
}