# How to move email when you change hosts

> How to move mailboxes, messages and DNS records so you do not lose mail when you switch hosting, with a timeline and a list of common failures.

Source: https://comparehostingonline.com/guides/move-email-to-new-host/

## Short answer

Create the mailboxes on the new service, copy existing messages with IMAP, then change the MX records last. Keep the old mail service running until all mail has moved and DNS has settled.

Last verified Nov 28, 2026 · [How we test](https://comparehostingonline.com/methodology/)

At a glance

-   **Why is moving email harder than moving a website?** A website can be copied and tested while the old one still serves visitors.
-   **What is the step-by-step process?** Add the same addresses and aliases on the new service.
-   **How do you copy old messages?** IMAP stores mail on the server, so it can be synchronised between two servers.

## Why is moving email harder than moving a website?

A website can be copied and tested while the old one still serves visitors. Email never stops: messages arrive at any moment, and each message is delivered to whichever server your MX records name at that moment. If you switch too early, mail goes to an empty mailbox. If you forget the sender records, your outgoing mail lands in spam. And messages already stored on the old server are separate from anything on the new one, so they must be copied.

The safe approach is to run both services side by side, copy the old mail, switch the records and then watch both inboxes for a few days.

## What is the step-by-step process?

1.  1
    
    **Create the mailboxes**
    
    Add the same addresses and aliases on the new service.
    
2.  2
    
    **Copy existing messages**
    
    Use an IMAP sync tool, or drag folders between accounts in a mail client.
    
3.  3
    
    **Update MX and sender records**
    
    Point MX to the new service and set SPF, DKIM and DMARC for it.
    
4.  4
    
    **Run both for several days**
    
    Check both inboxes until nothing arrives at the old one.
    
5.  5
    
    **Close the old mailboxes**
    
    Only after you have a backup and the new service works.
    

## How do you copy old messages?

IMAP stores mail on the server, so it can be synchronised between two servers. Dedicated migration tools connect to both accounts and copy folders and messages. Many email providers offer an import tool that does it for you with the old address and password. You can also add both accounts to a mail client, such as Thunderbird or Outlook, and move folders between them, although this is slower for large mailboxes. Check that dates, folders and read status carry across, and that attachments are intact.

## Which DNS records matter for email?

See [what DNS records are](https://comparehostingonline.com/guides/what-are-dns-records/) for how each one works, and lower the TTL a day ahead so the change takes effect quickly.

| Record | Purpose | What to do when you move |
| --- | --- | --- |
| MX | Where incoming mail is delivered | Point to the new provider, after mailboxes exist |
| SPF (TXT) | Which servers may send for the domain | Include the new provider; remove the old when finished |
| DKIM (TXT or CNAME) | Signs outgoing messages | Publish the new provider’s key |
| DMARC (TXT) | Policy for failed checks and reports | Keep, and review reports |
| Autodiscover and similar | Helps mail clients configure themselves | Update where the new provider uses them |

## What are the common failures?

-   Changing nameservers without copying MX records, which stops mail.
-   Forgetting SPF and DKIM, so mail goes to spam.
-   Switching MX before the new mailboxes exist and bouncing messages.
-   Cancelling the old plan too early and losing mail that was still arriving.
-   Not updating passwords in phones and mail clients.
-   Forgetting aliases and forwarders used by other people.

## Should email stay with your web host?

Many people take a host change as a chance to separate the two. A dedicated email provider keeps working when you change hosts and often gives better filtering and deliverability. Read [email hosting vs web hosting](https://comparehostingonline.com/guides/email-hosting-vs-web-hosting/) for the trade-offs. If you change nameservers rather than just the A record, your email records must be recreated at the new DNS provider; see [nameservers explained](https://comparehostingonline.com/guides/nameservers-explained/) and [how to point a domain to your hosting](https://comparehostingonline.com/guides/point-domain-to-hosting/).

## How do you test that it works?

-   Send a message from the new mailbox to an outside account and back, and check it lands in the inbox.
-   Test replies, attachments and large messages.
-   Check the headers of a received test message for SPF, DKIM and DMARC passes.
-   Use a mail-testing service to see how your messages score.
-   Ask a colleague to send you a message while the old mailbox is still active, to see where it goes.

## What should you keep after the move?

Keep an archive of the old mailboxes for a few months in case something is missing, and remove old copies later, especially if they contain personal data. Update the email address on accounts that use it, and take a note of the new settings. If you also moved the website, our [website migration checklist](https://comparehostingonline.com/guides/website-migration-checklist/) lists the rest of the steps, and [how to cancel web hosting](https://comparehostingonline.com/guides/how-to-cancel-web-hosting/) covers closing the old account safely.

## A worked example: moving ten mailboxes over a weekend

A small company has ten mailboxes on its old host and wants to use a dedicated email provider. On Friday afternoon the admin creates the mailboxes at the new provider and starts IMAP imports for each user, which run overnight. On Saturday morning they check that folders and dates are intact, then lower the TTL on the MX records. On Saturday evening they change the MX to the new provider and publish new SPF and DKIM records. Over the weekend they watch both inboxes: a few messages still arrive at the old server and are copied across by a second import run.

By Monday everyone uses the new service, with the old mailboxes kept read-only for two weeks as a safety net. No mail was lost, and staff only had to update their passwords on phones.

## What should you tell your users?

-   The date and time of the switch and what will change for them.
-   The new webmail address and server settings, if they use a mail app.
-   That older messages may take a few hours to appear.
-   Where to report problems and what to include.
-   That they should not delete old mail until you confirm the copy is complete.

## Sources and further reading

-   [RFC 7208: SPF](https://www.rfc-editor.org/rfc/rfc7208)
-   [RFC 6376: DKIM](https://www.rfc-editor.org/rfc/rfc6376)
-   [RFC 7489: DMARC](https://www.rfc-editor.org/rfc/rfc7489)
-   [dmarc.org: overview](https://dmarc.org/overview/)

## Common questions

Will I lose old emails when I switch hosts?

Not if you copy them first. Use an IMAP sync tool, your provider's import tool or a mail client to move messages before you close the old mailboxes. Keep a backup until you are sure everything arrived.

When should I change the MX records?

After the new mailboxes exist and old mail has been copied. Lower the TTL a day ahead, switch MX, then keep the old service running for a few days to catch mail that was still in transit.

Why is my mail going to spam after the move?

Usually missing or wrong SPF, DKIM or DMARC records, or a sending address that does not match them. Publish the new provider's records, remove the old ones when finished and test with a mail-testing tool.

How long does email migration take?

Setting up takes an hour or two. Copying large mailboxes can take hours or days. Allow a few days of overlap for DNS to settle and for delayed mail to arrive.

Can I keep email with my old host and move only the website?

Yes. Leave the MX records unchanged and only edit the A record for the site. If you change nameservers, copy all the MX and TXT records first, or email will stop.

## Related

[Transfer a WordPress site](https://comparehostingonline.com/guides/transfer-wordpress-to-new-host/) [What are DNS records?](https://comparehostingonline.com/guides/what-are-dns-records/) [Website migration checklist](https://comparehostingonline.com/guides/website-migration-checklist/)

## More guides

[NVMe vs SSD hosting: does the storage type matter?](https://comparehostingonline.com/guides/nvme-vs-ssd-hosting/) [PHP versions on hosting: which to use and how to upgrade safely](https://comparehostingonline.com/guides/php-versions-on-hosting/) [Shared hosting vs managed WordPress hosting: which do you need?](https://comparehostingonline.com/guides/shared-vs-managed-wordpress-hosting/) [Subdomain vs subfolder: which is better for your site?](https://comparehostingonline.com/guides/subdomain-vs-subfolder/) [How to test a host's support before you buy](https://comparehostingonline.com/guides/test-hosting-support-before-buying/) [How to transfer a domain name to a new registrar](https://comparehostingonline.com/guides/transfer-a-domain-name/)

MH

**[Muhammad Hamza](https://comparehostingonline.com/team/muhammad-hamza/)** Founder & Editor

Writes and signs off every comparison, and runs the compliance reviews. Has worked on SOC 2 and HIPAA compliance programs for companies.

Our [editorial policy](https://comparehostingonline.com/editorial-policy/) and [testing method](https://comparehostingonline.com/methodology/) are public.
