Facebook tracking pixel

MailGenius

MX Record Setup: A Guide to Flawless Email Delivery

You've got campaigns ready to send, leads coming in, and a team waiting on replies. Then inboxes go quiet. Sales says prospects never answered. Support says customers aren't receiving updates. Your marketing automation looks fine, but the problem isn't the copy or the sequence. It's DNS.

MX record setup is one of those tasks people treat like a checkbox. That's a mistake. If your MX records are wrong, email systems don't know where to deliver incoming mail for your domain. And in a deliverability environment shaped by stricter authentication and AI-driven filtering, a merely “good enough” setup can still create problems.

Most internet guides stop at “add these values and save.” That's how people end up with broken routing, legacy records still active, or a technically valid setup that still hurts trust. The better approach is simple: configure MX records cleanly, verify them, and make sure the setup matches how mailbox providers now evaluate sender behavior.

Why Your MX Record Setup Can Make or Break Your Business

A common failure point shows up right after a domain or mailbox migration. The website works. Outbound campaigns go live. Then replies never reach the team, support mail disappears, and no one notices until revenue is already affected.

I treat MX records as core business infrastructure for that reason. If inbound mail is part of sales, support, onboarding, or account recovery, your MX setup directly affects whether real conversations reach your team.

What an MX record actually does

An MX record tells other mail servers where to deliver email for your domain. It is the DNS record that points inbound mail to the provider responsible for receiving it.

When someone sends a message to your company, their server looks up your MX records before it attempts delivery. If the record is missing, still points to a previous provider, or conflicts with another mail system, mail can bounce, queue, or land in the wrong place.

Practical rule: If email touches revenue or customer experience, review MX records with the same care you give payment processing or CRM routing.

MX mistakes are common enough that standards bodies and major mailbox providers keep publishing guidance on how often DNS misconfiguration breaks mail flow. For example, Google's email sender guidelines explicitly call out correct DNS and authentication setup as part of reliable delivery.

Why this matters more now

Older MX advice treated this as a one-time DNS chore. Add the records, save, and move on.

That approach falls short now.

Mailbox providers and secure email gateways evaluate more than basic validity. They look for a domain that behaves like a legitimate sender and receiver across its DNS footprint. That includes whether your MX records align with the provider handling your mail, whether old infrastructure is still exposed, and whether your authentication setup matches the way your domain presents itself. AI-driven filtering systems are especially good at spotting patterns that look off. A domain with stale or inconsistent MX records can create reputation friction even before a human notices a delivery problem.

The reason this matters is that DMARC reporting and policy enforcement depend on your domain being configured correctly. If your inbound and authentication setup send mixed signals, mailbox providers have less reason to trust the domain behind your campaigns and replies.

For a marketer, the impact is concrete:

  • Inbound revenue gets lost: Replies to campaigns, demo requests, and referral intros fail or go missing.
  • Operations break without detection: Password resets, renewal notices, and support conversations stop reaching the right mailbox.
  • Reputation suffers: AI-based filters see infrastructure mismatches as risk, especially during migrations or provider changes.

A clean MX setup gives mailbox providers a consistent story about your domain. It says where mail belongs, which provider is responsible, and whether the rest of your DNS supports that claim. That consistency helps protect inbox placement, not just mail routing.

If your domain sends and receives important email, MX setup is not a box to check once. It is part of ongoing deliverability management.

The Non-Negotiable Rules of MX Records

One wrong MX entry can leave a domain looking sloppy to both mail servers and modern spam filters. The mail may still route in some cases, but inconsistent DNS is exactly the kind of signal AI-based filtering systems use when they score domain trust. That is why these rules need to be followed exactly.

An infographic titled The Non-Negotiable Rules of MX Records listing key guidelines and mistakes to avoid.

Use a hostname, never an IP address or alias

An MX record must point to a mail server hostname.

It cannot point directly to an IP address. It also cannot point to a CNAME alias. That requirement comes from the DNS standard itself. RFC 2181 states that the value used for an MX record must not be an alias, because mail exchangers are expected to point to canonical hostnames with address records behind them.

