
Published 4 December 2026
An MX record tells other mail servers which server should receive email for your domain. Before changing MX records in cPanel, confirm where your mailboxes are hosted and check the domain’s Email Routing setting. A correct-looking DNS change can still disrupt incoming mail if it points to the wrong provider or the server is set to handle mail locally.
This guide is for site owners moving email to another provider, bringing it back to their hosting account, or troubleshooting messages that are not arriving. It focuses on the checks to make before editing; use the exact MX values supplied by the email provider you intend to use.
First confirm where your domain’s email is hosted
List the services that send or receive mail for your domain. That might include mailboxes on the web-hosting account, a separate business-email provider, a transactional email service, or a combination. Do not assume that website hosting and email hosting use the same provider.
Before changing anything, note the current MX records, their priorities and destinations, and the current Email Routing selection in cPanel. Also identify any mailboxes, contact forms, ecommerce notifications or applications that depend on the domain. This gives you a reference point if delivery changes unexpectedly.
- Incoming mail: Which provider should receive messages sent to addresses such as sales@example.com?
- Website mail: Do forms or store notifications send using this domain, and through which mail service?
- DNS control: Is the domain’s active DNS zone managed in this cPanel account or elsewhere? Editing a zone that is not authoritative will not change public DNS.
Understand MX priority and Email Routing
Each MX record has a destination hostname and a priority number. When a domain has multiple MX records, the lowest-numbered priority is preferred. The destination should be the fully qualified mail-server name provided by the email service; do not guess it from your website’s hostname.
cPanel’s Email Routing setting determines how the hosting server handles incoming mail for the domain. “Automatically Detect Configuration” is the documented recommended option, but cPanel notes that it checks the local zone-file entry rather than performing an external DNS lookup. It also does not automatically change the setting after an MX update. If mail is hosted remotely, verify that the routing choice matches that arrangement instead of assuming it has updated itself.
Important: cPanel warns that incorrect Email Routing settings can disrupt a domain’s ability to receive mail. If you are uncertain whether the server should accept mail locally or send it to a remote exchanger, ask your hosting provider before changing the setting.
Change MX records carefully in cPanel
- Get the target values. Copy the complete MX destination and priority from your intended email provider’s setup instructions. Check whether it requires one MX record or several.
- Check the active DNS provider. If the domain’s nameservers point to a third-party DNS service, make the change in that provider’s DNS panel, not in a cPanel zone that is not authoritative.
- Review current records. In cPanel, open Domains → Zone Editor, locate the domain and inspect its MX records. Save the existing destinations and priorities before editing.
- Update only what the provider specifies. Add, edit or remove MX records according to the provider’s instructions. Avoid deleting unrelated A, CNAME or TXT records: they can support the website, verification or email authentication.
- Check Email Routing. Open Email → Email Routing, select the domain and confirm the setting reflects the intended local or remote mail handling. If the correct choice is unclear, pause and ask the hosting provider.
Zone Editor availability and record-editing options can depend on features enabled by the hosting provider. If you cannot see MX controls, the account may not have the required interface access, or DNS may be managed elsewhere.
Verify delivery and keep a rollback note
After saving, check the domain’s MX records through the DNS service that is authoritative for it. Then test from an external mailbox: send a message to a real address on the domain and reply from that mailbox. Test website contact forms and store notifications separately, since their sending path may differ from incoming mail.
- Confirm the published MX destinations and priorities match the intended provider.
- Check that the mailbox exists and can receive mail at the destination service.
- Check Email Routing again if the hosting account handles any mail for the domain.
- Keep a timestamped note of the former records and the provider’s instructions until tests pass.
DNS answers can differ while cached information expires, so a successful edit in a control panel is not by itself proof that every sender is using the new destination. If delivery fails, compare the published records with the provider’s required values and restore the saved configuration only after identifying what changed. Avoid repeatedly switching records without a clear diagnosis.
When to ask for help
Contact your email provider or hosting provider before editing if you cannot tell which service is authoritative for DNS, the account contains working mailboxes, or the Email Routing option does not match your setup. This is especially useful during a planned migration: decide the mail destination first, prepare the new mailboxes, and test the new service before removing the old arrangement.
HostCupid Web Solutions Private Limited, a Chennai-based hosting and website-services company operating since 2018, provides hosting and migration assistance. For a customer moving a website while keeping email with a separate provider, a practical support request is to confirm which DNS zone is active and what MX and routing values belong to the intended mail setup. The mail provider’s own configuration instructions should remain the source of the exact record values.
The safest MX change is a deliberate one: know who receives mail, preserve the current settings, edit the authoritative DNS zone, align cPanel routing, and test real delivery before considering the change complete.
Sources
- Zone Editor — cPanel & WHM Documentation · 2026-10-01
- Email Routing — cPanel & WHM Documentation · 2026-07-08
- cPanel Common Questions — DNS and MX records
