Skip to main content

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.

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, DKIM, DMARC and MX record. Together they decide whether mail from a domain reaches the inbox; see also email deliverability and email warmup.

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

Test

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

Licence

MIT. Made by OneGTMLab, GTM engineering for B2B teams.

Metadata

Release files for email-auth-check 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for email-auth-check 0.1.0
File Size Uploaded Provenance Actions
email_auth_check-0.1.0.tar.gz 6.0 kB Without provenance Details for email_auth_check-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for email-auth-check 0.1.0
File Interpreter ABI Platform Actions
email_auth_check-0.1.0-py3-none-any.whl Python 3 none any Details for email_auth_check-0.1.0-py3-none-any.whl

Total release size: 12.2 kB

Release files / email_auth_check-0.1.0.tar.gz

Download URL email_auth_check-0.1.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2a50cb5a0fc4b8d0cfd094f8607e514dde27603f055a23af1c544a64e9083cda
BLAKE2b-256 checksum
How to use checksums
e84975794886160efa3528879ab159cffe9116fa37e57bcebbb2bbc9620b39d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / email_auth_check-0.1.0-py3-none-any.whl

Download URL email_auth_check-0.1.0-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f35c16f28781b137c9b4186d8569475c694e7000b5c5a3e01feb21aa0776f8f
BLAKE2b-256 checksum
How to use checksums
c373b526a91338e3dcc74e0ddd520efe02884528d23dc787beede801ff1cce86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for email-auth-check 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page