< Back to blog

SPF, DKIM, and DMARC Explained: How Email Authentication Actually Works

A practical guide to SPF, DKIM, DMARC, alignment, Gmail sender requirements, verification, and troubleshooting.
SPF, DKIM, and DMARC Explained: How Email Authentication Actually Works

SPF authorizes sending infrastructure, DKIM adds a verifiable signature, and DMARC checks whether either authenticated domain aligns with the address recipients see in the From header. Together, they reduce domain-spoofing risk and help receivers evaluate mail. They do not prove that an address is valid, establish recipient consent, or determine inbox placement.

The practical goal is not to publish three records and assume the job is finished. It is to inventory every legitimate sender, configure SPF and DKIM correctly, introduce DMARC reporting, verify alignment, and keep monitoring as infrastructure changes.

SPF, DKIM, and DMARC at a glance

Each protocol answers a different question. On smaller screens, swipe horizontally to compare all columns.

Protocol Question it answers Identity it evaluates What it does not prove
SPF Is this server authorized to use the envelope domain? The SMTP MAIL FROM or HELO identity. That the visible From domain matches or that the message is wanted.
DKIM Does the cryptographic signature validate for the signing domain? The domain in the DKIM d= tag. That the signer is the visible author or that every forwarding path preserves the signature.
DMARC Does SPF or DKIM pass and align with the visible From domain? The RFC 5322 From domain compared with SPF and DKIM identifiers. That the recipient wants the message or that the message will reach the inbox.

Configure email authentication in the right order

  1. Inventory every legitimate sender. Include your mailbox provider, marketing platform, CRM, support desk, transactional service, website forms, and any system that sends with your domain.
  2. Publish and verify SPF. Authorize only the infrastructure that uses the relevant envelope domain. Maintain one SPF record per domain rather than publishing competing records.
  3. Enable DKIM for each sending service. Use the selector and DNS value supplied by that service, then verify that real messages contain a passing signature for a domain you control.
  4. Publish DMARC in monitoring mode. Start with reporting, inspect legitimate traffic, and fix alignment before asking receivers to quarantine or reject failures.
  5. Increase enforcement deliberately. Move toward a stricter policy only after reports show that approved senders authenticate and align correctly.
  6. Monitor after every infrastructure change. Adding a new sender, changing a return path, or rotating DKIM selectors can alter authentication results.

What SPF checks

SPF is defined in RFC 7208. A domain publishes a DNS TXT record describing which hosts may use that domain in the SMTP envelope. A receiving server compares the connecting host with that policy.

A simple Google Workspace-only example is v=spf1 include:_spf.google.com ~all, but that value is not a universal template. Build the record from the services that actually send for your domain and follow each provider's current instructions.

Common SPF failure points

  • Missing sender: a legitimate platform is absent from the policy.
  • Multiple SPF records: separate records compete instead of forming one valid policy.
  • Too many DNS lookups: SPF evaluation has a limit of ten lookup-causing terms. Nested includes count toward that limit.
  • Wrong identity: SPF passes for the envelope domain while the visible From domain is different. DMARC still needs alignment.

What DKIM checks

DKIM is defined in RFC 6376. The sending system signs selected headers and message content with a private key. The receiver retrieves the corresponding public key from DNS using the signing domain and selector, then verifies the signature.

A valid DKIM signature shows that the signed content has not changed in a way that breaks verification and associates the signature with its d= domain. It does not, by itself, prove that the visible From address belongs to that domain. DMARC supplies that alignment check.

Common DKIM failure points

  • The DNS record is published under the wrong selector or domain.
  • The sender rotates to a new selector before the public key is available.
  • The platform signs with its own domain instead of an aligned domain you control.
  • A relay or forwarding system modifies signed content and invalidates the signature.

What DMARC adds

RFC 9989, published in 2026, is the current DMARC specification. DMARC evaluates the domain in the visible From header against authenticated SPF and DKIM identifiers. At least one mechanism must both pass and align for DMARC to pass.

A monitoring record can look like v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com. Replace the reporting address with a mailbox or reporting service your organization is prepared to operate. Do not publish copied DNS values without checking your domain host and sender configuration.

Alignment is the part most teams miss

Suppose a CRM sends a message with a visible From address at example.com, but SPF authenticates a return-path domain owned by the CRM. SPF can pass while SPF alignment fails. DMARC can still pass if a valid DKIM signature uses an aligned d=example.com domain.

