Email Not Delivering? Diagnosing Missing or Wrong MX Records
No MX record, a stale one, or an MX pointing at your web host — here's how to find which of the four failures is eating your mail, and fix it.
No MX record, a stale one, or an MX pointing at your web host — here's how to find which of the four failures is eating your mail, and fix it.
Email not delivering to a custom domain rarely announces itself. You send a test message from Gmail to hello@ your own domain and wait for it to land.
It never does. No bounce, no spam folder, nothing — just a quiet nothing that's easy to write off as DNS being DNS.
Days later, Gmail gives up and returns the real answer: the receiving server refused the connection. A typical cause: the domain does have an MX record, but it points at a shared hosting box that stopped running a mail server when the site moved off cPanel.
Meanwhile every dashboard you check says everything is fine.
Before you touch DNS, go find the actual failure text. Not the "message not delivered" summary — the raw SMTP response buried in the expanded details. In Gmail, click the bounce, hit the three dots, choose Show original. What you're looking for is one of these:
| Bounce text | What it usually means |
|---|---|
550 5.1.2 ... does not exist / Domain not found | No MX record, and no usable A record fallback either |
Connection refused / Connection timed out | MX exists, but nothing is listening on port 25 at the target |
5.7.1 Relay access denied | MX is right, but the receiving host doesn't know your domain |
Host or domain name not found. NXDOMAIN | MX points at a hostname that doesn't resolve |
| Silence for 2-3 days, then a delayed NDR | Mail is queuing at the sender, retrying, and slowly dying |
That last row is the cruel one. Sending servers retry for days before giving up, so a broken MX doesn't announce itself — it just quietly delays every message until the sender's queue expires. Which means the first person to tell you your email is broken is usually a customer who thinks you ignored them.
Grab that text. It narrows the search from "DNS somewhere" to one of four specific problems.
dig, or any web DNS lookup tool if you're on a locked-down machineYour DNS dashboard shows what you saved. dig shows what the world actually resolves. Those aren't always the same thing, and the gap between them is where most of these bugs live.
dig MX yourdomain.com +short
Windows, no dig installed:
nslookup -type=MX yourdomain.com
Healthy output looks like this:
10 mail1.justemails.app.
Now run the second command, the one almost everybody skips:
dig A mail1.justemails.app +short
An MX record that points at a hostname with no A record is exactly as useful as no MX record. Senders resolve the target, get nothing back, and bounce with NXDOMAIN. It's easy to re-save the same MX record four times in a row without ever checking whether its target resolves.
Empty output from the first command? You have no MX record. Skip to Step 3.
Almost every "MX record not working" case collapses into one of these.
Shape 1 — There's no MX record at all. RFC 5321 says that when a domain has no MX, senders fall back to its A record and attempt delivery straight to your website's IP. That "implicit MX" fallback goes back to RFC 974 in 1986, when the box serving your website plausibly ran your mail too. In 2026 it means Gmail cheerfully tries to hand your customer's email to a Vercel edge node, a Cloudflare Pages IP, or a shared Apache box — none of which listen on port 25. Bounce, or worse, a three-day silence. Controversial opinion: that fallback should have been retired a decade ago. All it does now is turn a loud, obvious misconfiguration into a silent one.
Shape 2 — The MX points at your web host. Nearly always a leftover. Your registrar or hosting panel auto-created mail.yourdomain.com the day you bought hosting, and it sat there long after you moved mail somewhere else — outliving the plan and the panel. If you're moving mail from several providers onto one host, the guide to consolidating email providers covers cleaning up what the old ones leave behind. A stale record from a real provider migration is a different beast — that's the wrong-server-after-migration case.
Shape 3 — Two providers, one domain. You added your new host's MX but never deleted the old Google Workspace or Zoho entries. Now dig returns four records from two companies. Depending on the priority numbers, mail either goes to the old host or splits between the two whenever records share a priority. Some arrives. Some doesn't. There's no obvious pattern, which is why this one burns entire afternoons — chasing spam filters and SPF alignment and a theory about greylisting, when the fix is deleting two rows.
Shape 4 — The record is right but the zone is wrong. You edited DNS at your registrar while your nameservers point at Cloudflare. Or you added the MX at mail.yourdomain.com instead of @. The record exists, it's perfectly formed, and no resolver on earth will ever serve it. Confirm which zone is live:
dig NS yourdomain.com +short
Whatever comes back is the only DNS panel that matters. Everything else is a text editor with delusions.
Honestly? Shape 4 is the one I'd bet on if you're reading this at 11pm convinced your change didn't save. It saved. It's just in a zone nobody queries.
Open the DNS panel for the nameservers you just confirmed. Delete every MX record that isn't your current mail host — don't leave the old ones sitting at a different priority "as a backup." They aren't a backup. They're a second place for your mail to land where nobody reads it.
For JustEmails, the record looks like this:
| Type | Name | Priority | Value | TTL |
|---|---|---|---|---|
| MX | @ | 10 | mail1.justemails.app | 3600 |
That's the whole record. One host, one row — there is no second MX to add, so if your old provider had you publishing a pair, don't recreate the shape out of habit. Confirm the exact hostname against your JustEmails dashboard before saving — that's the copy that's guaranteed current for your account.
Four rules that catch most people:
@, or blank. Not mail, not mx, not your domain typed out again. If your panel shows the saved record as mail.yourdomain.com, mail addressed to you@yourdomain.com will never route through it.mail1.justemails.app.yourdomain.com, your provider appended the zone because you left the dot off. Add it, or use whatever form the panel's help text specifies.One more, and it's the Cloudflare-specific trap that costs people days: MX records can't be proxied, and their targets mustn't be. If you're on Cloudflare and your mail server's A record has the orange cloud switched on, mail gets routed to Cloudflare's edge — which does HTTP, not SMTP — and dies there. Grey cloud, DNS-only, always, for anything mail touches.
TTL determines how long resolvers cache your old answer. It's also the most abused excuse in DNS support. Set to 86400? Some resolvers will serve the stale record for a full day after you fix it. Set to 300? Minutes.
Check three resolvers rather than trusting one:
# Cloudflare
dig @1.1.1.1 MX yourdomain.com +short
# Google
dig @8.8.8.8 MX yourdomain.com +short
# Whatever your machine uses by default
dig MX yourdomain.com +short
If Cloudflare and Google both show the new record and your ISP doesn't, that's genuine propagation. Wait it out. If none of the three show it once the old record's TTL has run out, stop waiting — you have a Shape 4 problem, and no amount of patience fixes a record in the wrong zone.
Planning a move rather than fixing a live outage? Drop the MX TTL to 300 a full day before you cut over, then raise it back to 3600 once mail is confirmed flowing. That single step shrinks the split-delivery window from "most of a day" to "about five minutes."
DNS looking correct isn't the same as mail arriving. Not close. Send a real test from an external account — Gmail or Outlook, not another address on the same domain, since same-domain mail can shortcut the whole MX lookup and hand you a false pass.
When it arrives, open the raw source and read the Received: chain from the bottom up. You want to see your current mail host in there:
Received: from ... by mail1.justemails.app ...
Your old host's hostname showing up means routing hasn't fully switched. Something's still cached, or you missed a record.
Then send in the other direction and check that outbound authentication passes, because MX only governs inbound. SPF, DKIM, and DMARC decide whether your replies land in an inbox or a junk folder, and a domain that's been dark for a week often has drifted records on that side too — the DMARC enforcement guide covers reading those headers, and the custom domain email setup guide walks the full authentication stack from scratch.
One more thing if the domain has been dark and you're about to clear a backlog: JustEmails is built for people's mail and app mail (password resets, receipts, alerts), not for newsletters, mailing lists or bulk sending. That makes this the wrong afternoon to answer the backlog with a mass send, and if you have newsletter or bulk needs, use a dedicated newsletter or bulk-sending service.
Then set up monitoring, because finding out from a customer is the expensive way. If your mail is on JustEmails, its domain-health monitoring keeps checking your MX, SPF, DKIM and DMARC records after verification and emails you if one changes or disappears.
Everything resolves, mail still bounces with relay denied. DNS is fine; your mail host doesn't recognise the domain. You updated DNS but never finished adding and verifying the domain inside the provider's dashboard. Both halves are required.
Test messages to yourself arrive, real senders bounce. Same-domain delivery skips the public MX lookup. Test from outside or you're testing nothing.
Mail works from Gmail, fails from one company. Their corporate resolver is caching hard, or their gateway is doing something creative with an internal zone that shadows yours. Ask their IT to flush before you touch your own DNS again — the urge to "fix" your side when exactly one sender is affected has caused more outages than it has ever repaired.
Everything worked, then stopped, and nobody touched DNS. Somebody touched DNS. Check your provider's audit log — a registrar "helpfully" re-adding parking records after a renewal is more common than it should be.
One honest caveat before you close the tab: MX fixes only address inbound routing. If your domain has been misconfigured for weeks, senders may have accumulated reputation damage that a correct MX record won't undo. Watch your blacklist status for a couple of weeks after the fix, not just the day of.
Sending servers fall back to the domain's A record and try to deliver mail to your website's IP address. That's the implicit MX rule from RFC 5321. If your site sits on shared hosting or a static host like Vercel or Netlify, nothing there listens on port 25, so mail either bounces with "connection refused" or times out after several days of silent retries.
Run dig MX yourdomain.com +short on Mac or Linux, or nslookup -type=MX yourdomain.com on Windows. You should get back one or more lines with a priority number and a mail server hostname. Empty output means no MX record exists. Then run dig A <that-hostname> +short to confirm the target resolves to a real IP — an MX pointing at a hostname with no A record is functionally identical to having no MX at all.
Lower numbers are tried first, and the exact values don't matter as long as they're distinct — 10 and 20 behave the same as 1 and 2. Trouble starts when two records from two different providers share the same priority. Senders then pick between them at random, so roughly half your mail lands on a host you stopped checking months ago.
Public resolvers like 1.1.1.1 and 8.8.8.8 usually reflect the change within minutes once the old record's TTL expires. A TTL of 3600 means up to an hour, and 86400 means up to a day. If nothing has changed on all three resolvers you test once the old TTL has run out, the record is almost certainly saved in the wrong DNS zone rather than still propagating.
Unlimited custom domain email hosting for $49/year flat — unlimited domains, unlimited mailboxes, 10 GB storage, full IMAP/SMTP. Built for agencies, freelancers, and anyone managing email across more than one domain.
Start your 7-day free trial → · How it compares
Part of Velocity Digital Labs.