10% Discount Only BDIX VPS And Turbo Hosting Limited Offer
00 : 00 : 00
UHBD10
Will Changing Nameservers Affect Email

Will Changing Nameservers Affect Email?

  • By Robin Hossain
  • 07 Nov, 2026

Bottom line: Changing nameservers can affect your email, but only if your email records are left behind. Your mailboxes don't sit at your nameservers, so nothing is deleted. Email breaks when the MX, SPF and DKIM records aren't copied to the new DNS provider before you switch. One exception: if your mailboxes live on your old hosting server and you cancel it, those mailboxes must be migrated too.

You're moving your website to new hosting, or pointing your domain to Cloudflare. The new provider hands you two nameservers to paste in. Before you click save, one question matters more than the website: will changing nameservers affect email?

For most small businesses, the inbox is where orders, client replies and invoices arrive. A few hours of bounced mail can cost more than a few hours of website downtime.

Email problems after a nameserver change follow a clear pattern, so you can prevent them. Below, we explain what nameservers control, what actually breaks, and the checklist our support team uses when we migrate sites to UmmahHostBD.

What Do Nameservers Actually Do?

Short answer: Nameservers decide which company answers DNS questions for your domain. Whoever runs your nameservers controls every DNS record, including the ones for email.

Every domain has a DNS zone. It's a small list of records that tells the internet where your services live:

  • A record points your domain to your website's server IP address.

  • MX record tells other mail servers where to deliver your email.

  • TXT records hold SPF, DKIM and DMARC, which prove your emails are genuine.

  • CNAME records point subdomains such as www or autodiscover to another hostname.

When you change nameservers at your domain registrar, you aren't editing one record. You're moving the whole zone to a new DNS provider. Any record that isn't rebuilt there simply stops existing.

ExploreOur Full Guide: What Are Nameservers?

Will Changing Nameservers Affect My Email?

Short answer: Only if the new DNS zone is missing your email records. When the MX and TXT records match, email keeps working with no interruption.

Your mailbox lives with your email provider. That could be Google Workspace, Microsoft 365, Zoho Mail, or the email that comes with your cPanel hosting. A nameserver change doesn't touch the mailbox itself. It changes the directory that points to it.

This table shows what happens in the most common situations:

Your situation

Will email be affected?

You change only the A record to point the website to new hosting

No. Email records are untouched.

You change nameservers, and email is with Google Workspace, Microsoft 365 or Zoho

Only if MX, SPF and DKIM aren't recreated at the new DNS provider

You change nameservers, and email stays on your old host's server

Only if the MX record and the mail server's A record aren't copied over

You move hosting and cancel the old host, where your mailboxes live

Yes, unless the mailboxes are migrated to the new host first

Why Did My Email Stop After Changing DNS?

Short answer: In most cases, the MX record was never added at the new DNS provider. Sending servers can't find where to deliver your mail, so messages get delayed and then bounce.

Here's what support teams see again and again. Someone switches nameservers, the website loads fine, and everything looks done. Hours later, a client calls to say their emails are bouncing.

The website works because the new host created an A record for it. Nobody created the email records. The usual culprits are:

  1. Missing MX record. Incoming mail has no destination.

  2. Wrong MX value or priority. A small typo, or a missing trailing dot on some panels, can break delivery.

  3. Missing SPF, DKIM or DMARC. Your sent emails start landing in spam or get rejected.

  4. Mail subdomains not copied. Records like mail, smtp, imap or autodiscover disappear, so Outlook and phone apps can't connect.

  5. Propagation still in progress. Some networks are still reading old, cached answers.

SPF, DKIM and DMARC: What Does Each One Do?

These three records are often grouped together, but each has a different job. If one is missing, you may see a different problem.

Record

What it does

What can go wrong if it's missing

SPF (TXT)

Lists which servers are allowed to send email on behalf of your domain

Receivers can't confirm the sending server is authorised, so mail may go to spam or be rejected

DKIM (TXT)

Publishes a public key so receivers can verify the cryptographic signature on your outgoing emails

Signatures can't be checked, which weakens trust in your mail

DMARC (TXT)

Tells receiving servers what to do when SPF or DKIM checks fail (none, quarantine or reject) and where to send reports

No policy guidance for receivers, and no reports to help you spot spoofing

Note that SPF, DKIM and DMARC don't route incoming mail. That's the MX record's job. These three mainly affect whether the email you send is trusted.

Do I Need to Change MX Records?

Short answer: Usually no. You need to copy your existing MX records into the new DNS zone, not change their values. Change them only if you're also switching email providers.

Moving DNS and moving email are two separate jobs, and mixing them up causes most outages:

  • Same email provider, new nameservers: recreate the exact same MX values and priorities in the new zone.

  • New email provider: use the MX values your new provider publishes, and remove the old ones.

Google's own Google Workspace MX setup guide advises against changing MX records that are already working. If your mail runs on cPanel hosting, the MX record often points to mail.yourdomain.com. In that case, the A record for mail has to move as well, or the MX points nowhere.

How Long Can Email Be Down After Changing Nameservers?

Short answer: With records prepared in advance, there should be no outage. If records are missing, email can fail until you add them and the change spreads. There's no fixed time limit: it depends on caching and TTL values. Many changes show up within minutes to a few hours, and providers often quote up to 48 hours as a safe outer estimate.

This spreading period is called DNS propagation. DNS resolvers around the world cache answers for a set time, known as the TTL (time to live). Until that time runs out, a resolver can keep giving out the old answer. Because each resolver cached the record at a different moment, results differ from one network to another.