Relaxed alignment allows an authenticated subdomain to align with its organizational domain. Strict alignment requires a closer match. Choose deliberately; stricter is not automatically better if your legitimate sending architecture depends on subdomains.

Gmail requirements depend on sending volume

Google separates requirements for all senders to personal Gmail accounts from requirements for senders near or above 5,000 messages per day. Always verify the current Gmail sender guidelines because enforcement details can change.

Check All senders to personal Gmail About 5,000+ messages per day
Authentication SPF or DKIM. SPF and DKIM, plus DMARC for the sending domain.
DMARC alignment Recommended as part of a complete authentication posture. The direct-mail From domain must align with the SPF or DKIM domain.
Other requirements Valid forward and reverse DNS, TLS, RFC 5322 formatting, and controlled spam rates. The same controls, plus one-click unsubscribe for marketing and subscribed messages.

Google describes bulk-sender classification and enforcement in its sender guidelines FAQ. These requirements apply to mail sent to personal Gmail accounts, not every Google Workspace recipient. Requirements from other mailbox providers may differ.

How to verify the setup

  1. Check DNS visibility. Confirm that the intended SPF, DKIM, and DMARC TXT records resolve from public DNS.
  2. Send a controlled test. Use each legitimate sending platform, not only your primary mailbox provider.
  3. Inspect the original message headers. Review SPF, DKIM, and DMARC results, including the domains that were evaluated.
  4. Confirm alignment. A passing SPF or DKIM result is not enough if neither authenticated domain aligns with the visible From domain.
  5. Read aggregate DMARC reports. Identify unknown senders, approved senders that fail, and changes in traffic before increasing enforcement.
  6. Use Postmaster Tools for Gmail traffic. The Compliance and authentication dashboards can help qualified senders monitor Gmail-specific signals. Low-volume domains may not show complete data.

Troubleshooting matrix

Diagnose the failed layer before changing DNS. A passing result in one column does not cancel a failure in another.

Observed result Likely question Next check
SPF fails Is the sending host authorized for the envelope domain? Inspect the actual return path, the sending IP, all includes, and the DNS lookup count.
DKIM fails Can the receiver verify the signature with the published key? Check the selector, signing domain, DNS value, key rotation, and whether the message changed after signing.
SPF and DKIM pass; DMARC fails Does either authenticated domain align with the visible From domain? Compare From, return-path, and DKIM d= domains under the configured alignment mode.
All three pass; delivery is weak Is the issue outside authentication? Review complaints, consent, content, sending patterns, reputation, list quality, and receiver-specific diagnostics.

Authentication and email verification solve different problems

SPF, DKIM, and DMARC protect sending identity and help receivers evaluate messages. Email verification evaluates an address before sending by checking signals such as syntax and domain or mail-routing availability, with result states and limitations that depend on the validation system.

Email Awesome does not configure SPF, DKIM, or DMARC for your domain, and address verification cannot ensure delivery or inbox placement. Use authentication to protect the domain and email verification as a separate list-quality control. If you are diagnosing domain mail routing, start with an MX record lookup.

Final implementation checklist

  • Every legitimate sending platform is documented.
  • One valid SPF policy covers the intended envelope domain without exceeding evaluation limits.
  • Each sender produces a valid DKIM signature with a known selector.
  • At least one passing mechanism aligns with the visible From domain.
  • DMARC reports are monitored before enforcement increases.
  • Gmail and other mailbox-provider requirements are checked at the source.
  • Authentication, consent, list quality, and deliverability monitoring are treated as separate controls.

Once authentication is stable, use Email Awesome to verify addresses before a campaign and keep address-level results separate from domain-authentication status.

Warm up unlimited inboxes for free

Warm up unlimited inboxes with guided setup based on your usual sending volume—starting at $0.

Free Download
Clean email lists before your next campaign
Clean email lists before your next campaign

Upload a CSV or TXT file and separate valid, invalid, unknown, disposable, and catch-all results before your next campaign.

Free Download

Get

80%

Off

First month on the 2,000-validations plan with code:

FIRSTPURCHASE
Redeem My Code

Frequently Asked Questions

Check the most Frequently Asked Questions

What is SPF, DKIM, and DMARC in simple terms?

Do I need all three: SPF, DKIM, and DMARC?

What is DMARC alignment and why does it fail?

How do I check if my SPF, DKIM, and DMARC are working?

What DMARC policy should I start with?

Latest
Posts

Actionable tips, current trends, and step-by-step guides to help your campaigns move from "delivered" to "adored."

View all posts