Skip to main content
Guides/Email Security

DKIM Check: Understand and Use the Results

Discover and validate DKIM signing keys

EdgeDNS Team·Updated ·6 min read

DKIM: the wax-seal signature on every email you send

DKIM (DomainKeys Identified Mail) is a way of attaching a tamper-proof digital signature to every email message you send. The signature proves two things at the same time: that the message really came from your domain, and that it has not been changed in transit between your sending server and the recipient's inbox. Think of it as the wax seal on an old letter — if the seal is unbroken when the letter arrives, the recipient can be confident that nobody opened the envelope along the way and that the sender is who they claim to be. DKIM was created in 2007 (RFC 6376) by combining two earlier signing standards from Yahoo and Cisco, and it is now part of every serious email-authentication setup.

You should care because DKIM is the only one of the three email-authentication standards that actually proves the message itself was not modified in transit. SPF only proves that the sending server was authorized; it says nothing about whether the message body or headers were changed along the way. DKIM closes that gap with cryptography. Without DKIM, an attacker who could intercept your email could change the contents — replacing a wire-transfer instruction, swapping out a link, modifying an attachment — and the receiving server would have no way to detect the tampering.

The five things every DKIM check looks at:

  • Is a DKIM key published in DNS? DKIM public keys live in DNS as TXT records at a special location: `selector._domainkey.example.com`. The "selector" lets you have multiple keys at once.

  • Is the key the right length? Modern recommendations are 2048-bit RSA keys at minimum. 1024-bit keys are now considered weak.

  • Are outgoing messages actually being signed with that key? A published key with no actual signing means you have the appearance of DKIM with none of the protection.

  • Does the signature verify against the message body? This is what proves the message was not modified in transit.

  • Does the signing domain align with the visible From: address? This is the DKIM half of the DMARC alignment check, and it is the most common subtle failure mode.

Three questions a DKIM check answers:

  • Are my outgoing emails being properly signed by my email provider?

  • Has the signature key been rotated recently — and if so, did the new key get published correctly?

  • Is my DKIM signature aligning with my From: domain so that DMARC will accept it?

The cost of skipping DKIM is the absence of cryptographic proof that your messages haven't been tampered with — and the inability to use DMARC effectively, since DMARC depends on either SPF or DKIM passing alignment. The fix is usually a one-time setup with your email provider (Google Workspace, Microsoft 365, SendGrid, Mailchimp, etc.) and then a periodic check that the signing is still active and the key has been rotated on schedule.

The DKIM Check endpoint, in plain language

Discover and validate DKIM (DomainKeys Identified Mail) signing keys

DKIM (DomainKeys Identified Mail) provides cryptographic proof that an email hasn't been modified in transit (RFC (Request for Comments) 6376). It's required for DMARC (Domain-based Message Authentication, Reporting and Conformance) alignment and directly impacts email deliverability. RSA 1024-bit keys are now considered weak per RFC 8301 — 2048-bit RSA is the industry standard minimum, with Ed25519 (RFC 8463) as the recommended next-generation algorithm. Google, Yahoo, and Microsoft mandate DKIM signing for bulk senders (5,000+ emails/day) as of 2024-2025. Selector discovery also reveals which email services a domain uses — valuable for security assessments and competitive intelligence.

What is actually happening when you call it

Tests 30+ common DKIM (DomainKeys Identified Mail) selectors (google, default, selector1, selector2, k1, s1, s2, mail, DKIM, zoho, fm1, fm2, fm3, mimecast, proofpoint, mandrill, ses, smtpapi, sf1, sf2, hs1, hs2, pm, etc.) by querying <selector>._domainkey.<domain> TXT records. For each discovered key, validates the DKIM record format (v=DKIM1), identifies the key algorithm (k=rsa or k=ed25519 per RFC (Request for Comments) 8463), estimates key length (RSA key lengths are estimated from base64-encoded public key size; Ed25519 keys are always exactly 256 bits), parses hash algorithms (h= tag), service type (s= tag), and testing flags (t=y), detects revoked keys (empty p= tag indicating key rotation), warns about multiple DKIM records at the same selector, and identifies dual-signing setups. Returns a security score (0-100) with recommendations for key strength, rotation practices, and migration to Ed25519.