That's why problems can look random: one client's email arrives, another's bounces.

To shorten the window, lower your TTL to about 300 seconds before the move. Timing matters here. Lowering the TTL doesn't make records that are already cached expire right away. Resolvers keep the old copy until its old TTL runs out. So make the change at least one full old-TTL period ahead (for a 24-hour TTL, a day or more). Cloudflare's DNS migration guide recommends lowering TTLs 24 to 48 hours before a migration, or longer to match your longest current TTL.

Nameserver changes add one more layer. The NS records for your domain are cached at the registry level too, often with a long TTL that you can't control. That's another reason the switch can take hours to reach everyone.

The good news for incoming mail: most sending servers retry a failed delivery for a while before giving up. A short gap usually fixes itself. A missing MX record left for a day or more usually doesn't.

How Do I Keep Email Working After Changing Hosting?

Short answer: Back up every DNS record, rebuild the email records at the new DNS provider, compare them, and only then switch nameservers. If your mailboxes live on the old host, migrate them before you cancel it.

Follow these six steps:

  1. Back up your current DNS records. In the cPanel Zone Editor (or your current DNS panel), export or screenshot every record. Don't trust memory.

  2. Lower the TTL. Set MX and other key records to about 300 seconds, at least 24 hours before the switch.

  3. Recreate every email record at the new provider. Add MX records with the same priorities, the SPF, DKIM and DMARC TXT records, and any mail, smtp, imap or autodiscover records.

  4. Compare old and new side by side. Check each value character by character. Long DKIM keys are easy to cut short when pasting.

  5. Change the nameservers at your registrar. Do this only after the new zone is complete.

  6. Test sending and receiving. Email an outside Gmail account and reply back. Then look up your MX and SPF records with the free UmmahHostBD DNS Checker.

If your mailboxes are on the old host, add one more step before step 5: move the mailboxes and their messages to your new business email hosting or web hosting account. Our migration service includes email account transfer and DNS setup, so you don't have to do it alone. Contact our support team before you switch.

Moving to Cloudflare? What Should You Check First?

Short answer: Make sure every email record was imported, and keep mail records set to "DNS only."

Cloudflare scans your old zone when you add a domain. That scan is handy, but Cloudflare's own full setup documentation says it isn't guaranteed to find every record. So before switching:

  • Check every email record by hand. Uploading a full zone file through Cloudflare's import tool is more reliable than the quick scan.

  • Keep mail records "DNS only" (grey cloud). Mail clients and servers need a direct connection. Proxying names like mail through Cloudflare can break email.

  • Handle DNSSEC in two stages, if it's enabled.

    1. Before the switch: turn off DNSSEC and remove the old DS record at your registrar. Cloudflare lists this as a requirement before a nameserver change. A DS record that still points to your old provider's keys can make your whole domain fail to resolve, including email.

    2. After Cloudflare shows the domain as Active: enable DNSSEC in the Cloudflare dashboard. Cloudflare will give you a new DS record. Add it at your registrar to turn DNSSEC back on. Skipping this step leaves your domain without DNSSEC protection.

How Do I Check If My Email Is Working?

Short answer: Send test emails both ways and look up your MX record. If the MX shows your email provider's servers, incoming mail is routed correctly.

A quick routine after any DNS change:

  • Send an email to your domain from a personal Gmail or Yahoo account.

  • Reply from your domain and confirm it lands in the inbox, not spam.

  • Run an MX and SPF lookup in the UmmahHostBD DNS Checker or MXToolbox.

  • Test from your phone on mobile data too, since another network may still hold older cached records.

Still failing after 24 to 48 hours? Compare the new zone with your step 1 backup. The missing record is almost always there.

The Bottom Line

Changing nameservers only breaks email when the email records get left behind. Back up your DNS, rebuild the records at the new provider, check them, and then switch. If your mailboxes live on the old host, move them before you cancel it.

Related reading: The Ultimate cPanel Hosting Guide for Beginners · Backup in Hosting Services

Frequently Asked Questions

Will changing nameservers delete my emails?

No. Mailboxes and saved messages stay with your email provider. A nameserver change only affects where new mail is routed. The one risk is cancelling an old hosting account that still holds your mailboxes.


Can I change nameservers without affecting email?

Yes. Copy every MX, SPF, DKIM and DMARC record to the new DNS zone before you switch. With matching records, there should be no interruption.


What happens to emails sent during propagation?

Most sending servers retry failed deliveries for a while, so short gaps often resolve on their own. If the MX record stays missing for too long, senders give up and the message bounces.


Should I change nameservers or just the A record?

If you only need to point your website to new hosting, changing the A record is the safer option. It leaves your email records untouched. Change nameservers when you want the new provider to manage all your DNS.


Why do my emails go to spam after changing DNS?

Your SPF, DKIM or DMARC records are probably missing or wrong in the new zone. Receiving servers can't verify your mail, so they treat it as suspicious.


Do I need to update email settings in Outlook or my phone?

Usually not, if the mail server stays the same. But if records like mail or autodiscover weren't copied, apps may fail to connect until you add them back.

Robin Hossain

Author By

Robin Hossain

Chief Technology Officer (CTO) at Ummah Host BD. He specializes in web hosting infrastructure, Linux server administration, cPanel/WHM management, cloud technologies, cybersecurity, and website performance optimization. Robin is passionate about helping individuals and businesses build secure, fast, and reliable online platforms

Social Share :