Here is the practical version:

  • Correct target: a mail server hostname supplied by your provider
  • Wrong target: a raw IP address
  • Also wrong: a CNAME standing in for the mail host

This mistake shows up a lot during rushed migrations. A team tries to simplify DNS, adds an alias, and assumes mail will follow it. Sometimes delivery fails outright. Sometimes the failure is inconsistent, which is worse, because it creates intermittent bounces, delayed replies, and a domain profile that looks unstable to filtering systems.

Priority is part of the routing logic

The priority number tells other mail servers which destination to try first. Lower number means higher priority.

If you only have one receiving service, the number is still part of a clean setup. If you have multiple MX records, the order needs to reflect your actual mail flow. Otherwise you can end up with backup infrastructure receiving production mail, or old systems getting traffic they should not see anymore.

A practical setup usually looks like this:

Use case Priority approach
Primary receiving server Lower number
Backup receiving server Higher number
Multiple active destinations Use only if your provider explicitly supports it

If you want a plain-English breakdown of how preference order works, this guide helps you understand MX server priority.

TTL affects how long mistakes stick around

TTL controls how long other systems cache your MX record before checking again.

For a new setup or provider change, 3600 seconds is usually a sensible middle ground. It is short enough to help changes propagate in a reasonable window, but not so short that you create unnecessary DNS chatter. Very high TTL values make cleanup slower. Very low values can add noise without giving you much operational benefit.

I usually care less about the exact TTL than whether the team remembered to lower it before a migration and raise it again after the change is stable.

A good MX setup is easy to verify, matches the provider actually handling mail, and stays consistent with the rest of your DNS.

Use the right host field

The host or name field trips up a lot of marketing teams because registrars label it differently.

  • Root domain mail: leave the field blank or use @
  • Subdomain mail: enter only the subdomain label
  • Provider target: paste the exact destination hostname your mail provider gives you

Formatting errors here are small, but the consequences are not. If the record is created on the wrong label, you can end up with mail for the root domain going nowhere while the DNS panel still looks "close enough" to a non-technical reviewer. That kind of near-miss is dangerous because it can survive for weeks before anyone catches it.

A Practical Guide to MX Record Setup

Monday morning. A prospect replies to your campaign, but the message never reaches your team because half the domain is still pointing at the old mail system. Sales blames outreach. Marketing blames copy. The core issue is DNS.

MX setup has to be exact. Mailbox providers and AI-driven filters look for consistency across your domain, infrastructure, and sending behavior. If your MX records point one way while the rest of your mail footprint points another, that mismatch can hurt trust before your message is even evaluated for content.

A person typing on a silver laptop at a wooden desk with a notebook and plant.

Start by removing legacy MX records

The cleanest setup is the safest one. If you leave old MX records in place during a migration, you create split delivery, mail loops, or silent failures where replies land in the wrong inbox.

That is why the first job is not adding the new provider. It is checking every existing MX record and removing anything tied to the previous provider.

Open your DNS manager. Compare the live MX entries against the provider currently handling inbound mail. If a record still points to the old system, delete it. Do not keep it there "just in case." In practice, that fallback idea causes more problems than it prevents.

The setup flow that works

Use this order:

  1. Log in to your DNS host
    This is the company managing your DNS zone, such as Cloudflare, GoDaddy, Namecheap, or Route 53.

  2. Open the correct domain zone
    Find the DNS settings for the exact domain receiving mail.

  3. Review all existing MX records
    Look for leftovers from a prior provider or test environment.

  4. Delete outdated MX records
    Keep only the provider you actively use for inbound mail.

  5. Add the new MX values exactly as provided
    Enter the right host, destination, and priority. If you need a refresher, understand MX server priority.

  6. Set a practical TTL
    One hour is a solid default for many setups during rollout.

The failure I see most often is not a typo. It is a domain trying to receive mail through two systems at once.

What this looks like in common DNS panels

Registrars use different field names, but the decisions are the same.

GoDaddy

GoDaddy usually shows Type, Name, Value, and TTL.
For root-domain mail, the name is usually @.

