Skip to content

What Happens to Your Email When You Change Hosting? MX, Mailboxes and How Not to Lose Mail

On this page

Last updated: · By

In short: your email doesn’t move with the website, because what decides where email goes is the MX record in DNS, not the web server. If your email is with Google Workspace or Microsoft 365, a hosting move doesn’t touch it, as long as you don’t change the MX. The risk is real only when the mailboxes sit with your old hosting company, and then you need to set up a new mail provider and move the mailboxes before you cancel.

⏱ Time needed: 1–3 hours, plus up to 72 hours for DNS propagation · Difficulty: medium · Last checked: 7 Nov 2026 · By Asael Dreyer

Key facts: email and hosting migration (as of 7 Nov 2026)

What decides where email goesThe MX record in the domain’s DNS
What changes in a site moveThe A record (the site’s IP address), not MX
Does Cloudways host mailboxesNo. There is Rackspace as an add-on, or an external provider
MX propagation timeUp to 72 hours, according to Google
The big riskCancelling the old hosting before the mailboxes have been moved
The first stepA screenshot of all existing DNS records

Where does your email live right now?

This is the first question, and it determines everything else. Check your domain’s MX record: if it points to Google or Microsoft, your email has nothing to do with the hosting. If it points to your hosting company’s server, the mailboxes are there.

An MX record is a DNS record that tells mail servers around the world which server to send email addressed to your domain. An A record tells the browser which IP address to go to in order to show the website. A hosting move changes the A record, so email shouldn’t be affected.

The MX points to…Where the mailboxes areWhat happens in a hosting move
smtp.google.com or aspmx.l.google.comGoogle WorkspaceNothing, if you don’t touch the MX
*.mail.protection.outlook.comMicrosoft 365Nothing, if you don’t touch the MX
mail.your-domain or a hosting company’s serverWith the old hosting companyYou need to move the mailboxes before cancelling
Another mail provider (Rackspace, Zoho and others)With that providerNothing, if you don’t touch the MX

How to check: in any online DNS lookup tool, or in a terminal: nslookup -type=mx your-domain.com.

Why does this matter especially when moving to Cloudways?

Because Cloudways has no mailboxes on the server. According to the Cloudways knowledge base, the company doesn’t host email on its servers, and offers add-ons: Rackspace for mailboxes, and Elastic Email or SMTP for sending from the site.

Many shared hosting companies include mailboxes in the plan. If you are moving from one of them to Cloudways, you need to decide in advance where your email is going. The comparison of the options is in the guide to email options on Cloudways, and moving from a local hosting company is in the guide to migrating from a local host.

What happens to email when you change nameservers?

This is where most problems happen. If your domain uses the old hosting company’s nameservers, all DNS records, including MX, are managed there. When you move the nameservers to Cloudflare or another DNS provider, you need to copy all the records, not just the A record.

Whoever forgets an MX record, an SPF TXT record or a DKIM record finds out a day later, when emails don’t arrive or land in spam. That is why the first step in any migration is a screenshot or export of the whole DNS zone. Managing DNS for a country-code domain is explained in the guide to connecting a domain from a local registrar.

How do you move hosting without losing email, step by step?

The order matters. Email first, then the website, and only at the end do you cancel the old one.

  1. Document the existing DNS: screenshot or export all records: A, CNAME, MX, TXT (SPF, DKIM, verifications) and SRV.
  2. Lower the TTL of the records you are about to change to 300 seconds, a day before the move. That way the change propagates faster.
  3. If the mailboxes are with the hosting company: open an account with a new mail provider and create exactly the same addresses there.
  4. Move the contents of the mailboxes: most providers offer an IMAP import from the old server. You can also add both accounts to an email client and drag folders across.
  5. Switch the MX to the new provider, and delete the old MX records. For Google Workspace, according to Google’s instructions, it is a single record: smtp.google.com with priority 1.
  6. Update SPF and DKIM for the new provider. The setup is in the SPF, DKIM and DMARC guide.
  7. Move the website and change only the A record to the new server. Instructions are in the guide to connecting a domain to Cloudways.
  8. Wait before you cancel: Google says detecting the new MX can take up to 72 hours. Keep the old hosting active for at least a week, and check the old mailboxes for emails that are still arriving.
