Skip to content

gospacedev/mail-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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