← Articles · Network & Email Security · 2026-08-22 · 7 min read

Common SPF, DMARC, and DKIM Misconfigurations in Email Security

Analyzing spoofing vectors caused by weak SPF qualifiers, RFC 7208 10-DNS-lookup limits, and unaligned DMARC policies.

  • SPF
  • DMARC
  • DKIM
  • DNS Security

# Why SPF Alone Cannot Prevent Domain Spoofing

SPF validates only the SMTP envelope MAIL FROM address, leaving the visible Header From address unprotected. Without DMARC alignment and cryptographic DKIM signatures, attackers can still craft convincing spoofed emails.

# Four Frequent Configuration Pitfalls

During authorized email security assessments, these four issues appear repeatedly:

  • Using +all or ?all: Effectively permits arbitrary servers to relay email on behalf of the domain.
  • Exceeding the RFC 7208 10-DNS-lookup cap: Nested include chains above 10 queries trigger SPF PermError.
  • Leaving DMARC at p=none: Collects aggregate telemetry without blocking spoofed messages.
  • Omitting subdomain policies (sp=): Allows spoofing through unused subdomains even when the root uses p=reject.

# Hardened Baseline DNS Configuration

Once all legitimate mail senders are verified, enforce strict alignment and rejection policies:

TERMINAL / CODE
TXT @      "v=spf1 include:_spf.google.com -all"
TXT _dmarc "v=DMARC1; p=reject; sp=reject; pct=100; aspf=s; adkim=s; rua=mailto:[email protected]"