Building an effective email allow list (or whitelist) is a critical step in maintaining a clean and engaged subscriber base. While a strict 'do not allow' blocklist is a common starting point, its effectiveness often wanes as new domains emerge. An alternative approach involves leveraging MX records for initial email validation during the signup process, providing a more dynamic and scalable solution than static domain lists. This method focuses on identifying legitimate mail servers to filter out invalid or malicious addresses before they even hit your real-time validation systems. This proactive filtering helps to reduce the burden on your infrastructure and improves the overall quality of your email list, ultimately boosting your deliverability.
Key findings
Dynamic validation: Relying solely on a static allow list (whitelist) of domains is inefficient due to the constant creation of new domains. A more robust strategy involves looking up the Mail Exchanger (MX) records of a domain to determine its legitimacy.
MX record lookup: Instead of compiling an exhaustive list of allowed domains, check if a domain's MX records point to known mail servers of major providers like Microsoft (Outlook), Google (Gmail), or Yahoo. This helps classify the domain as legitimate for email sending and receiving.
Caching for speed: To maintain quick validation speeds during real-time signups, implement a caching mechanism for MX record lookups. MX records do not change frequently, making them suitable for caching for periods of 24 hours to a week.
Typo identification: This method can help identify common typos (e.g., tahoo.com instead of yahoo.com) if their MX records do not align with those of legitimate providers, allowing for immediate rejection or flagging.
Data processing: Effective implementation requires data cleanup, such as lowercasing domains and finding common roots using tools like the Public Suffix List (PSL), to standardize MX record patterns.
Key considerations
Initial filter: While MX record validation is excellent for a first-level filter, it should ideally complement other email verification best practices, such as real-time SMTP validation after submission, for comprehensive email list hygiene.
Domain ownership: The presence of MX records only indicates that a domain can receive email, not necessarily that the specific email address exists or is actively used. Further checks are needed to maintain a clean email list.
Coverage limitations: Even extensive lists of known ISP domains, such as those for Microsoft, AOL, Gmail, and Yahoo (MAGY), can be incomplete due to the vast and ever-changing landscape of domains. A dynamically checked MX record is more reliable than a static domain list, as highlighted by Spam Resource.
Resource intensity: While caching helps, resolving MX records for extremely large datasets (e.g., all of .com, .net, and .org domains) can be a resource-intensive process, potentially taking days or weeks if not optimized.
What email marketers say
Email marketers often face the challenge of managing constantly evolving email lists and preventing bad signups. Their focus is typically on practical solutions that balance efficiency, accuracy, and user experience. While many employ real-time validation after submission, there's a strong desire to strengthen initial filtering mechanisms. The discussion among marketers highlights the limitations of static 'do not allow' blocklists and the potential of MX record lookups as a dynamic first-line defense.
Key opinions
Desire for stronger filtering: Marketers seek to improve their initial filters to avoid validating low-quality or fake email addresses, even when real-time validation is already in place after submission.
Challenges with static lists: Maintaining a comprehensive 'do not allow' blocklist is resource-intensive and requires constant updates due to the rapid creation of new domains, making it difficult to keep pace.
MX lookup for classification: The consensus among practitioners points to looking up a domain's MX records to classify it, rather than trying to maintain a vast list of individual domains for major providers.
Typo recognition: Identifying common typos like tahoo.com is a significant concern, as these make up a notable portion of invalid signups for major providers.
Key considerations
Integration speed: While MX lookups offer a robust validation method, marketers need to ensure the lookup speed is sufficient to not negatively impact the user experience during signup. Caching is crucial for this.
Identifying spam traps: Marketers should be aware that some domains, even if they appear legitimate on the surface (e.g., yahoo.ms), might be spam traps or sensor domains disguised to look like real ones.
Developer involvement: Implementing an MX record-based allow list often requires developer input for DNS lookups, caching, and integrating with existing validation workflows. Organizations like OneSignal emphasize the importance of verifying and validating email addresses pre-send.
Marketer view
Marketer from Email Geeks explains their objective to build an email allow list for initial validation, aiming to strengthen their first-level filter and reduce the validation of garbage submissions, despite already using real-time validation post-submission. They highlight the ongoing effort to maintain a 'do not allow' blocklist, which requires constant updates.
07 Mar 2023 - Email Geeks
Marketer view
Marketer from OneSignal.com states that performing an MX record lookup for a domain helps identify the mail servers responsible for receiving emails, noting that the absence of MX records can be an indicator of an invalid domain.
22 Jul 2023 - Onesignal.com
What the experts say
Email deliverability experts highlight that relying on static lists of domains for allow listing is inherently flawed due to the dynamic nature of the internet and domain ownership. Instead, they advocate for a more sophisticated approach: querying MX records in real-time and caching the results. This method allows for a more accurate and scalable validation process, classifying domains based on the mail servers they point to, which are far more stable than individual domain lists. Experts also delve into the technical nuances of such lookups, including data processing and performance considerations.
Key opinions
MX as the primary classification tool: Experts recommend classifying domains by their MX records. If an MX record points to a known pattern (e.g., Microsoft or Yahoo mail servers), the domain can be safely added to an allow list.
Static lists are futile: Maintaining static lists of all domains associated with major providers is impossible due to thousands of constantly changing domains, making MX lookups the only scalable solution.
Long tail of domains: Approximately 20% of email lists consist of long-tail domains that point to themselves as MX records, while a small number of core MX patterns cover a high percentage of legitimate domains.
Performance through caching: Caching MX lookup results is vital for speed and efficiency, as MX records generally do not change often. Regular, occasional refreshes of cached data are recommended.
Domain vs. MX name: The presence of a provider's name in a domain does not guarantee it's actually hosted by that provider; MX records must be consulted to confirm the actual mail server responsible.
Key considerations
Data resolution scale: Resolving MX records for entire TLDs like .com, .net, and .org is a massive undertaking, potentially requiring days or weeks of processing even with optimized systems, or significant cloud resources like those on AWS Lambda.
Cleanup and standardization: Significant data work is needed, including lowercasing domains, identifying common roots using the Public Suffix List (PSL), and standardizing MX record entries (e.g., treating mx0 and mx1 as the same base.
Identifying suspicious domains: Some domains intentionally mimic major providers (e.g., Yahoo.ms) and can behave like spam traps or sensor domains, requiring careful analysis beyond a simple name check. For more on this, consider resources on why validation services flag domains lacking MX records.
Load balancing: While this article focuses on validation, it's worth noting that MX records also play a role in load balancing incoming emails across multiple servers.
Expert view
Expert from Email Geeks suggests caching MX records because they do not change frequently, making it a safe practice to store them for a period, typically 24 hours to a week, for faster lookups.
07 Mar 2023 - Email Geeks
Expert view
Expert from Spam Resource highlights that trying to maintain a complete list of Microsoft-hosted domains is less effective than checking a domain against known Microsoft MX records to determine if it's an Office 365 domain.
07 Mar 2023 - Spam Resource
What the documentation says
Official documentation from various service providers underscores the fundamental role of MX records in email routing and verification. These resources detail how MX records map a domain to its mail servers, enabling the sending and receiving of emails. They also provide practical guidance on setting up and configuring these records within DNS settings. The consensus from documentation is that MX records are the authoritative source for determining a domain's mail handling capabilities, making them indispensable for any robust email validation strategy.
Key findings
Core function: MX records are essential for directing incoming email to the correct mail servers for a domain, enabling both sending and receiving capabilities.
DNS configuration: Proper email functionality requires creating and configuring MX records within a domain's DNS settings, often alongside an SMTP provider.
Record components: An MX record contains crucial information such as the mail server's hostname, its IP address, and a priority value, especially when multiple mail servers are used for redundancy or load balancing.
Domain verification: MX records are a standard method for domain verification, where existing records are replaced with those provided by an email service or gateway.
Key considerations
Provider-specific instructions: While general principles apply, the specific steps for adding or modifying MX records can vary significantly depending on the domain provider (e.g., Cloudflare, Squarespace, Zoho).
Importance for email deliverability: Correct MX record configuration is foundational for good email deliverability. For more on related technical configurations, see our guide on DNS lookups, SPF records, and subdomain usage.
Impact of CNAMEs: When CNAMEs are used for email sending verification, there are specific considerations for adding MX records to subdomains, as detailed in our article on how to add an MX record to a subdomain.
SMTP provider necessity: Documentation consistently emphasizes the need for an SMTP provider in conjunction with MX records to facilitate email sending and receiving.Cloudflare DNS documentation covers this aspect.
Technical article
Cloudflare DNS docs explain that for a domain to send and receive emails, it is necessary to use an SMTP provider and then configure two specific DNS records, including MX records, within Cloudflare's settings following their outlined steps.
10 Jan 2024 - Cloudflare Docs
Technical article
Barracuda Campus documentation clarifies that to utilize the MX Records method for domain verification, users must replace their existing MX records with the ones provided by the Email Gateway Defense, as displayed on their verification page.