Skip to content

How to change MX records without losing email

By Ash, Founder, HosteazePublished 2 min read

Log in to wherever your domain's DNS is managed, delete the old MX records, and add the new ones your email provider gives you with the exact priority numbers. Lower the TTL a day before if you can. New email reaches the new provider within minutes to hours, so keep the old mailboxes open for a few days.

Two stacked cardboard boxes, ready for a move, like your email moving to a new provider
Credit: Msaeedsalem via Pixabay

Changing MX records is a five-minute job that people put off for months, mostly because they're worried about losing email. That worry is fair, but the risk is small if you do things in the right order. Here's that order.

What do I need before I start?

How do I change the MX records?

Copy the server names exactly, including any full stop at the end if your provider shows one. A typo here is the most common reason email bounces after a move.

How do I check it worked?

Look up your domain's MX records in the Dig tool. Once it shows the new server names, send an email from a personal Gmail or Outlook.com account to your business address and check it arrives in the new mailbox.

Some email can still reach the old provider for a few hours, occasionally up to a day or two, while caches around the internet expire. Keep the old mailboxes open and check them for a few days before closing the account.

What else changes when I move email?

MX records only handle incoming email. For outgoing email to be trusted, update your SPF record with the new provider's include and switch on DKIM at the new provider. Then remove the old provider's include from SPF once you've stopped sending through it. The full order is in how to set up SPF, DKIM and DMARC.

Not sure what each part of an MX record means? What is an MX record? explains the priority number and the common mistakes.

Step by step

  1. 1.Get the new MX values

    Copy the exact MX records, including priority numbers, from your new email provider's setup page.

  2. 2.Lower the TTL in advance

    A day before the switch, set the TTL on your existing MX records to 300 seconds if your DNS provider allows it.

  3. 3.Replace the records

    In your DNS settings, delete the old MX records and add the new ones on the root of the domain.

  4. 4.Check the change

    Look up your MX records with a free DNS lookup tool and send a test email from an outside address.

  5. 5.Keep the old mailboxes for a few days

    Some email may still reach the old provider while DNS caches expire, so check it until nothing new arrives.

Frequently asked questions

Does changing MX records delete my old emails?

No. Old emails stay with your old provider. MX records only control where new email is delivered, so copy old emails across separately before you close the old account.

Should I delete the old MX records or keep them as a backup?

Delete them. Old records left in place, even with a higher priority number, can still receive some of your email when the new server is busy or slow to answer.

Do I need to change SPF and DKIM too?

Usually, yes. Your new provider sends your email from different servers, so add its SPF include and DKIM record, and remove the old provider's once you have stopped sending through it.

Sources

  1. RFC 5321, Simple Mail Transfer Protocol (section 5)
  2. Google Workspace, Set up MX records
  3. Google Admin Toolbox, Dig
Red octagonal stop sign against a blue sky, like a mail server refusing a messageQuestionWhat does a 550 email bounce error mean?A 550 error means the receiving mail server permanently refused your email, so it won't try again. The extra code after it gives the reason. 5.1.1 means the address doesn't exist, 5.7.1 means it was blocked as spam or by a policy, and 5.7.26 means your domain's SPF or DKIM authentication failed.Email and domains · 14 October 2026Wooden arrow-shaped signpost against a blue sky, pointing the wayTutorialHow to point a domain to a websiteYou have two options. Change your domain's nameservers to the ones your host gives you, which hands over all your DNS. Or keep your DNS where it is and add an A record for the root domain plus a CNAME for www. Either way, copy your email records first so your inbox keeps working.Email and domains · 14 October 2026Yellow wooden signposts pointing in different directions on a mountain pathQuestionA record vs CNAME, what's the difference?An A record points a domain name straight at an IP address, such as 203.0.113.10. A CNAME points a name at another name, which then supplies the address. Use an A record for your root domain and a CNAME for subdomains like www when your host gives you a hostname. A CNAME can't sit on the root domain.Email and domains · 13 October 2026The Earth from space covered in a web of glowing network connections, showing how DNS answers spread worldwideQuestionHow long does DNS propagation take?Most DNS changes are visible within a few minutes to an hour, but some take up to 48 hours. The wait depends on the record's TTL, which tells servers how long to keep the old answer, and on whether you changed a record or your nameservers. Nameserver changes are usually the slowest.Email and domains · 13 October 2026Tangled mess of electrical cables on a telegraph pole against a blue skyQuestionHow do I fix "SPF record too many DNS lookups"?SPF allows a maximum of 10 DNS lookups. Every include, a, mx, ptr, exists and redirect term counts, including the ones hidden inside each include. Go over and SPF returns a permanent error, so it fails for all your email. Fix it by removing services you no longer use and dropping unnecessary a and mx terms.Email and domains · 13 October 2026

Want email on your own domain?

Hosteaze hosting plans let you set up mailboxes on your own domain. See what each plan includes.

See hosting plans