https://github.com/gospacedev/mail-checker
Domain Email Record Extractor
https://github.com/gospacedev/mail-checker
checker mail mail-checker mail-verification mail-verify open-source verification verifier
Last synced: 3 months ago
JSON representation
Domain Email Record Extractor
- Host: GitHub
- URL: https://github.com/gospacedev/mail-checker
- Owner: gospacedev
- License: mit
- Created: 2022-04-05T08:49:30.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-05T03:42:37.000Z (over 3 years ago)
- Last Synced: 2024-06-20T18:33:22.713Z (almost 2 years ago)
- Topics: checker, mail, mail-checker, mail-verification, mail-verify, open-source, verification, verifier
- Language: Go
- Homepage:
- Size: 92.8 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mail Checker
[](https://opensource.org/licenses/mit-license.php)
[](https://pkg.go.dev/github.com/gospacedev/mail-checker)
[](https://goreportcard.com/report/github.com/gospacedev/mail-checker)
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:
```go
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:
```json
{
"dmarcrecord": "v=DMARC1; p=reject; rua=mailto:mailauth-reports@google.com",
"domain": "google.com",
"hasdmarc": true,
"hasmx": true,
"hasspf": false,
"sprecord": ""
}
```