[{"data":1,"prerenderedAt":214},["ShallowReactive",2],{"tool-mx-lookup":3},{"id":4,"title":5,"body":6,"description":191,"extension":192,"faq":193,"h1":206,"intro":207,"meta":208,"navigation":209,"path":210,"seo":211,"stem":212,"__hash__":213},"tools\u002Ftools\u002Fmx-lookup.md","MX Lookup: Check MX Records for Any Domain",{"type":7,"value":8,"toc":185},"minimark",[9,14,35,58,62,91,95,101,116,126,132,144,153,159,165,169,181],[10,11,13],"h2",{"id":12},"what-mx-records-are","What MX records are",[15,16,17,18,22,23,26,27,34],"p",{},"An MX record names a server that accepts mail for a domain, with a preference number. When someone sends to ",[19,20,21],"code",{},"you@example.com",", their server looks up the MX records of ",[19,24,25],{},"example.com",", sorts them by preference, and connects to the lowest one on port 25 (",[28,29,33],"a",{"href":30,"rel":31},"https:\u002F\u002Fwww.rfc-editor.org\u002Frfc\u002Frfc5321#section-5.1",[32],"nofollow","RFC 5321, section 5.1",").",[36,37,42],"pre",{"className":38,"code":39,"language":40,"meta":41,"style":41},"language-txt shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","example.com.  MX  10 mx1.example.net.\nexample.com.  MX  20 mx2.example.net.\n","txt","",[19,43,44,52],{"__ignoreMap":41},[45,46,49],"span",{"class":47,"line":48},"line",1,[45,50,51],{},"example.com.  MX  10 mx1.example.net.\n",[45,53,55],{"class":47,"line":54},2,[45,56,57],{},"example.com.  MX  20 mx2.example.net.\n",[10,59,61],{"id":60},"how-to-read-the-result","How to read the result",[63,64,65,73,79,85],"ul",{},[66,67,68,72],"li",{},[69,70,71],"strong",{},"Priority",": lowest first. Equal numbers share load.",[66,74,75,78],{},[69,76,77],{},"Host",": the exchange name, with a note under it when it does not resolve or is a CNAME.",[66,80,81,84],{},[69,82,83],{},"IPv4 \u002F IPv6",": the A and AAAA records of each host, which are the addresses senders actually connect to.",[66,86,87,90],{},[69,88,89],{},"Provider",": a guess from the hostnames (Google Workspace, Microsoft 365 and others), so you can tell who handles inbound mail.",[10,92,94],{"id":93},"common-failures-and-how-to-fix-them","Common failures and how to fix them",[15,96,97,100],{},[69,98,99],{},"MX host does not resolve."," The MX points at a name with no A or AAAA record, usually a typo or a server that was retired. Senders skip it. Fix the name, or add the address record:",[36,102,104],{"className":38,"code":103,"language":40,"meta":41,"style":41},"example.com.       MX  10 mail.example.com.\nmail.example.com.  A   192.0.2.25\n",[19,105,106,111],{"__ignoreMap":41},[45,107,108],{"class":47,"line":48},[45,109,110],{},"example.com.       MX  10 mail.example.com.\n",[45,112,113],{"class":47,"line":54},[45,114,115],{},"mail.example.com.  A   192.0.2.25\n",[15,117,118,121,122,125],{},[69,119,120],{},"MX points at an IP address."," ",[19,123,124],{},"example.com. MX 10 192.0.2.25"," is invalid. Create a hostname with an A record and point the MX at the hostname.",[15,127,128,131],{},[69,129,130],{},"MX points at a CNAME."," Not allowed by RFC 2181. Most large senders cope, but some smaller MTAs do not. Use the canonical hostname.",[15,133,134,137,138,143],{},[69,135,136],{},"No MX at all."," Mail still gets delivered to the domain's A record, which is usually a web server that does not run SMTP, so senders keep retrying for days before they bounce. If the domain does not receive mail, publish a null MX (",[28,139,142],{"href":140,"rel":141},"https:\u002F\u002Fwww.rfc-editor.org\u002Frfc\u002Frfc7505",[32],"RFC 7505","):",[36,145,147],{"className":38,"code":146,"language":40,"meta":41,"style":41},"example.com.  MX  0 .\n",[19,148,149],{"__ignoreMap":41},[45,150,151],{"class":47,"line":48},[45,152,146],{},[15,154,155,158],{},[69,156,157],{},"Null MX mixed with real records."," A null MX has to be the only MX record. Remove one or the other.",[15,160,161,164],{},[69,162,163],{},"Leftover records after a migration."," Old provider MX records with a lower number than the new ones send mail to a mailbox nobody reads. Remove them once the TTL has passed.",[10,166,168],{"id":167},"mx-for-test-and-sandbox-domains","MX for test and sandbox domains",[15,170,171,172,175,176,180],{},"For staging and CI you rarely want real mailboxes. Point a dedicated subdomain's MX at ",[19,173,174],{},"mx.smtp.dev"," and every message to it lands in an inbox you can read over IMAP, POP3 or the API. See ",[28,177,179],{"href":178},"\u002Fdocs\u002Fsetup\u002Fdomain\u002F","domain setup",".",[182,183,184],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":41,"searchDepth":54,"depth":54,"links":186},[187,188,189,190],{"id":12,"depth":54,"text":13},{"id":60,"depth":54,"text":61},{"id":93,"depth":54,"text":94},{"id":167,"depth":54,"text":168},"Free MX lookup. List a domain's MX records in priority order, resolve each mail server to IPv4 and IPv6, and catch null MX, CNAME and IP-address mistakes.","md",[194,197,200,203],{"question":195,"answer":196},"What does the MX priority number mean?","Lower numbers are tried first. Senders try the lowest preference, and move to the next one only if that host does not answer. Records with the same number share the load in random order.",{"question":198,"answer":199},"What happens if a domain has no MX record?","Senders fall back to the domain's A or AAAA record and try to deliver there (an implicit MX). If the domain should never receive mail, publish a null MX instead, so senders bounce immediately.",{"question":201,"answer":202},"Can an MX record point to an IP address or a CNAME?","No to IP addresses: an MX must name a host, which then has A or AAAA records. A CNAME target is not allowed by the DNS standards either. Many senders follow it anyway, but some do not, so point the MX at the final hostname.",{"question":204,"answer":205},"How long do MX changes take?","Resolvers cache the old records until their TTL runs out. Lower the TTL a day before you migrate, change the records, and keep the old server accepting mail until the old TTL has passed.","MX record lookup","Enter a domain to see where its mail goes. The MX lookup lists the MX records in the order senders try them and resolves each host to its A and AAAA addresses.",{},true,"\u002Ftools\u002Fmx-lookup",{"title":5,"description":191},"tools\u002Fmx-lookup","jgpT-LGKWCTVu-boo_SP_MRs8U6yLo3kcddTu_3jnss",1795555758712]