Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.11 KB

README.md

File metadata and controls

39 lines (30 loc) · 1.11 KB

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:[email protected]",
  "domain": "google.com",
  "hasdmarc": true,
  "hasmx": true,
  "hasspf": false,
  "sprecord": ""
}