Why this specific tool matters

Choose a task: Email Authentication Setup Verification. After configuring DKIM (DomainKeys Identified Mail) for a new email service (Microsoft 365, Google Workspace, SendGrid), verify the DNS (Domain Name System) record is published and properly formatted.

Run the DKIM Check request below and retain the input and observed result. Before changing configuration, compare the relevant fields with the value or policy you expected. Use the DKIM Check reference to check the field definitions and supported options.

Info:

Available on the developer plan. The technical details: `GET /v1/security/dkim`.

When would I actually use this?

Email Authentication Setup Verification

After configuring DKIM (DomainKeys Identified Mail) for a new email service (Microsoft 365, Google Workspace, SendGrid), verify the DNS (Domain Name System) record is published and properly formatted.

Use the finding: Confirm DKIM (DomainKeys Identified Mail) is correctly configured before sending production email.

Key Rotation Verification

During DKIM (DomainKeys Identified Mail) key rotation, verify both old and new keys are published before switching. Confirm old keys are revoked after rotation.

Use the finding: Ensure seamless key rotation without email delivery disruption.

Email Infrastructure Discovery

Discover which email services a domain uses by finding their DKIM (DomainKeys Identified Mail) selectors (e.g., "google" for Gmail, "selector1" for Microsoft 365, "k1" for Mailchimp).

Use the finding: Map email infrastructure for security assessments or competitive analysis.

Key Strength Assessment

Verify DKIM (DomainKeys Identified Mail) key lengths meet minimum requirements (RSA 2048-bit recommended by M3AAWG) and identify any legacy 1024-bit keys that need upgrading.

Use the finding: Ensure cryptographic key strength meets current security standards.

The easiest way: just ask your AI assistant

Connect the MCP server. Just ask in plain English:

Use security_dkim with domain=google.com. Show the returned findings, identify unavailable evidence, and explain a useful next check.

Confirm the tool and inputs in the client before accepting its summary. For DKIM Check, use the response fields below to separate observations from recommendations.

Tip:

The dedicated MCP server is available on every plan. Individual tool access and request limits depend on your plan. Management categories and endpoints disabled for the tool catalog are not exposed through MCP.

The technical way: call it from code

This DKIM Check request uses the example inputs from its API contract. Replace YOUR_API_KEY with a key on the developer plan or higher; adapt the target to your task.

bash
curl --request GET 'https://api.edgedns.dev/v1/security/dkim?domain=google.com' \
  --header "Authorization: Bearer YOUR_API_KEY"

Prepare inputs for DKIM Check

Start with the inputs below. Keep the same hostname, path, and options when comparing DKIM Check observations. The API reference contains the complete parameter contract, optional settings, and access requirements.

FieldTypeRequired?What it meansExample

domain

string

Yes

The domain to check DKIM (DomainKeys Identified Mail) records for

google.com

Interpret DKIM Check findings

Read these fields alongside the full response from your DKIM Check check. A missing value or failed lookup is different from a passing result. Keep returned errors and confidence or cache metadata when available; do not replace missing evidence with a successful default. See the complete response reference for additional fields.

FieldTypeWhat you'll see in it

domain

string

The queried domain

dkim.found

boolean

Whether any DKIM (DomainKeys Identified Mail) records were found

dkim.selectors_checked

array

All selectors that were probed

Words you might be wondering about

DNS (Domain Name System) — The internet's address book. When you type a website name, DNS turns it into the actual numeric address computers use to find each other.

DKIM (DomainKeys Identified Mail) — A digital signature added to every email you send. The receiving mail server checks the signature to make sure the message really came from you and was not changed in transit.

DMARC (Domain-based Message Authentication, Reporting and Conformance) — An email rulebook you publish in your DNS. It tells receiving servers what to do with email that fails SPF or DKIM checks — ignore it, send it to spam, or block it entirely.

RFC (Request for Comments) — The official internet standards documents. When someone says 'RFC 8484' they mean a specific numbered standards document — in that case, the one defining DNS over HTTPS.

Need Programmatic Access?

Automate domain intelligence with 100+ API endpoints and a free MCP server for AI integration.

DKIM Check: Results Guide | EdgeDNS