Back to Deliverability Guides
DNS & Security Protocol

The Complete Technical Guide to SPF, DKIM, and DMARC Sending Authentication

DNS Architecture Team Updated: September 2026 8 min read
Advertisement

Why Email Authentication Is Mandatory in 2026

Historically, sender authentication was optional. In 2024, Google and Yahoo jointly enacted mandatory sender guidelines requiring any organization dispatching commercial or bulk email to publish valid SPF, DKIM, and DMARC records. In 2026, emails missing authentication or failing domain alignment are rejected outright with an SMTP 550 5.7.26 error code.

1. Sender Policy Framework (SPF)

SPF specifies which IP addresses or mail relays are authorized to dispatch messages on behalf of your domain name. It is published as a standard DNS TXT record on your root domain:

Host: @ (or yourdomain.com)
Type: TXT
TTL: 3600
Value: v=spf1 +a +mx include:_spf.yourdomain.com ~all

Important rule: A domain must NEVER possess more than one SPF TXT record. Multiple SPF records invalidate authentication completely. Merge all sending servers into one single record.

2. DomainKeys Identified Mail (DKIM)

DKIM adds an asymmetric cryptographic digital signature to every outbound message header. The sending MTA signs the message body using a private key, and the receiving mailbox verifies the signature against the public key published in your DNS.

Host: default._domainkey (or mail._domainkey)
Type: TXT
TTL: 3600
Value: v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...

Ensure your DKIM key uses 2048-bit RSA encryption. 1024-bit keys are considered weak by modern mail filters.

Advertisement

3. DMARC Alignment & Enforcement Policy

DMARC (Domain-based Message Authentication, Reporting, and Conformance) unifies SPF and DKIM. It tells receiving servers what to do if an incoming email claims to be from your domain but fails authentication:

Host: _dmarc
Type: TXT
TTL: 3600
Value: v=DMARC1; p=quarantine; sp=quarantine; pct=100; rua=mailto:[email protected]

DMARC Policy Stages:

  • p=none: Monitoring mode. Messages are delivered, and reports are sent to your rua address.
  • p=quarantine: Unauthenticated messages are directed to spam. (Recommended for active outreach domains).
  • p=reject: Unauthenticated messages are rejected at the gateway.

4. Testing Your DNS Authentication

After updating your DNS records, allow up to 60 minutes for global TTL propagation. You can verify your SPF, DKIM, and DMARC alignment using standard CLI tools:

dig TXT yourdomain.com +short
dig TXT default._domainkey.yourdomain.com +short
dig TXT _dmarc.yourdomain.com +short
Advertisement