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.

DO

Dan Okafor

MSP Practice Lead

· 9 min read
Charts and metrics on a screen representing migration validation

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.

HostGator
Gmail

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:

  1. 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.
  2. 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.
  3. 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:

  1. Verify your domain. Google supplies a TXT record. Add it inside cPanel, Domains, DNS Zone Editor. Verification usually completes within 30 minutes.
  2. Buy seats. Buy one more than you think you need; you'll want one for the catch-all.
  3. Create each user. Match the primary email exactly to the HostGator source. Set a temporary password.
  4. Create Google Groups for any HostGator mailing lists or one-to-many forwarders.
  5. 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

  1. 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.

  2. Reset mailbox passwords

    From cPanel, Email Accounts, set each mailbox password. Store securely; you need these for the migration tool to authenticate.

  3. 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.

  4. 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.

  5. Flip public MX record

    cPanel, Domains, DNS Zone Editor. Replace existing MX with Google's five hosts:

    • 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

    Save.

  6. 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.

  7. 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.

  8. Update SPF, DKIM, and DMARC

    SPF in cPanel DNS Zone Editor:

    v=spf1 include:_spf.google.com ~all

    DKIM in Workspace admin: Apps, Google Workspace, Gmail, Authenticate email. Generate the key, then add it as a TXT record at google._domainkey.yourdomain in cPanel DNS.

    DMARC: start with v=DMARC1; p=none; rua=mailto:dmarc@yourdomain if you don't have one.

  9. 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/Acme ends up as Gmail label Clients/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 connections from HostGator. Drop to five workers per mailbox. HostGator shared IMAP throttles around 10 concurrent connections per source IP.
  • AUTHENTICATIONFAILED against 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 expired against Gmail. Migration scope tokens expire after seven days idle. If your migration paused for the weekend, refresh before resuming.
  • Lookup failed against 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 yourdomain should 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.

Try Mailbox Taxi

Migrate your mailbox the easy way

Join the waitlist for early access and lock in launch pricing.

Related reading

Try Mailbox Taxi

Migrate your mailbox the easy way

Join the waitlist for early access and lock in launch pricing.