Why Client Emails Land in Spam After DNS Migrations (SPF 10-Lookup Limit, Duplicate DMARC & Cutover Diffing)
Every freelance web developer has lived through this exact horror story: you migrate a client's domain to Cloudflare, the new website loads in 120ms, SSL is green—and 3 hours later the client calls in a panic because their company emails are bouncing or landing straight in Gmail spam . Almost every time, it comes down to one of three silent DNS mistakes that standard HTTP checks never catch. 1.…
Clients often face baffling email deliverability issues after migrating their domains to services like Cloudflare. The root cause frequently lies in subtle DNS errors that automated HTTP checks often overlook. Three common pitfalls are:
1. Accidentally creating duplicate _dmarc or v=spf1 records. Merging them with a comma-separated list resolves the issue as per RFC specifications.
2. Exceeding the recursive SPF 10-lookup limit. A single vendor's include: can lead to recursive DNS lookups that quickly surpass the limit, triggering PermError. Counting lookups carefully before adding new SaaS senders is crucial.
3. Failing to capture a full DNS snapshot before and after DNS migrations. Manual comparison of NS, A, AAAA, MX, SPF, DMARC, DKIM, CAA, and verification TXT records helps spot dropped critical records during name server changes. Automating this comparison with a tool like DNSGuard can prevent such issues.
The author packages all these checks into DNSGuard, a lightweight Python script with no dependencies, offering audits, cutover diffing, and customizable reports.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to