# Email Authentication Tester > Test and validate email authentication records (SPF, DKIM, DMARC, MX, CAA) for any domain to prevent email spoofing and improve deliverability. ## Endpoints - GET / — Web UI with form to check a domain - GET /api/lookup?domain=example.com — JSON API returning full results - GET /health — Service health + build identity (JSON, see "API contract") - GET /sitemap.xml — XML sitemap - GET /robots.txt — Robots exclusion file - GET /llms.txt — This file ## What it checks - SPF — Validates which mail servers are authorized to send email for your domain - DKIM — Checks cryptographic signatures that verify email authenticity - DMARC — Links SPF and DKIM, tells receivers how to handle failed authentication - MX — Lists mail exchange servers that receive email for the domain - CAA — Specifies which certificate authorities are allowed to issue SSL certificates ## Response Format The JSON API returns an object with: - domain: the queried domain - fetch: raw DNS query results for all protocols - parsed: structured validation results with security scores and recommendations - score: composite security score (0-100) with breakdown by protocol ## API Usage Example ```bash curl "https://emailauth.btoven.net/api/lookup?domain=example.com" ``` Returns: ```json { "domain": "example.com", "score_class": "score-high", "fetch": { "domain": "example.com", "spf": { "raw": "v=spf1 include:_spf.google.com ~all" }, "dmarc": { "raw": "v=DMARC1; p=reject; rua=mailto:dmarc@example.com" }, "dkim": [], "mx": [{"preference": 10, "exchange": "mail.example.com"}], "caa": [{"tag": "issue", "issuer": "letsencrypt.org"}] }, "parsed": { "score": { "total": 85, "spf": 25, "dmarc": 30, "dkim": 20, "mx": 10, "caa": 0 }, "errors": [], "successes": ["SPF record found", "DMARC record found", "MX records present"] } } ``` ## API contract (machine-readable) Identity travels with every JSON response — quote `engine` + `schema_version` to replicate or diff a check across releases: - `engine` — `/` of the checker, e.g. `emailauth/0.1.0` - `schema_version` — integer, bumped on **any** structural change (currently `1`) - `contract_version` — version of this envelope contract - `polarity` — see below `GET /health` returns `{status, version, commit, schema_version, engine, contract_version, polarity}`. `commit` is the git sha baked in at build time (`GIT_COMMIT`); `unknown` means the build had no sha available. **Errors** use one envelope: `{error, message, retry, retry_after_s?, contract_version}` where `error` is a stable machine code, `message` is human text and `retry` is one of `never` | `backoff` | `honor-retry-after`. A `429` also sends the `Retry-After` header. **Polarity (B4)**: `polarity.absence_means = "pass"` — an empty `errors` list is a PASS, never "unknown"; the `*_successes` lists are informational only. **Rate limiting** (4 dimensions): 30/h per IP, 300/h per user-agent, 60/h per target (keyed on `domain`), 2000/h global, escalating ban ladder (5m → 1h → 6h → 12h → 24h). `/health` is exempt. ## Privacy & acceptable use - **We do not persist your queries.** No query log, no per-user store, no database: the checked value never leaves memory except in the response. Access logs record the path only (no query string) and the client address as a non-reversible token. - **Cache**: in-memory only, TTL 5 min (max 1000 entries), cleared on restart. - **Acceptable use**: only check domains you own or are explicitly authorized to test. The anti-abuse guard rate-limits and bans repeat offenders. ## Agent skills (well-known) Agents can load this service as a skill instead of scraping the page: - `GET /.well-known/agent-skills/index.json` - discovery index - `GET /.well-known/agent-skills/emailauth-tester/SKILL.md` - actionable instructions - Whole BTOVEN fleet: https://btoven.net/.well-known/agent-skills/btoven-network/SKILL.md ## Related Tools Free security testing tools from BTOVEN Network: - Security Headers Tester — https://securityheaders.btoven.net/llms.txt - security.txt Tester — https://securitytxt.btoven.net/llms.txt - WKD Tester — https://wkd.btoven.net/llms.txt - DANE Tester — https://dane.btoven.net/llms.txt - Agent Skills Tester — https://agent-skills.btoven.net/llms.txt ## Maintained by BTOVEN Network — https://btoven.net