21+ years in hosting · Jaipur, India · INR billing with 18% GST · 24/7 email support
Blog · WebJi® India

How to Add an MX Record in cPanel

Quick answer

To add an MX record in cPanel, open Domains › Zone Editor, click + MX Record on your domain, enter the priority (lower wins) and the mail hostname your provider gives, then delete the old default MX. Set Email Routing to Remote if Google, Zoho or Microsoft 365 hosts your mail. The edit only works where the nameservers point.

For business owners and web admins moving domain email to Google Workspace, Zoho Mail or Microsoft 365 from a cPanel account.

✓ In business since 2005
✓ INR + GST billing
✓ 24/7 Email Support — avg reply < 60 min
GuideWebJi®
knowledge
Read time
3 min
Sections
7
Updated
14 Nov 2026
Written by
WebJi® team

What does an MX record do?

An MX (mail exchanger) record tells sending servers which mail server accepts email for your domain; servers try the lowest priority number first. Each MX points to a hostname, never an IP address, and that hostname must have its own A or AAAA record rather than being a CNAME.

Fields of an MX record in cPanel's Zone Editor
FieldWhat to enterExample
Name / hostThe domain itself (shown as the domain or @)example.in.
PriorityLower number wins; 0 is highest10
DestinationMail server hostname from your providermx.zoho.in
TTLSeconds resolvers may cache it3600 (lower before a migration)

Where should you add the MX record?

Add it wherever the domain's nameservers point: in cPanel's Zone Editor only if the domain uses your hosting's nameservers, otherwise at Cloudflare or your registrar. An edit in a zone that is not authoritative changes nothing.

Check which nameservers are live before editing:

dig NS example.in +short

If the answer lists Cloudflare or the registrar's servers, make the change there. Nameserver changes themselves are covered in how to change nameservers.

How do you add an MX record in cPanel?

Open Domains › Zone Editor, click "+ MX Record" on your domain's row, enter the priority and the destination hostname, save, then delete the old default MX if mail is moving to another provider.

  1. Log in to cPanel and open Domains › Zone Editor.
  2. Click Manage on the domain and filter by MX to see current records, usually mail.example.in or the domain itself.
  3. Click "+ MX Record" (or Add Record › MX) and enter priority and destination exactly as your provider lists them.
  4. Repeat for each record your provider gives.
  5. Delete the old default MX so old and new servers do not both receive mail.
  6. Set Email › Email Routing to match, as described below.

What MX values do Google Workspace, Zoho Mail and Microsoft 365 use?

Google Workspace now uses a single MX, smtp.google.com at priority 1; Zoho Mail uses three records that depend on your Zoho data centre; Microsoft 365 uses one domain-specific mail.protection.outlook.com host. Always copy the exact values from your provider's admin console, which is the authority for your domain.

Typical MX records for common email providers
ProviderDestinationPriority
Google Workspace (new setups)smtp.google.com1
Google Workspace (older setups)ASPMX.L.GOOGLE.COM, ALT1–ALT4.ASPMX.L.GOOGLE.COM1, 5, 5, 10, 10
Zoho Mail, India data centre (zoho.in accounts)mx.zoho.in, mx2.zoho.in, mx3.zoho.in10, 20, 50
Zoho Mail, US data centre (zoho.com accounts)mx.zoho.com, mx2.zoho.com, mx3.zoho.com10, 20, 50
Microsoft 365yourdomain-in.mail.protection.outlook.com (shown in the admin centre)0

Many Indian businesses sign up for Zoho on zoho.in, so check which domain your Zoho admin console uses before copying the .com values. After MX, add the provider's SPF and DKIM as TXT records, as in the TXT record guide.

Should Email Routing be Local or Remote after an MX change?

Choose Local Mail Exchanger when mailboxes live on this cPanel server, and Remote Mail Exchanger when Google, Zoho, Microsoft 365 or another provider receives the mail. Set it by hand after any MX change.

cPanel Email Routing options
OptionUse it whenRisk if wrong
Local Mail ExchangerMailboxes are on this cPanel accountWebsite mail to your own domain stays on the server and never reaches Google or Zoho
Remote Mail ExchangerAn external provider hosts the mailboxesNone, if MX points to that provider
Automatically DetectRarely; it guesses from the local zoneMay not reflect DNS managed elsewhere

The classic symptom of a wrong setting: outside senders reach your Google inbox, but contact-form mail from your own website never arrives.

How do you check that the new MX record is working?

Query the MX record from outside, then send a test email from a different provider such as Gmail and confirm it lands in the new inbox.

dig MX example.in +short
nslookup -type=mx example.in

Resolvers can keep the old record until its TTL expires, so a change can look live to you and old elsewhere for up to that time; lower the TTL a day before a planned move. The MX record lookup tool shows what public DNS returns, and what an MX record is explains priorities and fallback in more depth.

FAQ

Frequently asked questions

Can an MX record point to an IP address?

No. An MX destination must be a hostname. If your mail server only has an IP, create an A record such as mail.example.in pointing to it, then use that hostname as the MX destination.

Do I need more than one MX record?

Only if your provider gives several, as Zoho does. Extra records act as fallbacks tried in priority order. Do not mix providers: an old cPanel MX alongside Google's means some mail goes to the wrong server.

Will changing MX records affect my website?

No. MX records only route email. The website follows A, AAAA or CNAME records, which you leave untouched. Webmail on the old server stops receiving new mail once MX points elsewhere.

What happens to old emails when I change MX?

They stay in the old mailboxes; only new mail goes to the new provider. Copy them across with IMAP migration before closing the old accounts, as in migrating email accounts.

Last editorial update: 15 November 2026.

WebJi® since 2005

Ready to get started with WebJi®?

Join 12,000+ businesses across India and overseas. INR pricing, 18% GST shown before payment and 24/7 email support in Hindi and English — average first reply under 60 minutes.