Company Email Stopped Working After Changing Web Hosting: How to Fix It
Moving a website often breaks email by accident. Learn why MX records and nameservers matter, and how to restore incoming and outgoing company mail step by step.
10 min readUpdated Nov 30, 2026By XPASS Editorial Team

Your website moved to a new hosting plan, the pages load, and everyone is pleased. Then a customer says their message bounced, or you notice that nothing has arrived in the company inbox since the move. This is one of the most common side effects of changing hosting, and it is almost never caused by a fault in the mail system itself. It happens because the instructions that tell the internet where to deliver mail were left behind.
This guide explains how mail delivery depends on DNS, what typically changes during a hosting move, and how to check and restore each part in a safe order. The aim is to get incoming mail flowing first, then outgoing mail and authentication, and finally to protect your old messages. If you are also planning a name change, the related article on email lost after renaming a domain covers the extra steps involved.
How email finds your company mailbox
When someone sends a message to a company address, their mail server does not know where your mailbox lives. It asks DNS for the MX records of the domain after the at sign. The MX record names the mail server that should accept messages for you, with a priority number so that several servers can be listed as primary and backup. The sending server then connects to that mail server using SMTP, the protocol described in RFC 5321, and hands over the message.
This means three separate things must line up. First, the DNS zone that answers for your domain must be the one that holds the correct MX records. Second, the mail server named in the MX record must actually have your mailbox and be willing to accept mail for the domain. Third, the sender and receiver must trust each other enough, which is where SPF, DKIM and DMARC come in. A hosting change can disturb the first and the second at once.

Why a hosting change breaks email
There are a few typical patterns. Knowing which one applies to you saves a lot of time.
The nameservers changed and the new zone has no mail records
When you move a website, the hosting company often asks you to point your domain to its nameservers. From that moment, the new host's DNS zone answers for the domain. If that zone was created with only a website record and no MX records, mail has nowhere to go. Even if your mailboxes still exist on the old host or at a separate email provider, nobody can find them.
Only the A record changed, but the MX record still points to the old host
Sometimes you keep your old nameservers and just change the website A record. Then the MX records still point to the old server. If the old hosting plan was cancelled or the mail service was switched off, mail fails even though DNS looks fine for the website.
Mail was hosted with the old plan, and the new plan does not include mailboxes
Many hosting plans bundle mailboxes with the website. If you moved to a different type of plan, such as a website builder or a plan without mail, your mailboxes may not exist at all on the new server. Check what the new plan actually offers before assuming mail will follow the website.
The mail routing setting inside the hosting panel is wrong
Some control panels have a setting that tells the server whether the domain's mail is delivered locally or to an external mail exchanger. If the setting says local but your mail is hosted elsewhere, the server tries to deliver to a mailbox that does not exist and rejects the message. If it says external but you want the new host to receive mail, messages are forwarded away and appear to vanish. Check this setting if a bounce message mentions an unknown user or a loop.
Authentication records were lost
Outgoing mail may fail or land in spam if the SPF, DKIM and DMARC records are missing. These are TXT records, and a new zone usually does not have them. This affects what recipients see, not whether your inbox receives mail, but it often shows up at the same moment and makes the whole situation seem worse.
Step 1: Read a bounce message or test with a second address
Do not guess. Send a test message from a personal address at another provider to your company address, and read any bounce that returns. Bounce messages contain a status code and a short explanation. A message that says the domain could not be found points to nameservers or the MX record. A message saying the user is unknown points to a missing mailbox or wrong routing. A message about relay denied or a loop points to the mail routing setting. If there is no bounce at all and no mail arrives, the sender may still be retrying, which is normal for several hours.
Also test in the other direction: send from the company address to a personal address and see whether it arrives, goes to spam, or fails. Write down all results before changing anything.
Step 2: Confirm which nameservers are in charge
Open the domain settings at your registrar and note the nameservers. Everything you read next must come from the zone those nameservers serve, not from a panel that is no longer in charge. Many people edit DNS in the old hosting panel for an hour before noticing that the domain no longer uses those nameservers.
If you moved your nameservers to the new host, edit DNS there. If you want to keep DNS at the registrar or a third party, you may instead keep the old nameservers and change only the website records. Either approach works as long as you know where the zone lives. If you are still choosing a provider or planning the full set of services, the guide on preparing a domain and email for a company website is a helpful companion.
Step 3: Rebuild the MX records
Now open the DNS zone that is actually in charge and look for MX records. You need the exact values from your mail provider. If your mailboxes are on the new hosting plan, the hosting company shows the mail server name in its control panel, often under an email or DNS section. If your mailboxes are at a separate email provider, that provider's setup page lists its MX hosts and priorities.
Create or correct the records so they match. Remove old MX records that point to a server you no longer use, because a sender may pick a lower-priority old record and deliver there. Keep the priorities consistent with what the provider gives you. Make sure the MX target is a hostname, not a bare IP address, and that the hostname itself has an address record that resolves.
Once saved, test with a DNS lookup tool that asks for the MX of your domain. When the answer matches what you entered, send another test message from your personal address.
Step 4: Check the mailboxes and the routing setting
Log in to the mail control panel and confirm that every company address still exists, is active and has enough storage space. If you moved to a new server, recreate the mailboxes with the same names, then set new passwords and give them to the people who use them. Check any aliases and forwarders too, because these are often forgotten, and a forwarder to a shared address may be the only reason a team receives certain messages.
Then check the mail routing setting, if your panel has one. Choose local delivery only when the mailboxes are on this server. Choose remote or external delivery when mail is hosted by another provider. Save, and test again.
Step 5: Repair SPF, DKIM and DMARC
Authentication records let receivers decide whether a message really comes from your domain. Three records matter.
| Record | What it does | Where it lives |
|---|---|---|
| SPF | Lists the servers allowed to send for your domain | TXT record on the main name |
| DKIM | Adds a cryptographic signature to outgoing mail | TXT record on a selector name given by your mail provider |
| DMARC | Tells receivers what to do when checks fail and where to send reports | TXT record on a name starting with an underscore |
The SPF specification describes how the sending list works, and the DKIM specification explains signatures. In practice, you copy the values your mail provider gives you. If you changed where mail is sent from, update SPF to include the new sender and remove senders you no longer use. A domain should have only one SPF record; two will cause failures. For DKIM, the new provider gives you a key to publish, and the old key can be removed once the new mail is signed correctly. Start DMARC in a monitoring mode so you can read reports before enforcing stricter handling.
Step 6: Protect your old messages
Mail that arrived before the move still sits on the old server. When the old plan ends, it may be deleted without warning. Before that happens, copy it. The simplest approach is to add both accounts to a mail app using IMAP and drag folders from the old account to the new one. Another option is to export a mailbox backup from the control panel. Do this for every important mailbox, including shared ones, and check that the folder counts look right after copying.
Keep the old plan active until you have confirmed that new mail arrives, outgoing mail is accepted, and the old messages are safely copied. Cancelling too early is the most common cause of permanent loss.

