How to plan a website migration without losing email
Move a website while keeping mail routed to the existing service. Follow an inventory, staging, DNS cutover and send-and-receive check.
To move a website without disrupting email, treat web hosting and mail routing as separate workstreams. Copy the site, test it on the new host and change only the records needed for web traffic. Keep the existing mail service and its DNS records in place unless a separate mail migration is planned.
Inventory both services before cutover
Record the domain registrar, authoritative DNS service, current web destination and every mail-related record. The key mail records usually include MX for delivery and TXT records used for SPF, DKIM and DMARC. There may also be service verification and client configuration names. Take a dated export or screenshot of the entire zone.
Check who owns the mailboxes and where messages are stored. A website backup does not necessarily contain email. If the registrar, DNS, website and email are managed in one account, confirm that changing a hosting package will not remove a service you intend to keep.
Prepare and test the new website
Copy the website files and database, configure the application and test it on a staging address or other controlled route. Check pages, forms, logins, uploads, scheduled tasks and HTTPS. Compare new content with the live site shortly before switching so changes made during migration are not lost.
If the site sends notifications, test how those messages are delivered. A contact form may use a mail service unrelated to the domain's incoming mailboxes. Check the sender settings and delivery logs; do not assume a working page means its emails arrive. The form-testing guide gives a more detailed checklist.
Change the smallest set of DNS records
When the new site is ready, update the website records supplied by the new host. If you must change nameservers instead, recreate and verify the whole DNS zone at the new service before switching. That includes the mail records. The nameserver change guide explains why this distinction matters.
Allow for cached DNS answers. Keep the old website available through the transition where possible, and schedule the cutover when someone can check it. Record the time and previous values. Avoid making unrelated mail changes in the same window, because that makes a fault harder to diagnose.
Verify after the switch
Open the site from more than one network, use both bare and www names, submit a safe form test and check HTTPS. Send an email into a domain mailbox from an external address, then reply out. Check the actual mailbox and delivery result rather than a sent-message screen alone.
Monitor for a period after the cutover and keep rollback instructions accessible. If email fails, compare live DNS records with the inventory first. A missing mail record can be fixed without undoing a healthy website migration.
Frequently asked questions
Does changing an A record move my email?
Usually no. An A record commonly directs website traffic, while MX and other records control mail delivery and authentication. Check the whole DNS setup before changing anything.
Is changing nameservers riskier than changing one website record?
It affects the authority for the entire DNS zone. It can be done safely, but every required web, mail and verification record must exist at the new service.
Should I move email and the website on the same day?
Only if there is a clear reason and a tested plan. Separate changes are easier to verify and troubleshoot, especially when mailboxes contain important business history.
HELP US IMPROVE
Was this article useful?
Your feedback helps shape future coverage.