How to change web hosts without interrupting email
You can usually move your website and keep your email where it is. First check who hosts your mail and DNS. Then change only the website records if your current DNS provider can stay in place.
Find out who runs your DNS and email
Your domain registrar, DNS provider, web host and email provider may be different companies. Use the Name Server Lookup to identify which name servers answer for your domain. Then confirm who controls the DNS account and whether that service stays active when you cancel your old hosting.
Use the DNS lookup tool to check your MX records, which tell other mail servers where to deliver messages. Confirm the actual mail provider through your account or administrator too. An MX record can point to a filtering service before messages reach the mailbox.
If the old hosting account also contains the mailboxes, keeping the MX records alone won’t keep those mailboxes running after cancellation. Arrange separate mail hosting or a mailbox move first.
Check which records email depends on
Save a copy of the DNS zone from your provider. Check MX records and their targets, mail hostnames, and the SPF, DKIM and DMARC records used to authenticate email. Keep any provider verification or mail client setup records your service uses.
Look for shared dependencies. For example, if your MX points to mail.example.com and that name is an alias for example.com, changing the website address could also change where mail goes. Ask your email provider for the correct mail hostname or address before switching.
Test the new site before switching DNS
Use the new host’s preview or staging setup. Check key pages, forms and any checkout or sign-in flows. Confirm how HTTPS will work at cutover, and test whether the website can send contact form messages or order emails. A functioning mailbox doesn’t automatically mean the new website can send mail.
Ask the new host which records to update for the main domain and www. Depending on the setup, these could include A, AAAA or CNAME records. If you can keep the current DNS provider, leave the existing mail configuration in place and change only the records that serve the website.
Copy the whole zone if the name servers must change
If DNS is tied to your old hosting account, or you’ve chosen a new DNS provider, recreate the zone at the new provider before switching name servers. Compare the records with the old zone, including mail, subdomains and verification records. Automated imports can miss entries. If DNSSEC is enabled, coordinate the signing and registrar changes with the providers before cutover. Cloudflare’s DNS setup guide walks through these checks for Cloudflare.
Verify web and email before closing the old account
- Open both the main domain and
wwwover HTTPS and submit a test form. - Send a message to your business address from an external mailbox, then reply and confirm it arrives.
- Compare DNS answers against your saved records. Keep the old site and any still needed services available during the transition while cached DNS answers expire.
Stack2 includes migration for website hosting. You can keep your existing email provider or choose Stack2 business email hosting. If mailboxes also need to move, we scope and quote that work separately.
Mail already stopped after a change? Follow our email troubleshooting guide to narrow down the failure.