Suped

What are the best practices for SPF records and avoiding CNAMES for email authentication?

Summary

Establishing proper SPF (Sender Policy Framework) records is fundamental for email authentication and deliverability, yet complexities like CNAME usage can introduce significant vulnerabilities. Recent incidents highlight how hijacked subdomains, even those with seemingly valid SPF, DKIM, and DMARC records, can be exploited for massive spam campaigns. This underscores the need for vigilant management of DNS records and a careful approach to SPF configuration, especially concerning CNAMEs.

Suped DMARC monitor
Free forever, no credit card required
Get started for free
Trusted by teams securing millions of inboxes
Company logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logo

What email marketers say

Email marketers often grapple with the technicalities of SPF records and CNAMEs, balancing ease of setup with security. Recent revelations about hijacked subdomains and email authentication bypasses have brought these concerns to the forefront, prompting marketers to reconsider conventional practices and seek more robust solutions for domain protection and deliverability.

Marketer view

Email marketer from Email Geeks warns that it's shocking how easily subdomains can be hijacked for spam campaigns, even passing SPF, DKIM, and DMARC. Brands, regardless of size, often don't realize the importance of constantly updated DNS records. This highlights a critical knowledge gap in email security.

27 Feb 2024 - Email Geeks

Marketer view

Marketer from Mxtoolbox forum suggests that many email deliverability issues stem from overlooked DNS configurations, especially SPF records. A common mistake is not keeping records current with all sending sources, leading to legitimate emails failing authentication and potentially going to the spam folder.

15 Jan 2024 - Mxtoolbox

What the experts say

Email deliverability experts consistently advocate for meticulous SPF record management and caution against CNAME use due to emerging threats. They highlight the sophisticated tactics employed by bad actors to bypass authentication protocols, emphasizing that DMARC, while powerful, is not a complete panacea. The focus for experts is on secure, direct configurations and continuous vigilance against evolving spam techniques.

Expert view

Deliverability Expert from Email Geeks indicates that she has been advising against the use of CNAMEs for SPF for years, even without direct evidence of problems, because it felt like an inherent risk. This recent news confirms those suspicions, revealing the extent of the vulnerabilities. Providers often opt for CNAMEs due to ease of management, reducing the burden of updates on their clients.

29 Feb 2024 - Email Geeks

Expert view

Email Deliverability Expert from Word to the Wise explains that a single SPF record should ideally be the only one for a domain, as multiple SPF records cause validation errors. Consolidating all legitimate sending sources into one record is a critical best practice to ensure proper authentication and prevent deliverability issues.

10 Apr 2024 - Word to the Wise

What the documentation says

Official documentation and technical guides provide clear mandates for SPF record configuration, emphasizing adherence to standards like DNS lookup limits and character restrictions. They highlight the primary role of SPF in preventing email spoofing and underscore the importance of explicitly authorizing all sending IP addresses. While CNAMEs are a general DNS record type, their interaction with SPF requires careful consideration to avoid authentication failures.

Technical article

AutoSPF blog states that listing only authorized IP addresses and servers in an SPF record is crucial. Failing to do so can lead to spoofing and Business Email Compromise (BEC) attacks, and may even cause legitimate emails to be blocked by receiving mail servers, impacting deliverability.

20 Feb 2024 - AutoSPF

Technical article

MailerSend blog specifies that SPF records must not exceed 10 DNS lookups to avoid email authentication failure. This limit, defined by RFC 7208, is critical. Exceeding it will result in a PermError, meaning receiving servers will treat the SPF record as invalid and likely reject or quarantine the email.

15 Mar 2024 - MailerSend

12 resources

Start improving your email deliverability today

Get started