In cPanel, open Zone Editor under Domains, click Manage beside the domain and filter by mail exchange (MX) records. Edit the existing record or add one, entering your provider's priority and the mail server's hostname, never an IP address. Lower priority numbers are tried first. Delete MX records still pointing at an old provider, because conflicting records cause delivery failures.
MX (Mail Exchange) records tell the internet which mail servers handle email for your domain. If you are switching to a third-party email provider or setting up custom mail routing, you will need to update these records in cPanel’s Zone Editor.
This article covers how to change MX records in cPanel using the Zone Editor, including setting the correct priority value so mail is delivered to the right server.
The Zone Editor in cPanel lets you add, edit and delete DNS records for your domain, including MX records. You will set a destination (the mail server address) and a priority value, which controls the order in which mail servers are tried. Lower numbers indicate higher priority, with 0 being the highest.

mail.example.com. Do not enter an IP address here.
Your MX records are now updated. Mail sent to your domain will be routed to the new mail server once the DNS change has propagated.
DNS changes do not take effect instantly. After saving your MX records, allow up to 48 hours for propagation to complete across all DNS resolvers worldwide.
If no MX records appear in the Zone Editor, your domain may be using external nameservers. In that case, the DNS zone is managed outside cPanel and you will need to update the records with your DNS provider directly.
If you have multiple MX records and mail is routing incorrectly, the priority values may be misconfigured. Lower numbers take precedence, so a record with priority 0 is tried before one with priority 10.
You have updated the MX records for your domain using cPanel’s Zone Editor. Your domain’s email will now route to the mail server you specified once the DNS change has propagated.
To keep your email configuration complete, consider setting up SPF and DMARC records to help prevent spoofing. See our guides on adding or editing SPF records and setting up a DMARC record in cPanel for next steps.
Did this guide solve your problem?
Our UK support team answers tickets and live chat every day. Send us the guide you were following and where it stopped working.
Related guides
Every cPanel hosting plan includes mailboxes you manage yourself.
Get cPanel HostingRegister the domain your mailboxes will sit on, with hundreds of extensions available.
Search Domains