Capabilities / Email and DNS
Check a domain's email security (SPF, DMARC, MTA-STS, DKIM)
What it checks
Check whether others can send mail pretending to be a domain, and whether mail to it can be downgraded to plain text. Reads public DNS (SPF with the 10-lookup limit, DMARC, MTA-STS record and policy file, TLS-RPT, DNSSEC) and DKIM keys for selectors you name. Returns findings with the exact record to publish.
In the example run below, the report listed what it checked:
- MX records
- SPF (syntax, all-qualifier, 10-lookup limit, includes)
- DMARC (policy, pct, reporting)
- DNSSEC validation flag
What it does not check
Every report lists this in coverage.not_checked. In the example run:
- DKIM (pass dkim_selectors; selectors cannot be discovered from DNS)
- Whether your mail servers accept STARTTLS and present valid certificates
- BIMI and ARC
- Actual delivery or spam-folder placement
A clean result means these checks found nothing. It does not mean the target is secure.
Input
| Field | Type | Required | Meaning |
|---|---|---|---|
domain | string, up to 253 chars | yes | Domain, e.g. example.com |
dkim_selectors | list of string, up to 63 chars (up to 10) | no | DKIM selectors to check, e.g. google, selector1, s1. DNS cannot list them. |
Output: A findings report (schema security-findings/v1). facts has the records seen.
Price
$0.002 per call. The most one run can cost is $0.002, so pass max_usd of at least 0.002. That amount is held while the run works; you pay the actual charge and the rest returns to your balance. Failed runs are free. Time limit: 30 seconds.
Call it
REST
curl -s https://api.brainbacked.com/v1/runs \
-H "Authorization: Bearer $BRAINBACKED_API_KEY" \
-H "content-type: application/json" \
-d '{
"capability": "email.security_check",
"input": {"domain":"example.com","dkim_selectors":["google"]},
"max_usd": 0.002
}'
MCP tool calls
run {
"capability": "email.security_check",
"input": {
"domain": "example.com",
"dkim_selectors": [
"google"
]
},
"max_usd": 0.002
}
Example response
A real run, recorded 2026-12-04 01:25 UTC. The request input was {"domain":"brainbacked.com"}.
| Severity | Finding | Where | Fix |
|---|---|---|---|
| medium | No DMARC record: others can send mail that looks like it comes from this domainNo v=DMARC1 TXT record at _dmarc.brainbacked.com | brainbacked.com | Publish a DMARC record. Start with p=none and a rua address to collect reports, then move to quarantine or reject._dmarc.brainbacked.com TXT "v=DMARC1; p=none; rua=mailto:dmarc@brainbacked.com" |
| medium | No SPF recordNo TXT record starting v=spf1 at brainbacked.com | brainbacked.com | Publish an SPF record listing the services that send your mail, ending in -all or ~all. |
| low | DNS answers for this domain are not DNSSEC-validatedResolver did not set the AD (authenticated data) flag | brainbacked.com | Enable DNSSEC at your DNS host and publish the DS record at your registrar. |
Checked
- MX records
- SPF (syntax, all-qualifier, 10-lookup limit, includes)
- DMARC (policy, pct, reporting)
- DNSSEC validation flag
Not checked
- DKIM (pass dkim_selectors; selectors cannot be discovered from DNS)
- Whether your mail servers accept STARTTLS and present valid certificates
- BIMI and ARC
- Actual delivery or spam-folder placement
Automated checks with stated coverage. A clean result means these checks found nothing, not that the target is secure.
Raw JSON response
{
"id": "run_49iMPenQzydi7c2wyIQV",
"capability": "email.security_check",
"version": 1,
"status": "succeeded",
"output": {
"schema": "security-findings/v1",
"capability": "email.security_check",
"target": "brainbacked.com",
"generated_at": "2026-12-04T01:25:01.061Z",
"coverage": {
"checked": [
"MX records",
"SPF (syntax, all-qualifier, 10-lookup limit, includes)",
"DMARC (policy, pct, reporting)",
"DNSSEC validation flag"
],
"not_checked": [
"DKIM (pass dkim_selectors; selectors cannot be discovered from DNS)",
"Whether your mail servers accept STARTTLS and present valid certificates",
"BIMI and ARC",
"Actual delivery or spam-folder placement"
]
},
"summary": {
"critical": 0,
"high": 0,
"medium": 2,
"low": 1,
"info": 0,
"unknown": 0
},
"findings": [
{
"id": "fnd_8cf4ade5d9fecb01",
"source": {
"engine": "dns-over-https",
"engine_version": "sec-native/1",
"rule": "dmarc.missing"
},
"asset": {
"type": "domain",
"ref": "brainbacked.com"
},
"identifiers": [],
"references": [],
"limitations": [],
"kind": "misconfiguration",
"title": "No DMARC record: others can send mail that looks like it comes from this domain",
"severity": "medium",
"severity_basis": "rule default",
"confidence": "confirmed",
"basis": "observed",
"evidence": [
"No v=DMARC1 TXT record at _dmarc.brainbacked.com"
],
"remediation": {
"summary": "Publish a DMARC record. Start with p=none and a rua address to collect reports, then move to quarantine or reject.",
"action": "add_record",
"detail": {
"name": "_dmarc.brainbacked.com",
"type": "TXT",
"value": "v=DMARC1; p=none; rua=mailto:dmarc@brainbacked.com"
}
}
},
{
"id": "fnd_e53e5faa475d2688",
"source": {
"engine": "dns-over-https",
"engine_version": "sec-native/1",
"rule": "spf.missing"
},
"asset": {
"type": "domain",
"ref": "brainbacked.com"
},
"identifiers": [],
"references": [],
"limitations": [],
"kind": "misconfiguration",
"title": "No SPF record",
"severity": "medium",
"severity_basis": "rule default",
"confidence": "confirmed",
"basis": "observed",
"evidence": [
"No TXT record starting v=spf1 at brainbacked.com"
],
"remediation": {
"summary": "Publish an SPF record listing the services that send your mail, ending in -all or ~all.",
"action": "add_record",
"detail": {
"name": "brainbacked.com",
"type": "TXT",
"value": null
}
}
},
{
"id": "fnd_a4c023ec12053d0a",
"source": {
"engine": "dns-over-https",
"engine_version": "sec-native/1",
"rule": "dnssec.unsigned"
},
"asset": {
"type": "domain",
"ref": "brainbacked.com"
},
"identifiers": [],
"references": [],
"limitations": [
"Checked through one validating resolver (Cloudflare 1.1.1.1)."
],
"kind": "misconfiguration",
"title": "DNS answers for this domain are not DNSSEC-validated",
"severity": "low",
"severity_basis": "rule default",
"confidence": "high",
"basis": "observed",
"evidence": [
"Resolver did not set the AD (authenticated data) flag"
],
"remediation": {
"summary": "Enable DNSSEC at your DNS host and publish the DS record at your registrar.",
"action": "change_config"
}
}
],
"facts": {
"mx": [],
"dnssec_validated": false,
"spf": [],
"dmarc": []
},
"notice": "Automated checks with stated coverage. A clean result means these checks found nothing, not that the target is secure."
},
"artifacts": [],
"cost_usd": 0.002,
"max_cost_usd": 0.002,
"error": null,
"created_at": "2026-12-04T01:25:00.786Z",
"finished_at": "2026-12-04T01:25:01.178Z",
"duration_ms": 127
}Data and network
Reads public data about the names you give it. Connects only to: cloudflare-dns.com, mta-sts.<domain from input>. Redirects are not followed.
What leaves our servers: cloudflare-dns.com (DNS names queried); mta-sts.<domain> (one GET of the public policy file). Uploaded files and result files are deleted after 7 days. Customer data is never used to train models.
License basis: Our code.