Metadata-Version: 2.4
Name: email-auth-check
Version: 0.1.0
Summary: Check SPF, DKIM, DMARC and MX records of a sending domain over DNS-over-HTTPS
Author: Jainendra Ojha
License: MIT
Project-URL: Homepage, https://www.onegtmlab.dev/glossary/dmarc
Project-URL: Source, https://github.com/jaizendra-netizen/email-auth-check
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# email-auth-check

Check the email authentication records of a sending domain before you point cold email or a sequencer at it:
**SPF, DKIM, DMARC and MX**, with plain-language warnings (more than 10 SPF lookups, `+all`, `p=none`, missing `rua`, revoked DKIM key).
Records are read over DNS-over-HTTPS, so there is nothing to install: Python 3.8+ standard library only.

```bash
python -m email_auth_check example.com
python -m email_auth_check example.com --selector google --selector selector1
python -m email_auth_check example.com --json
```

Exit code is 1 when SPF or DMARC is missing, so it can gate a deploy or a CI step.

## Example output (live run, 27 Nov 2026)

```
Domain: google.com

SPF  [OK]  what it is: https://www.onegtmlab.dev/glossary/spf-record
  v=spf1 include:_spf.google.com ~all

DKIM  [not checked]  pass --selector (e.g. google, selector1, k1) to test a key. What it is: https://www.onegtmlab.dev/glossary/dkim

DMARC  [OK]  what it is: https://www.onegtmlab.dev/glossary/dmarc
  v=DMARC1; p=reject; rua=mailto:mailauth-reports@google.com

MX  [OK]  what it is: https://www.onegtmlab.dev/glossary/mx-record
  10 smtp.google.com
```

## Why these four records

Each record has its own explainer on the OneGTMLab glossary, linked in the output:
[SPF record](https://www.onegtmlab.dev/glossary/spf-record), [DKIM](https://www.onegtmlab.dev/glossary/dkim),
[DMARC](https://www.onegtmlab.dev/glossary/dmarc) and [MX record](https://www.onegtmlab.dev/glossary/mx-record).
Together they decide whether mail from a domain reaches the inbox; see also
[email deliverability](https://www.onegtmlab.dev/glossary/email-deliverability) and
[email warmup](https://www.onegtmlab.dev/glossary/email-warmup).

DKIM keys live at `<selector>._domainkey.<domain>`; the selector depends on the mail provider, so pass it with `--selector`.

## Test

```bash
python -m unittest discover -s tests -v   # parsers and a fake resolver, no network
```

## Licence

MIT. Made by [OneGTMLab](https://www.onegtmlab.dev), GTM engineering for B2B teams.