Cloudflare

Cloudflare uses Type, Name, Mail server, Priority, and TTL.
The panel is straightforward, but teams still leave stale records behind after a migration.

Namecheap

Namecheap may label fields as Host, Value, Priority, and TTL.
For a subdomain, enter only the subdomain label in the host field.

A walkthrough can help if you want to see the process in action:

Example MX records for common email providers

Provider Points To Address (Value) Priority
Google Workspace smtp.google.com. 1
Microsoft 365 *.mail.protection.outlook.com Use the priority specified by Microsoft for your tenant

For Google Workspace, use the exact destination value shown in your admin setup, set the root host to blank or @ if you are receiving mail at the root domain, and match the priority your account expects. Some registrars also require the trailing period on the destination hostname. Small formatting differences matter here.

If your Google Workspace account is older, the MX target can differ from newer examples you see online. Always use the values tied to your specific tenant. Copying a screenshot from another blog is how domains end up with valid-looking records that do not match the environment receiving mail.

One advanced point marketers usually miss

A technically correct MX record is only part of the picture. Modern mailbox providers use machine learning to evaluate domain reputation patterns, and they do not view your MX records in isolation.

If your MX points to one provider, your authentication points to another, and your sending activity comes from a third setup that was never aligned, that creates operational noise. It does not guarantee spam placement, but it gives filters more reasons to treat the domain cautiously.

The fix is simple. Keep inbound routing, authentication, and sending infrastructure aligned to the provider stack you use. Clean DNS gets mail accepted. Aligned DNS helps keep it trusted.

Verify Your Setup and Test Your Deliverability

Saving the record in DNS isn't the finish line. Verification is.

The first check is simple. Look up the domain's MX records and confirm that the active values match the provider you intended to use. You can do that with common DNS lookup tools or command-line utilities that return the MX response for your domain.

What you're verifying

You're checking for a few things:

  • Only the intended provider appears
    No leftovers from an older platform.

  • The host field is correct
    Root domain mail should point at the root, not an accidental subdomain.

  • Priority values make sense
    The preferred destination should be the lowest-numbered record.

  • The provider target is properly formatted
    Especially if your registrar expects a trailing period.

Screenshot from https://mailgenius.com

Propagation is only part of the story

A DNS checker can tell you whether the record exists. It can't tell you whether your full mail setup will behave well with mailbox providers.

That's why after MX changes, the smarter move is to run a real deliverability test. A tool such as MailGenius can simulate how providers evaluate your message, including authentication and other factors that influence inbox placement. If you want a focused deliverability check, run a free inbox placement test.

DNS validation tells you the record is present. Deliverability testing tells you whether the setup is actually helping you reach the inbox.

What a real-world test catches

A proper spam test can reveal issues that a basic MX lookup won't show clearly, such as:

  • authentication gaps
  • formatting issues in the message itself
  • domain or link reputation problems
  • mismatches between your infrastructure and what mailbox providers expect

This is the part many teams skip. They confirm the DNS record exists, then assume deliverability is solved. It isn't. DNS is foundational, but mailbox placement depends on the full picture.

If you changed providers, added a new domain, or cleaned up old records, send a test before sending a campaign to real contacts. It's a much cheaper mistake to catch with a test than with a launch.

Beyond MX Records for Bulletproof Deliverability

A clean MX setup gets your domain taken seriously, but it does not finish the job. Mailbox providers now score domains by looking for consistency across routing, authentication, and sending behavior. If those signals conflict, AI-based filtering can treat your domain as unstable, even when the MX record itself is valid.

That is why I never treat MX as a one-time DNS checkbox. It has to match the rest of the identity stack your domain presents.

A pyramid diagram showing email deliverability layers including MX records, SPF, DKIM, and DMARC authentication protocols.

Why authentication now sits closer to the center of deliverability

MX records control where inbound mail goes. SPF states which servers can send for your domain. DKIM signs the message so providers can verify it was not altered. DMARC ties those checks to your domain and tells receiving systems how to handle failures.

