Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4072 pages

Help for owners

I want to move my WordPress site to a new host without losing my email

Short answer

WordPress files and database move separately from email. Find out where your mailboxes live: if they sit with the old host, moving the site's DNS records without keeping the MX records can cut email off. Copy the site, test it privately, keep MX unchanged until the mailboxes have their own new home.

  • Written for business owners
  • Updated
  • By Maaz Zindani, Senior Software Engineer

Does this sound like your situation?

  • My email address uses my domain, and I do not know who hosts the mailboxes.
  • The old host provides both the website and the mailboxes.
  • The new host offers to move the site but does not mention email.
  • I was told to just change the nameservers.
  • The site is business critical and I cannot have email stop.

Why does this happen?

  1. Moving nameservers moves every DNS record

    When the nameservers change, the new DNS zone replaces the old one. If the MX records that route mail were not recreated there, mail goes nowhere or to the wrong place.

  2. Mailboxes are stored where the MX points

    Google states that MX records tell senders where to deliver a domain's mail. Mail is delivered to whatever the MX records name, so the mailbox host and the site host are only linked if you made them so.

  3. Old mail stays on the old server

    Messages already stored on the old host do not move by themselves. Closing that account early loses them.

  4. WordPress moves have their own traps

    WordPress documents moving files and the database, updating wp-config.php when the database details change, and using a search and replace tool that handles serialized data if URLs change.

What can I do about it today?

  1. Find out where your email livesAsk your host, or look at the mail settings of your domain. Write down the provider and the people who use each mailbox.
  2. Do not change nameservers yetThat one change can move email as well as the site.
  3. Ask for a copy of the current DNS recordsA list or screenshot of every record, MX and SPF included, is the reference for the new setup.
  4. Back up before anything elseA full site backup and, if the mailboxes are on the host, a mailbox export.
  5. Keep the old account runningUntil the new site works and email has been confirmed.

When should I bring someone in?

  • The mailboxes are on the same hosting account as the site.
  • You use shared calendars, forwarding rules or a shared mailbox.
  • The site takes orders and cannot be offline.

How do I handle it?

  1. Map what lives whereWebsite, database, mailboxes, DNS, forwarders and the sending settings, written down before anything moves.
  2. Copy and test the site privatelyFiles, database and configuration go to the new host, tested before the public address changes.
  3. Give email its own moveMailboxes move to a mail provider or are kept where they are, and the MX records stay explicit in the new DNS.
  4. Switch with a recorded rollbackA written list of the old DNS values means the switch can be reversed.
  5. Test sending and receivingMail is sent both ways, plus a contact form message, before the old account is closed.

The price depends on what I find, so I quote in writing after a short discovery call. Tell me what is happening and I reply within 24 hours.

What do owners ask about this?

Will mail stop when I switch?

Not if the MX records are kept correct throughout. Google notes that changes to MX records can take up to 72 hours to be recognised, so keep old mail access until delivery is confirmed.

Do I need to move email to the new host?

No. Email can stay where it is, or go to a dedicated mail provider, whichever you prefer.

Can the new host do all of this?

Many offer a site migration. Ask in writing whether it includes email and DNS.

Sources

How was this page made?

I drafted this page with AI assistance from the official documents listed under Sources. Found a mistake? Tell me.

For your developer: the technical fixes

Next step

Want this off your desk?

Send me a few lines on where things stand. I reply within 24 hours.