{
  "id": 21906144,
  "title": "Test Email Address Deliverability in Node.js: MX Records, Null MX and the Retry Trap",
  "url": "https://urgent.news/2026/11/26/test-email-address-deliverability-in-node-js-mx-records-null-mx-and",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-26T01:56:38.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/emaildigit/test-email-address-deliverability-in-nodejs-mx-records-null-mx-and-the-retry-trap-19ei"
  },
  "original_language": "en",
  "account": "On Black Friday, users encountered email bouncebacks after submitting sign-up forms. This issue escalated as the weekend progressed, potentially tarnishing the reputation of the sending domain. The recommended approach to test email address deliverability during signup is to examine the domain's DNS records. This straightforward method involves checking if the domain explicitly declares its acceptance of incoming mail.\n\nDNS checks verify if the domain can receive mail at all, addressing concerns such as typos, deceased domains, and domains explicitly refusing mail. However, DNS checks cannot determine whether a specific mailbox, like jane, exists. To validate a mailbox, a double opt-in email is necessary, which also confirms the user's intent to receive communications.\n\nThe source adheres to the rules outlined in the RFCs. The first rule is to prioritize looking up MX records for the domain. According to RFC 5321, section 5.1, if the lookup yields no MX records or encounters a temporary error, the system should proceed to retry the action at a later time. A DNS timeout should not automatically reject a signup.\n\nWhen no MX records are found, the domain is implicitly granted an MX pointing to itself. This allows domains with only A or AAAA records to still accept emails. RFC 7505 specifies a null MX record, denoted by a preference of 0 and an exchange of \".\", signaling that a domain does not accept email.\n\nFurthermore, RFC 5321 sets length limitations for the local part (prior to the @ symbol) and the domain. The local part cannot exceed 64 octets, while the domain itself is limited to 255 octets. The provided Node.js code, comprising around 50 lines and lacking dependencies, implements these checks. It verifies the address's syntax, ensures local and domain lengths comply with RFC 5321, and examines the MX records for the domain.",
  "summary": "Picture it: Black Friday weekend, your signup form is on fire, and somewhere in the flood is jane@gmial.com . Your app cheerfully fires off a welcome email, a receipt and a password reset to a domain that has never received a message in its life. Each one bounces. Multiply that by a busy weekend and your sending reputation starts to look like a fridge after Thanksgiving: technically still…",
  "key_points": [
    "Test email deliverability by examining DNS records for MX records",
    "No MX records in domain implicitly grants MX to domain itself",
    "Node.js code checks syntax, local/domain length, and MX records"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}