Migrate
Migrate HostGator to Gmail: cPanel to Google Workspace
Move HostGator cPanel email to Gmail or Google Workspace over IMAP. Admin guide with MX cutover, Email Routing, and DKIM steps for clean delivery.
Dan Okafor
MSP Practice Lead
The reason most teams move off HostGator email isn't the mail itself, it's everything around it: no shared drives, no calendar federation, basic spam filtering, and a webmail client that looks like 2008. Google Workspace solves all of that, and the mail moves cleanly over IMAP. The trap with HostGator specifically is that it's cPanel underneath, the MX has two settings (public DNS and an internal Email Routing flag), and Google's Data Migration Service handles cPanel sources poorly. This guide is the operational version that actually finishes inside a weekend.
Skip the manual setup — let Mailbox Taxi handle it
One desktop app, every IMAP provider, zero data leaving your machine.
What you're actually moving
Over IMAP: mail and folders. Specifically:
- Every message with original headers preserved
- Read/unread state
- Folder structure (becomes Gmail labels)
- Flagged or starred messages
- Sent mail and drafts
What does not move over IMAP, needs separate handling:
- Contacts — export per-user from HostGator webmail as vCard, import to Google Contacts
- Filter rules — recreate in Gmail
- Autoresponders — recreate in Gmail's vacation responder
- Forwarders — recreate as Google Workspace aliases or Google Groups
- Mailing lists — recreate as Google Groups with the same membership
Build a complete inventory in a spreadsheet before any data movement. Missing a forwarder leads to inbound mail bouncing the day after cutover.
HostGator specifics
HostGator is shared cPanel hosting, and that shapes the migration in three concrete ways:
- IMAP throttling is per shared IP. If your domain is on a busy server with other mail-heavy tenants, you compete with them for connection slots.
- MX has two places to set it. Public DNS via the cPanel DNS Zone Editor, and an internal Email Routing setting under cPanel, Email, Email Routing. Both must agree.
- Mailbox passwords are per-account in cPanel. No federation. You set the password in cPanel and that's the only place it exists.
Some legacy HostGator accounts run on inherited EIG/Newfold servers with slightly different cPanel layouts. The steps are identical; the navigation labels may differ by one click.
Forwarders are not mailboxes
HostGator's Forwarders panel holds mail redirects with no underlying mailbox. They won't migrate over IMAP because there's nothing on the source side to migrate from. Recreate them on the Google side as aliases (for one-to-one) or as Google Groups (for one-to-many) before MX cutover.
Provisioning Google Workspace
In the Workspace admin console:
- Verify your domain. Google supplies a TXT record. Add it inside cPanel, Domains, DNS Zone Editor. Verification usually completes within 30 minutes.
- Buy seats. Buy one more than you think you need; you'll want one for the catch-all.
- Create each user. Match the primary email exactly to the HostGator source. Set a temporary password.
- Create Google Groups for any HostGator mailing lists or one-to-many forwarders.
- Set up Workspace aliases mirroring HostGator one-to-one aliases.
For IMAP authentication into Gmail during migration:
- Per-user app passwords: turn on IMAP in each Gmail user's settings, then generate app passwords. Tedious for more than 10 users.
- OAuth with a service account and domain-wide delegation: configure once in Google Cloud Console, authorise the migration scope, the tool impersonates each user. Use this for any non-trivial migration.
The migration plan
Lower MX TTL ahead of time
cPanel, Domains, DNS Zone Editor. Edit the MX record. Drop TTL to 300 seconds. Save. Wait at least 24 hours so global DNS resolvers update.
Reset mailbox passwords
From cPanel, Email Accounts, set each mailbox password. Store securely; you need these for the migration tool to authenticate.
Pre-stage the bulk copy
Start the HostGator-to-Gmail IMAP migration. Users continue working on HostGator. Expect 1 to 2 GB per hour throughput at five concurrent workers per mailbox.
Send user comms
Two days out, send a short note: when the change is happening, that addresses stay the same, that historical mail will be in the new mailbox, and the steps for client reconfiguration.
Flip public MX record
cPanel, Domains, DNS Zone Editor. Replace existing MX with Google's five hosts:
ASPMX.L.GOOGLE.COMpriority 1ALT1.ASPMX.L.GOOGLE.COMpriority 5ALT2.ASPMX.L.GOOGLE.COMpriority 5ALT3.ASPMX.L.GOOGLE.COMpriority 10ALT4.ASPMX.L.GOOGLE.COMpriority 10
Save.
Change Email Routing to Remote
cPanel, Email, Email Routing. Select your domain. Change from "Local Mail Exchanger" or "Automatically Detect Configuration" to "Remote Mail Exchanger". Save.
Without this change, HostGator keeps delivering inbound mail to its own local Maildir even though the public MX points at Google. Symptom: external senders see mail "delivered" but it never appears in Gmail.
Run delta sync
Immediately after MX cutover and Email Routing change, run a delta pass from HostGator to Gmail. Catches messages that arrived during the propagation window.
Update SPF, DKIM, and DMARC
SPF in cPanel DNS Zone Editor:
v=spf1 include:_spf.google.com ~allDKIM in Workspace admin: Apps, Google Workspace, Gmail, Authenticate email. Generate the key, then add it as a TXT record at
google._domainkey.yourdomainin cPanel DNS.DMARC: start with
v=DMARC1; p=none; rua=mailto:dmarc@yourdomainif you don't have one.Reconfigure clients
Help users remove the old HostGator account and add the new Workspace account. Workspace auto-configures from email and password on Outlook 2019+, Apple Mail, and most mobile clients.
Gmail behaviour to expect
A few Gmail quirks that surprise people coming from cPanel webmail:
- Folders become labels. A HostGator folder
Clients/Acmeends up as Gmail labelClients/Acme. Messages can have multiple labels in Gmail simultaneously. - Conversation threading. Gmail groups messages by subject and headers into threads. Users coming from Roundcube will find this jarring at first; they can turn it off in Gmail settings.
- All Mail label. Gmail keeps every message in "All Mail" regardless of folder/label. Use it for total-count verification rather than per-folder.
- No "Trash" automatically empties. Gmail's Trash holds messages for 30 days then auto-purges. If your users relied on HostGator's behaviour of keeping deleted mail forever, they need to know.
Tip
For count verification, compare HostGator's total INBOX + Sent + Drafts + folder counts against Gmail's All Mail label. A small delta (under 1%) is normal because Gmail collapses cross-folder duplicates onto a single message with multiple labels.
Errors during the IMAP copy
Too many simultaneous connectionsfrom HostGator. Drop to five workers per mailbox. HostGator shared IMAP throttles around 10 concurrent connections per source IP.AUTHENTICATIONFAILEDagainst HostGator. Username must be the full email address; password must match cPanel exactly (case-sensitive).Connection unexpectedly closed. HostGator kills IMAP sessions after about 30 minutes. Use a migration tool that auto-reconnects and resumes from the last message processed.OAuth2 token expiredagainst Gmail. Migration scope tokens expire after seven days idle. If your migration paused for the weekend, refresh before resuming.Lookup failedagainst Gmail. Destination mailbox hasn't finished provisioning. New Workspace mailboxes take 5 to 30 minutes to be IMAP-ready.Message too large for destination. Gmail allows up to 50 MB inbound over IMAP. Larger messages need a separate one-off export to MBOX and manual import.
Where Mailbox Taxi fits
Mailbox Taxi treats HostGator cPanel IMAP and Gmail as two standard endpoints. It auto-reconnects when HostGator drops sessions, deduplicates cross-folder messages correctly on the Gmail side, and keeps a per-message manifest so the delta pass after MX cutover only copies what is genuinely new. If you would rather see the Microsoft destination path, the HostGator to Office 365 guide covers the same source with the Microsoft 365 destination. For a generic cPanel-source approach not tied to HostGator, the cPanel to Gmail walkthrough is shorter. And the broader Google Workspace migration playbook covers tenant setup, SSO, and security baselines.
Validation in the first hour
After MX cutover and Email Routing change:
- Inbound test: external Gmail account sends to a migrated mailbox. Should arrive in Workspace inbox within 30 seconds.
- Outbound test: from Workspace to external. Headers should show SPF pass and DKIM signature.
- DNS check:
dig MX yourdomainshould show Google's five MX hosts. - Folder verification: sample three migrated mailboxes (one heavy, one light, one shared). Compare HostGator folder counts to Gmail labels plus All Mail count. Within 1% is acceptable.
- Workspace client test: add the account to a fresh Outlook profile. Auto-discover should pick up the Workspace settings without manual server entry.
For DNS mechanics in the broader sense, the MX record glossary is the short read.
Decommissioning HostGator
Keep HostGator mailboxes paid and reachable for 30 days after cutover. Use that window to:
- Confirm reliable inbound mail to Workspace
- Catch any forwarder or alias you missed
- Verify all client devices are reconfigured
After 30 days, the HostGator email feature can be effectively abandoned. If you still need hosting for the website, the cPanel subscription stays; only the email product needs decommissioning. Delete the Maildir on the cPanel side as a final cleanup.
Migrate your mailbox the easy way
Join the waitlist for early access and lock in launch pricing.
Related reading
migrate
Migrate HostGator Email to Office 365: Step-by-Step Plan
Move HostGator cPanel mailboxes to Microsoft 365 over IMAP. Practical admin guide with MX cutover, Email Routing fix, and DKIM steps.
migrate
Migrate cPanel Email to Gmail: Generic Workspace Plan
Move any cPanel-hosted mailbox to Gmail or Google Workspace over IMAP. Generic guide with MX cutover, Email Routing fix, and DKIM steps.
migrate
How to Migrate from IMAP to Gmail
Migrate IMAP mailboxes to Gmail or Google Workspace: Data Migration Service setup, app passwords, throttling and label-vs-folder behavior.
blog
Google Workspace Migration: A Complete Guide
A google workspace migration guide for IT admins: data migration service vs third-party, OAuth, label semantics, throttling, and cutover validation.
glossary
What Is an MX Record? The DNS Switch Behind Cutover
What is an MX record, how priorities and TTLs work, and why flipping the MX record is the moment mail actually moves to your new provider.
Migrate your mailbox the easy way
Join the waitlist for early access and lock in launch pricing.