That relationship matters more than it used to. Large mailbox providers expect domains to publish and maintain authentication records, and many major brands now do. Valimail reported in its 2023 research on DMARC adoption that about 90% of the world's largest companies had implemented DMARC at some level, a sharp increase from earlier years, according to Valimail's DMARC adoption research.

Here is the practical takeaway. If your MX points one direction, your return-path points another, and your DKIM signing domain tells a third story, filters see friction. That friction can hurt inbox placement long before you spot a hard failure.

The practical stack to review

After MX is set correctly, review the full stack as one system:

Layer What it does Why it matters
MX Routes inbound mail Shows where receiving mail for the domain should go
SPF Authorizes sending servers Limits which infrastructure may send on your behalf
DKIM Adds a signature Verifies message integrity and ties mail to a domain
DMARC Applies policy and reporting Aligns SPF and DKIM with your domain and gives you failure visibility

If you want to check the authentication side after cleaning up MX, use an SPF and DKIM checker.

The trade-off is simple. Strict alignment reduces ambiguity, but it also exposes sloppy setups fast. If a team has old vendors still sending, a DMARC policy will surface that problem instead of hiding it. That is a good thing. It is easier to fix known infrastructure than recover a domain that has trained filters to distrust it.

One overlooked configuration for domains that don't receive mail

Some domains should never accept email at all. Campaign domains, tracking domains, parked brand domains, and pre-launch microsites are common examples.

For those, a Null MX record is often the right call. It explicitly tells other mail systems that the domain does not receive mail. That reduces backscatter, cuts down on pointless retries, and removes ambiguity that can work against you if the domain is later used alongside active sending infrastructure.

I recommend this whenever a domain exists for branding or technical support, but no inbox will live on it. Clear intent in DNS helps providers classify the domain correctly. In an environment shaped by AI-assisted filtering, that clarity matters. Clean routing, aligned authentication, and honest domain purpose all support the same reputation story.

Troubleshooting Common MX Record Failures

The most common support message sounds like this: “I changed the records, but email still isn't working.”

Usually the cause is one of four things. The old MX records are still present. The target value is formatted wrong. The change hasn't fully propagated yet. Or the setup is technically valid but doesn't fit how the domain is now being evaluated.

Fast checks that solve most problems

Run through this list before changing anything again:

  • Check for leftovers
    If you see records from a previous provider, remove them.

  • Review the destination format
    Some registrars need the trailing period on the target hostname.

  • Confirm the host field
    Root domain and subdomain setups are easy to mix up.

  • Give propagation time
    DNS changes can take time to settle across different resolvers.

The newer issue most tutorials miss

AI-driven filtering has changed the way some providers interpret infrastructure signals. According to a 2025 report, 42% of bounce increases in Q4 2024 were linked to “MX misalignment with AI reputation scores,” and this nuance was absent in 90% of existing tutorials, as reported in this AI email filtering report.

That doesn't mean you need exotic MX configurations. It means you should avoid messy ones. Don't publish multiple MX records you don't use. Don't mix providers casually. Don't set up routing that conflicts with your historical sending environment.

A clean, minimal configuration is easier for people to manage and easier for mailbox providers to trust.


If you've changed DNS, migrated providers, or you're just not sure whether your setup is helping or hurting, run an email spam test on the MailGenius homepage. It's a practical way to see how mailbox providers interpret your setup before your next campaign goes live.

Free Email Spam Test:

Will your Email Land in the Spam Folder?

Send an email to the address below to see your Spam Score:
loading...
MailGenius users test over 1M emails per year! By using our Email Tester, you will agree to our Privacy Policy and Terms of Service. The sending email address will receive emails from MailGenius. All tests are hosted on public links.

Try MailGenius Today

Run a Free Email Deliverability Test - Send an Email to the Address Below, then Click “See Your Score”:

Free Email Spam Test:

Will your Email Land in the Spam Folder?

Send an email to the address below to see your Spam Score:
loading...
MailGenius users test over 1M emails per year! By using our Email Tester, you will agree to our Privacy Policy and Terms of Service. The sending email address will receive emails from MailGenius. All tests are hosted on public links.

Try MailGenius Today