Who is this for?
Customers using HostBible cPanel hosting whose domain DNS is managed in cPanel and who want their domain email to work in Google Workspace (formerly G Suite).
At a glance (what you’ll do)
Verify your domain with Google (TXT).
Set Email Routing to Remote in cPanel.
Add Google’s MX record(s).
Publish SPF (TXT).
Turn on DKIM (TXT).
(Optional) Add DMARC (TXT) and custom CNAME for
mail.yourdomain.com.Activate Gmail and test.
Before you start
Make sure your domain’s nameservers point to HostBible (so cPanel is authoritative for DNS).
Have Google Workspace Admin access.
1) Verify your domain with Google (TXT)
If you haven’t already verified your domain in the Google Admin console:
In Google Admin: Account → Domains → Manage domains → Verify domain.
Copy the TXT value that begins with
google-site-verification=. Google HelpIn cPanel → Domains → Zone Editor → Manage (next to your domain) → + Add Record → Add “TXT” Record:
Name/Host:
@(or leave blank)Type: TXT
Value: paste the google-site-verification TXT
Save.
Back in Google, click Verify. It can take up to an hour to confirm (but often quicker). Google Help
2) Set Email Routing to Remote in cPanel
This prevents the HostBible server from trying to accept mail locally once you switch to Google.
Go to cPanel → Email → Email Routing
Choose your domain → select Remote Mail Exchanger (or Automatically Detect Configuration, which will set Remote when MX isn’t local) → Change. cPanel & WHM Documentation
3) Add Google’s MX records in cPanel
Recommended (single record) — for all domains, especially new setups
Host/Name:
@Type: MX
Priority:
1Destination:
smtp.google.comSave.
(Remove any non‑Google MX records so only Google’s remain.)
Note: Propagation can take up to 72 hours; leave TTL at the default if unsure. Google Help
Legacy alternative (still supported)
If you prefer the older multi‑record setup (or you already use it and everything works), keep or add these five MX records:
ASPMX.L.GOOGLE.COM— priority 1ALT1.ASPMX.L.GOOGLE.COM— priority 5ALT2.ASPMX.L.GOOGLE.COM— priority 5ALT3.ASPMX.L.GOOGLE.COM— priority 10ALT4.ASPMX.L.GOOGLE.COM— priority 10
(These legacy hosts remain supported; you don’t have to change if your email already works.) cPanel SupportGoogle Help
How to add in cPanel:
cPanel → Domains → Zone Editor → Manage → + Add Record → Add “MX” Record → fill fields above → Save. cPanel & WHM Documentation
After adding MX: In Google Admin, Activate Gmail for the domain (if prompted). Expect up to 72 hours for the change to be recognized globally. Google Help
4) Publish an SPF record (TXT)
SPF tells recipients that Google is allowed to send mail for your domain.
If you send only via Google Workspace, use:
v=spf1 include:_spf.google.com ~allIf you also send via other services (Mailchimp, a CRM, etc.), combine them into one SPF record (never publish multiple SPF records for the same host). Example:
v=spf1 include:_spf.google.com include:servers.mcsv.net ~allGoogle Help
How to add in cPanel:
Zone Editor → Manage → + Add Record → Add “TXT” Record
Name/Host:
@Type: TXT
Value: your SPF line above → Save. cPanel & WHM Documentation
5) Turn on DKIM (TXT)
DKIM cryptographically signs your outgoing mail.
In Google Admin: Apps → Google Workspace → Gmail → Authenticate email (DKIM).
Click Generate New Record, choose 2048‑bit and the default selector
google(unless you already use it).Copy the DNS Host name (e.g.,
google._domainkey) and the TXT value (v=DKIM1; k=rsa; p=...).In cPanel Zone Editor, add a TXT record:
Name/Host:
google._domainkeyType: TXT
Value: the long DKIM key from Admin console → Save.
Back in Admin console, click Start authentication after DNS propagates. Google Help
6) (Optional) Add a DMARC record (TXT)
DMARC helps protect your brand from spoofing. Google recommends rolling it out gradually:
Start (monitor‑only):
_dmarc.yourdomain.com(TXT) →
v=DMARC1; p=none; rua=mailto:[email protected]; adkim=s; aspf=s
(use a real reporting mailbox forrua)Later, after reviewing reports, increase enforcement to
p=quarantineorp=reject. Google Help+1
Add via Zone Editor → Add “DMARC” (creates TXT) or add a TXT manually as above. cPanel & WHM Documentation
7) (Optional) Create a friendly URL for Gmail
Prefer mail.yourdomain.com instead of the long default sign‑in URL?
In Google Admin: Account settings → Custom URLs; set the Gmail prefix to
mail.In cPanel Zone Editor, add a CNAME:
Name/Host:
mailTarget/Value:
ghs.googlehosted.com→ Save. Google Help
Copy‑and‑paste record examples
Replace yourdomain.com with your domain. Keep TTL default if unsure.
MX (choose one approach):
Single (recommended)
Name/Host:
@Type: MX
Priority: 1
Destination: smtp.google.com Google Help
Legacy set (supported)
ASPMX.L.GOOGLE.COM(priority 1)ALT1.ASPMX.L.GOOGLE.COM(priority 5)ALT2.ASPMX.L.GOOGLE.COM(priority 5)ALT3.ASPMX.L.GOOGLE.COM(priority 10)ALT4.ASPMX.L.GOOGLE.COM(priority 10) cPanel Support
SPF (TXT):
Host:
@Value:
v=spf1 include:_spf.google.com ~all(add other senders as needed; one SPF per host) Google Help
DKIM (TXT):
Host:
google._domainkeyValue:
v=DKIM1; k=rsa; p=…(paste from Google Admin → Authenticate email) Google Help
DMARC (TXT):
Host:
_dmarcValue (starter):
v=DMARC1; p=none; rua=mailto:[email protected]; adkim=s; aspf=sGoogle Help
Custom Gmail URL (CNAME):
Host:
mailTarget:
ghs.googlehosted.comGoogle Help
Activate & test
In Google Admin, Activate Gmail for the domain if prompted. Google Help
Wait for DNS to propagate (can take up to 72 hours). Google Help
Use Google’s Admin Toolbox Dig to confirm MX/SPF/DKIM are live, then send/receive a few messages to test. Google Help
Troubleshooting & tips
Email Routing still Local? Re‑set Email Routing → Remote Mail Exchanger in cPanel so the server never tries to keep mail locally. cPanel & WHM Documentation
Multiple SPF records break SPF. Merge everything into one TXT that starts with
v=spf1. Google HelpDon’t mix providers’ MX. Remove any non‑Google MX entries; keep either the single
smtp.google.comrecord or the legacy five, not both. Google HelpTTL formats vary. If a provider asks for seconds,
3600(1 hour) is a sensible default; Google’s help suggests using your domain host’s default. Google HelpDKIM key size. Use 2048‑bit if supported; publish the TXT at
google._domainkey. After DNS propagates, click Start authentication in Admin. Google HelpMoving from legacy to single MX? You don’t have to change if mail works; both are supported. If you do change, do it in a maintenance window and keep SPF/DKIM/DMARC as‑is. Google Help
FAQ
Is “G Suite” the same as Google Workspace?
Yes—Google rebranded G Suite to Google Workspace. The terminology in this article covers both so it’s easier to find. Google Workspace
How long until email works?
MX changes can take up to 72 hours to propagate globally. You may see partial delivery earlier. Google Help
Can I keep cPanel’s own DKIM/SPF toggles on?
When your mail is handled by Google, rely on the DNS TXT records you publish for SPF/DKIM. cPanel’s “Email Deliverability” screen is for the server’s own mail; it won’t generate Google’s DKIM for you. cPanel & WHM Documentation
Need a quick checklist?
Verify domain with Google (TXT). Google Help
cPanel Email Routing → Remote. cPanel & WHM Documentation
Add MX:
smtp.google.compriority 1 (or legacy 5). Google HelpcPanel SupportAdd SPF TXT with
_spf.google.com. Google HelpGenerate & publish DKIM TXT, then Start authentication. Google Help
(Optional) Add DMARC (start at
p=none, then enforce). Google Help(Optional) Add
mail.CNAME →ghs.googlehosted.com. Google HelpActivate Gmail; test send/receive. Google Help
