Web hosting · Practical guide

Move a website without losing track of email

Plan website files, databases, DNS and mailboxes as separate parts of a hosting migration.

Archive placement: September 2025

A monitor beside data-centre network cabling

Moving a website and moving email are separate jobs, even when both currently live in one hosting account. Make a clear decision about which services are moving, prepare and test the new website, and preserve the mail records and mailboxes that still need to work. The goal is a controlled cutover with a usable fallback.

1. Inventory the website and mail setup in cPanel

Write down what you are moving before changing DNS. The website and mailboxes may use separate services even though they share a domain name.

  1. Use cPanel → Domains to record each website and document root. Identify the application and its database.
  2. Review Email Accounts, Forwarders and Email Routing. Check the current MX records at the authoritative DNS provider.
  3. Record important scheduled tasks, PHP settings, SSL names and external integrations, then download matching files and database backups.

Keep this inventory with the migration plan. Do not assume a website file copy includes mail, databases or a third-party email service. Decide explicitly which service stays where.

2. Decide whether email stays where it is

If email is staying with its current provider, keep the MX records and the hostnames they depend on pointing to that provider. Preserve the SPF, DKIM and DMARC records needed by existing senders. You may need to replace an MX target that indirectly follows the website address before changing the website A record.

If email is moving too, create the mailboxes, aliases and required forwarding rules at the new service first. Agree how old messages, folders and sent mail will be copied using the providers’ supported migration tools. MX only changes where new inbound messages are sent; it does not transfer existing messages or update anyone’s phone settings. Do not delete the old mailboxes during the DNS transition.

3. Build and test the new website first

Copy files and import the database into the new hosting environment. Adjust configuration for its database details and paths. Preview using an appropriate test hostname or local hosts-file method, and keep the test protected from public indexing and unintended external actions.

Test images, forms, logins and application features before public DNS changes. A database-backed site may need a final synchronised copy during a short maintenance window so new orders or content are not lost between the first copy and cutover.

4. Use an isolated preview before changing the main domain

A browser preview should let you check the destination without sending normal visitors or customer mail there yet.

  1. If your cPanel WordPress/installer tool has a documented staging or clone feature, use a separate destination and disable live payments, notifications and scheduled integrations there.
  2. For another application, ask about a supported preview address or create an isolated preview subdomain and document root. Add only the DNS record needed for that preview; leave the main website and mail records alone.
  3. Test pages, images, database actions and the application version. For a hostname-dependent application, use its documented staging URL process rather than treating a failed temporary URL as proof that the upload is broken.

A complete HTTPS and redirect test under the final hostname still belongs in the cutover checks. Keep the previous website ready for rollback, and agree how the final database and uploads will be synchronised.

5. Move mail separately only if that is part of the plan

If email remains with the same provider, preserve its MX and authentication records while changing the website. If mail is moving, prepare the new destination before changing delivery.

  1. Create the required mailboxes on the new service with suitable quotas and unique passwords. Recreate needed forwarding addresses and filters.
  2. Use the provider’s supported migration tool or a mail application connected to both accounts to copy existing messages. Keep the old mail service available during the transition.
  3. At cutover, update MX and any required authentication records at the authoritative DNS provider, then set the appropriate Email Routing mode for the cPanel account.

Test sending and receiving with an outside mailbox and check spam folders on both sides. A working website is not a successful mail migration. Reconcile any messages received at the old service during cached DNS delivery before cancelling it.

6. Use a final copy and a clear cutover window

For an application that accepts orders, posts or uploads, pause those writes briefly on the old site and take the final matched file/database copy. Import it at the destination, verify it, then change only the planned website records. Ensure one instance owns scheduled jobs, payment callbacks and outgoing notifications after the move.

Keep the old environment available for fallback and late traffic, but avoid letting both copies accept independent business data. DNS caches can send visitors to either address during the transition. For mail that is also moving, use the migration tool’s supported follow-up sync to collect messages that reached the old service, and test delivery from outside providers. Record what was copied and when.

7. Finish only after both services work

Keep the old hosting and mail available for the agreed overlap while cached DNS answers expire. Watch delivery errors, form messages and new application records. Check both the main domain and any www address you use.

Write down the new DNS, hosting and email providers, along with the date and rollback details. Retire the old service after the checks and required data copies are complete. This is especially important if old mail is stored only on the previous provider.

8. Finish with separate website and email acceptance checks

  • Website: root and www hostnames, HTTPS, key pages, uploads, login, forms and payment flow using safe test transactions where supported.
  • Email: receive from an external provider, send a new message externally, reply both ways, and confirm phones/webmail use the intended mailbox.
  • DNS: verify A/AAAA, MX and required TXT records at the authoritative provider, then compare a recursive lookup.
  • Recovery: retain the pre-move backup and old-service access until you are confident nothing important remains there.

If you must roll the website back after the new site accepted data, first preserve that newer data and decide how it will be reconciled. Reversing an A record alone does not merge two databases. Cancel the old service only after the agreed retention window and final mail/data checks are complete.

Common questions

Do I need to transfer the domain registration too?

No. Website hosting, DNS hosting and domain registration can be managed separately. A registrar transfer has its own rules and should not be added to a website move without a reason.

Why did my website form stop sending mail after the move?

The new environment may need authenticated SMTP settings, a permitted sender and correct DNS authentication. Test the form independently of mailbox receiving, and inspect its sending error rather than changing MX at random.

Further reading

Moving the registration too?

A DNS change and a registrar transfer are separate steps. Check the registration and transfer rules for your extension before making either change.

← Back to all guidesDiscuss your hosting setup ↗