Black Friday80% off
80% off 2 months of managed hosting

The code BFCM802 takes 80% off your bill for the first two months (up to $200 off per month), including unlimited free site migrations. New customers only, and only until the offer ends.

The offer ends on December 4, 2026 at 23:59 (UTC+2).

Ends in—days—hours—minutes—seconds
Code:
Grab the 80% now

Start with a free trial, no credit card. Enter the code at checkout and check that it shows up.

After Black Friday: 30% off for 3 months with the code ASAEL. On a large server (above about $444 a month) ASAEL already saves more today. BFCM802 vs. ASAEL calculator

What about the emails the website sends?

You need to take care of those too, and they are separate from the mailboxes. The contact form, WooCommerce order confirmations and password resets are sent from the website’s server. On a new server you need to set up sending again: an SMTP plugin or Elastic Email.

According to the Cloudways knowledge base, you can enable one sending add-on per server: Elastic Email or SMTP. Rackspace has a rate limit on outgoing email, so you don’t send automatic emails from it. Setting up the plugin in WordPress: WP Mail SMTP guide.

How do you check that email works after the move?

  1. Send an email from an external address (a personal Gmail) to every important business mailbox.
  2. Send from the business mailbox to Gmail, and check in the full headers that SPF and DKIM passed (PASS).
  3. Fill in the contact form on the site, and on a store place a test order.
  4. Check again after 24 and 72 hours, once DNS has propagated worldwide.

If something doesn’t arrive, the first step is the guide to a contact form that doesn’t send email or WooCommerce emails not arriving.

Common mistakes and how to fix them

Cancelled the old hosting too early: the mailboxes were deleted with it. If it is still possible, restore the account and pull the contents over IMAP. Otherwise, only a local backup will help.

Moved nameservers and forgot MX: emails stop arriving. Copy the MX records from the documentation you saved, and email comes back after propagation.

Two sets of MX records left: some emails go to the old one. Delete the old records, as Google recommends.

An old SPF that doesn’t include the new provider: emails go out but land in spam. Update to a single SPF record that includes all senders.

A full mailbox: not related to the move, but confusing. On Exchange Online, according to Microsoft Learn, a full mailbox rejects incoming email and sends the sender a bounce message.

Frequently asked questions

Will my emails be deleted when I move my site to new hosting?

No, if the mailboxes are with a separate provider such as Google Workspace or Microsoft 365. They are deleted only if the mailboxes were with the old hosting company and you cancel it before moving them.

How long does an MX change take to propagate?

Usually a few hours, but Google says it can take up to 72 hours. Lowering the TTL a day before the change shortens it.

Can you keep email at the old hosting and move only the website?

Yes. You change only the A record to the new server and leave the MX alone. The downside: you keep paying the old hosting company just for email.

Does Cloudways also move your email during a migration?

No. Cloudways doesn’t host mailboxes, so moving the site doesn’t include email. You move the mailboxes to a mail provider, for example Rackspace through the panel or Google Workspace.

What is TTL and why lower it?

TTL is the time, in seconds, that servers around the world cache a DNS answer before checking again. A low value like 300 makes a change propagate faster, so you lower it before a move and raise it again afterwards.

Which is better, moving nameservers or just changing a record?

If your DNS is managed at the domain registrar or on Cloudflare, changing the A record is enough. Moving nameservers means copying all the records, and that is where emails get lost.

Sources

Official source: Cloudways Knowledge Base and Google Workspace Admin Help. This guide was written and checked by Asael Dreyer · Updated: 7 Nov 2026

Disclosure: this is an independent site, not the official Cloudways site. Some links on this site are affiliate links: if you sign up through them we earn a commission, at no extra cost to you. Full details

Picture of Asael Dreyer
Asael Dreyer

Hi, I'm Asael Dreyer, CEO of an SEO agency that runs hundreds of websites hosted on dozens of Cloudways servers.
Everything you will find here comes from hands-on experience, mine and my teams', straight from the field: from the guides to the recommendations. All to help you get the most out of Cloudways.

More about me →

Need help? Got a question about your server or this guide? Write to us and we will get back to you.

More guides on this topic:
מפריד
Thanks for your message!
We will get back to you soon.
Ready to get started?

Sign up with the coupon code ASAEL