How to Add MX Records

MX records route your incoming mail. Adding them is five minutes of careful copying from your mail provider's instructions; the failure modes are all predictable.

MX record fields

FieldExample valueMeaning
Host@Mail for the domain itself
Priority10Lower first; higher for backups
Targetmx1.example.comHostname with an A/AAAA record, never a CNAME or raw IP
TTL3600Receivers cache routing decisions

Step by step

  1. Open your mail provider's DNS instructions. Google Workspace, M365, Zoho, Proton all publish their exact MX hosts and priorities. Copy, do not retype.
  2. In your DNS host, create MX records on the root domain. Each line gets: host @, type MX, priority (10, 20, ...), value the mail hostname with its trailing dot if your host uses FQDNs.
  3. Remove old MX records completely. Mixed old and new sets mean some mail lands on the old server forever.
  4. Lower expectations, not TTLs. If migrating providers with users live, pre-set TTL 300 the day before so the cutover is minutes, not a day.
  5. Verify. The record lookup with MX selected shows your new set from a public resolver; the propagation checker confirms every resolver agrees before you decommission the old host.

The classic mistakes

  • Pointing MX at an IP address; MX takes a hostname, always.
  • Priority confusion: lower number = higher priority; equal numbers load-balance.
  • Adding a new provider's MX while keeping the old ones "just in case": mail splits unpredictably.
  • Forgetting the subdomains: mail.yourdomain.com needs its own MX if it receives directly.

After the MX: complete receiving

MX routes mail, but deliverability of your outbound mail needs SPF, DKIM, and DMARC. The homepage scanner checks the whole stack in one pass.

Frequently asked questions

What priority should my MX records use?+

Lower numbers are tried first. Use 10 for the primary and 20 or higher for backups; equal priorities split load instead of failing over.

Can I have multiple MX records?+

Yes, and it is the standard resilience pattern: two or three hosts at different priorities.

How long before MX changes work?+

As long as the old record TTL. Lower it to 300 seconds before the change, and the new routing applies within minutes.

Last verified: 2026-10-28