Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/likhithkp/go-email-verification-tool

Lightweight Go application that verifies the presence of DNS records for a given domain. It checks for MX, SPF, and DMARC records and outputs the results.
https://github.com/likhithkp/go-email-verification-tool

bufio email-verification go golang os

Last synced: 16 days ago
JSON representation

Lightweight Go application that verifies the presence of DNS records for a given domain. It checks for MX, SPF, and DMARC records and outputs the results.

Awesome Lists containing this project

README

        

# Email Verifier

Email Verifier is a simple Go application that checks the presence of DNS records for a given domain. It verifies the existence of MX, SPF, and DMARC records and prints the results in CSV format.

## Features

- Verifies the existence of MX records.
- Checks for SPF records and retrieves the SPF record if it exists.
- Checks for DMARC records and retrieves the DMARC record if it exists.

## Prerequisites

- Go (version 1.13 or later)

## Installation

1. Clone the repository:

```bash
git clone https://github.com/likhithkp/go-email-verification-tool.git
cd go-email-verification-tool
```

## Run

```go run main.go```

## Example input:
example.com
google.com
yahoo.com

## Example output:
domain, hasMX, hasSPF, spfRecord, hasDMARC, dmarcRecord
example.com, true, true, v=spf1 include:_spf.example.com ~all, true, v=DMARC1; p=none; rua=mailto:[email protected]
google.com, true, true, v=spf1 include:_spf.google.com ~all, true, v=DMARC1; p=none; rua=mailto:[email protected]
yahoo.com, true, true, v=spf1 include:spf.protection.outlook.com -all, true, v=DMARC1; p=reject; rua=mailto:[email protected]