A worked example
A small design studio moves its website to a new host on a Friday. The hosting company tells them to change the nameservers, and they do. On Monday, a client says an email to the studio bounced with a message that the domain has no mail server.
The owner checks the registrar and sees the new nameservers. Opening the DNS zone at the new host, they find an A record for the website and nothing else. The old zone had MX, SPF and a DKIM key, but those were never copied. The owner asks the email provider for the correct MX hosts, adds them, and publishes the provider's SPF and DKIM values. Within an hour, a test message from a personal account arrives. A reply from the studio goes to the inbox rather than spam. Finally, the owner connects the old account by IMAP and copies the last two years of messages before the old plan expires. The whole problem was a zone that was built for the website only.
Limits and what to watch for
Some mail may be permanently lost. Messages sent while no server accepted mail are retried by the sender for a limited time, often a few days, and then returned as failures. Ask important senders to resend anything sent during the gap.
A bounce can also come from a full mailbox, a blocked sender or a content filter rather than DNS, so read the message before assuming. If your outgoing mail goes to spam after the move, the new sending server may have a poor reputation or lack authentication, and fixing records may not be enough on its own.
Keep changes small and documented. Take a screenshot or export of the DNS zone before every edit, so you can undo it. Avoid editing MX records during peak business hours when possible, and tell your team what is changing. For small teams that want mail kept separate from the website so a hosting move cannot affect it, the article on the business email buying checklist lists what to compare.
Quick checklist
- Send a test message and read any bounce text.
- Confirm which nameservers are in charge of the domain.
- Rebuild MX records using the exact values from your mail provider.
- Confirm mailboxes, aliases and forwarders exist and are active.
- Set mail routing to local or remote correctly.
- Update SPF, DKIM and DMARC records.
- Copy old mail by IMAP or backup before the old plan ends.
- Retest incoming and outgoing mail, including a message to spam-prone providers.
Summary
Company email usually stops after a hosting change because DNS records, not the mailboxes themselves, were left behind or replaced. Find which zone is in charge, rebuild the MX records, check mailbox and routing settings, restore SPF, DKIM and DMARC, and protect old messages before ending the old plan. Work in that order, one change at a time. If you want mail that stays independent of the website, the Business Email page explains how a dedicated mail service is set up.
Frequently asked questions
Why did my company email stop after I changed web hosting?
Email delivery is controlled by DNS records, mainly MX records. When you change hosting or nameservers, the DNS zone often changes too, and the MX, SPF and DKIM records may be missing or point to the old server.
Do I have to move my mailboxes when I move the website?
Not necessarily. Website hosting and email can live in different places. If email is hosted with a separate provider, you only need to keep the MX and related records pointing to that provider when the DNS zone moves.
Will old emails disappear when I change hosting?
Messages stored on the old server stay there until the account is closed. Export or copy them before the old plan ends, using IMAP sync or a backup of the mailbox, so nothing is lost.
How long until mail arrives normally again?
After the MX records are correct, new mail usually starts arriving within minutes to a few hours, depending on how long resolvers cache the old records. Sending servers also retry for a period, so some delayed mail may arrive later.
References
About the author

Bob Kanokphon Thongdee
- Founder of XPASS VPN
- Co-founder of eSIMonline.asia
- More than 7 years in online marketing
- Founder of Cojourney Visa and Cojourney Travel
Want email on your own domain?
Business email with your domain name, priced per mailbox.
See business emailKeep reading

Business Email Guides
Email Disappeared After Changing the Domain Name: How to Fix It
An email address is tied to a domain, so a new domain name means new addresses. Here is how to find old mail, restore delivery and move over without losing messages.
10 min read

Business Email Guides
Planning a Company Website? Prepare Your Domain and Email First
A company profile website needs a domain and matching business email. Learn what to decide, what to prepare and which mistakes to avoid before you launch.
10 min read

Business Email Guides
A Business Email Buying Checklist for Small Teams
A practical list of questions to answer before you pick a business email service, so a small team does not discover the gaps after the first month.
10 min read