Skip to content
Pithmark
Build a website4 min read

How to move your website to a new host without breaking email

Find the DNS records your website and email use, plan the switch to a new host and test mail delivery before closing the old account.

By Pithmark

If your domain, page URLs and email provider are staying the same, keep your current DNS provider if you can. Change the website records your new host specifies and preserve the records your mail provider needs. Test the website and send email both ways before closing the old hosting account.

Find out who runs each part

Write down who registers your domain, who manages its DNS, who serves the website and who provides the mailboxes. One supplier might handle all four. The domain's nameservers identify which DNS service is authoritative. Ask the old supplier which services would stop if you cancelled the hosting plan, especially DNS and mailboxes.

Export your DNS zone if the provider offers that option, or record each name, record type, value and time to live (TTL). Record mail priorities too. Keep the copy somewhere your business can access during the move.

  • Website: record the entries for the bare domain and www, plus any other web addresses moving with the site.
  • Email: record MX priorities and destinations, SPF, DKIM and DMARC records, and any mail hostnames or aliases those records depend on.
  • Other services: keep verification records and subdomains that still serve something, such as an online shop, booking tool or customer portal.

Change the website records at your current DNS provider

Copy the site to the new host and test it on a preview address. Add the public domain to that host and use the exact records it gives you. These may be an A or AAAA record for the bare domain and a CNAME for www. Check both addresses. If a previous address record still points to the old host, ask the new host which records to replace.

For example, a decorator keeps its mailboxes with a separate provider while switching its brochure site. Its DNS stays put. It replaces the website records for example.com and www.example.com, leaves the mail records in place and checks where the quote form sends replies. Before making the same change, check whether any MX destination points to the bare domain you plan to update. Ask your mail provider for the correct mail destination if it does.

If you control the TTL, consider lowering it on the affected website records ahead of time and waiting for the previous TTL to expire. This can shorten how long caches retain the old records after the switch. Keep the previous values handy so you can restore them if the new host cannot serve the site.

Test the switch before cancelling anything

Open the HTTPS site on two networks and check the bare domain, www and a couple of important pages. Send a test enquiry through the website. Then send a message from an external account to the business mailbox and reply from the mailbox. These checks exercise different delivery paths.

If the website sends through the old host, move the form to a supported mail service and test it again before cancellation. Review traffic at both hosts where logs are available. Keep the old site available while traffic moves and confirm DNS, mail and form delivery can continue after the old plan ends.

If the DNS provider must move too

Set up the full zone with the new DNS provider before changing nameservers. Compare it against your saved copy, including the mail destinations, verification records and subdomains. If DNSSEC is enabled, ask both providers how to handle its transfer and the DS record at the registrar. Follow their order of operations.

Treat a move of the mailboxes themselves as a separate job. Agree how to migrate messages, aliases and any shared mailboxes with your email provider before you cancel their old service.

Common questions

Do I have to transfer my domain to the new web host?
Usually you can leave the domain with your current registrar and point the website to the new host using DNS. Check that your DNS and mail plans stay active after you cancel the old hosting.
Can a website DNS change still affect email?
Yes. It can affect delivery if an MX record points to the hostname you change, or if your old plan also runs your mailboxes or form delivery. Check those dependencies first.
Do I need redirects for a host-only move?
If the public URLs stay the same, the hosting switch itself does not require new redirects. Check that any existing redirects still work on the new host.

Sources

Researched with official sources and written with AI assistance.

Explore website hosting tools