Cloud House Technologies Logo
CloudHouse Technologies
HomeServicesProjectsBlogAbout UsCareersContact UsLogin
    Cloud House Technologies Logo
    CloudHouse Technologies
    HomeServicesProjectsBlogAbout UsCareersContact UsLogin

    How to Fix Email Not Working After cPanel Server Migration (2026 Guide)

    Priya

    Content Writer & Researcher

    Last Updated: 24 June 2026
    How to Fix Email Not Working After cPanel Server Migration (2026 Guide)
    🖥️

    Need Expert Help With Your cPanel Server Migration and Email Setup?

    Email downtime during a migration costs customers and revenue. CloudHouse's migration specialists handle the full cutover — MX records, SPF/DKIM, Exim config, and email client verification — with zero-downtime processes. Get your migration done right.

    🔧 Book Free DiagnosisCall NowWhatsApp
    🖥️12,400+PCs Fixed
    ⭐4.9★Google Rating
    ⚡<15 minAvg. Response
    🛡️ISO 27001Certified

    Email almost always breaks during a server migration — yet it's the last thing most migration guides cover in enough detail. Website files transfer cleanly, databases import correctly, the site loads fine on the new server, and then you discover that no one has been receiving emails for hours. By the time you notice, customers have already sent messages into a void.

    This guide covers every reason email stops working after a cPanel server migration and the exact steps to diagnose and fix each one — including MX records, SPF/DKIM authentication, Exim configuration, and email client settings.

    Why Email Breaks After a cPanel Server Migration

    Email delivery depends on multiple independent systems working together. A migration touches all of them:

    • MX records — still pointing to the old server's IP
    • DNS propagation — nameservers not yet propagated to the new server
    • SPF/DKIM/DMARC records — not recreated on the new server, causing delivery failures
    • Exim configuration — the mail server isn't accepting mail for the domain on the new server
    • Email client settings — still pointing to the old hostname
    • SSL/TLS certificates — mail client can't connect due to certificate hostname mismatch

    💡 None of these worked? Skip the guesswork.

    Get Expert Help →

    Step 1: Verify MX Records Point to the New Server

    MX records control where email is delivered. Even after you update your nameservers, the MX record itself must point to the correct hostname on the new server.

    1Check your current MX records

    Run this from your terminal or use MXToolbox.com:

    dig MX yourdomain.com +short

    The result should show your new server's hostname (e.g., mail.yournewserver.com). If it still shows the old server, the MX record has not propagated — or hasn't been updated at all.

    2Update MX records in cPanel Zone Editor

    Log into cPanel on the new server → Domains → Zone Editor → find your domain → Manage. Look for the MX record and update the destination to your new server's hostname. The standard cPanel MX record value is:

    yourdomain.com. MX 0 mail.yourdomain.com.

    Also ensure the A record for mail.yourdomain.com points to the new server's IP address.

    3Check Email Routing in cPanel

    Go to cPanel → Email → Email Routing and confirm it is set to Local Mail Exchanger. If it's set to Remote Mail Exchanger, cPanel won't accept incoming email for that domain.

    1Use cPanel Email Deliverability tool

    Go to cPanel → Email → Email Deliverability. This scans your domain's DNS for SPF, DKIM, and DMARC records and shows a green checkmark or a red warning for each. Click Repair to auto-generate the correct records for the new server.

    2Manually verify SPF record
    dig TXT yourdomain.com +short | grep spf

    A correct cPanel SPF record looks like:

    "v=spf1 +a +mx +ip4:YOUR_NEW_SERVER_IP ~all"
    3Verify DKIM key is active
    dig TXT default._domainkey.yourdomain.com +short

    This should return a long public key string starting with v=DKIM1. If it returns nothing, DKIM was not set up on the new server. In cPanel, go to Email → Email Deliverability → click Install for DKIM.

    1Check if the domain is in Exim's local domain list
    grep yourdomain.com /etc/localdomains

    If the domain isn't listed, add it:

    echo "yourdomain.com" >> /etc/localdomains
    2Check Exim mail queue for errors
    exim -bp | head -20

    Any messages stuck in the queue with ** yourdomain.com: Unrouteable address confirms Exim doesn't know about the domain.

    3Rebuild Exim configuration
    /scripts/rebuildeximconf
    /scripts/restartsrv_exim
    4Test SMTP delivery manually
    exim -bt user@yourdomain.com

    This shows how Exim would route an email to that address. The output should say router = localuser, transport = local_delivery. Any other result indicates a routing problem.

    Step 4: Fix Email Client Connection Issues

    Users connecting via Outlook, Apple Mail, Thunderbird, or a mobile email app may be unable to send or receive after migration because their email client still points to the old server hostname.

    Update incoming/outgoing server settings:

    • Incoming (IMAP): mail.yourdomain.com — Port 993 (SSL) or 143 (STARTTLS)
    • Outgoing (SMTP): mail.yourdomain.com — Port 465 (SSL) or 587 (STARTTLS)
    • Username: full email address (e.g., user@yourdomain.com)

    If users see SSL certificate errors, it means the SSL certificate for mail.yourdomain.com hasn't been issued on the new server yet. Go to cPanel → SSL/TLS → Let's Encrypt and issue a free SSL for the mail hostname, or use the server's shared hostname until the certificate is ready.

    Step 5: Handle DNS Propagation During the Cutover Window

    DNS changes take time to propagate. During this window (typically 1–4 hours if TTL was lowered in advance), some email will go to the old server and some to the new.

    Best practice during migration:

    • Lower TTL to 300 seconds at least 24 hours before the migration
    • Keep the old server running for at least 72 hours after switching DNS
    • Check the old server's Exim queue for any mail still arriving: exim -bp
    • Forward any messages stuck on the old server to the new one manually if needed

    Check propagation status:

    dig @8.8.8.8 MX yourdomain.com +short   # Google DNS
    dig @1.1.1.1 MX yourdomain.com +short   # Cloudflare DNS

    When both return the new server's hostname, propagation is complete globally.

    Checklist: Email After cPanel Migration

    • MX record points to new server hostname
    • A record for mail.yourdomain.com resolves to new server IP
    • Email Routing in cPanel set to Local Mail Exchanger
    • SPF record updated with new server IP
    • DKIM key installed and TXT record propagated
    • yourdomain.com present in /etc/localdomains
    • Exim rebuilt and restarted
    • Email client settings updated to new hostname
    • SSL certificate issued for mail.yourdomain.com
    • Old server kept running for 72 hours post-migration

    Server migrations are complex, and email is the hardest part to get right. If you're running a business-critical migration and can't afford any email downtime, CloudHouse's server migration service handles the full cutover — including email verification — with zero-downtime processes.

    Get the Free Linux Server Admin Cheatsheet (PDF)

    Essential commands for server management, networking, and troubleshooting — all on one printable page.

    Running Linux servers? Let us manage them for you.

    Our Managed Linux Server plans cover updates, security hardening, monitoring, and 24/7 incident response — so your servers stay up and your team stays focused.

    • Proactive OS patching and security updates
    • 24×7 monitoring with instant alerting
    • Backup configuration and disaster recovery
    • Dedicated Linux engineers on call
    See Pricing Plans →

    What our customers say

    “Our production server went down at 2 AM. CloudHouse had it back online in under 20 minutes. Incredible response time.”

    Arun S.

    CTO, SaaS Startup

    “They migrated our entire infrastructure from Ubuntu 18 to 22 with zero downtime. Couldn't have asked for better.”

    Deepak N.

    DevOps Lead

    Frequently Asked Questions

    The most common causes are: MX records still pointing to the old server, SPF/DKIM records not recreated on the new server, the domain missing from Exim's local domain list, Email Routing in cPanel set to Remote instead of Local, or email clients still configured with the old server's hostname.

    Book your free 15-minute diagnosis

    A certified technician will call you back within 15 minutes during business hours.

    Share this article

    Leave a Comment

    Comments (0)

    Loading comments...

    Email Still Broken After Your Migration?

    MX records, SPF/DKIM, Exim routing, DNS propagation — email after a migration has more failure points than most admins expect. Our server migration team has fixed hundreds of post-migration email issues. Contact CloudHouse for immediate diagnosis and repair.

    Call Now — FreeWhatsApp Us

    Why CloudHouse?

    • ISO 27001:2022 certified
    • 12,400+ devices supported
    • 4.9★ on Google
    • Sub-15-minute response

    CloudHouse Technologies

    Innovative cloud solutions for modern businesses. We deliver cutting-edge technology with exceptional service.

    Contact Us

    CloudHouse Technologies Pvt.Ltd
    Special Economic Zone(SEZ),
    Infopark Thirissur,4B-15,
    Indeevaram,Nalukettu Road,
    Koratty, Kerala, India-680308
    0480-27327360
    info@cloudhousetechnologies.com

    Quick Links

    • Our Services
    • Gold Loan Software
    • About Us
    • Contact
    • Terms and Conditions
    • Privacy Policy
    ISO27001:2022
    Certified

    © 2026 CloudHouse Technologies Pvt.Ltd. All rights reserved.

    Back to top