Skip to content

Migration / Migrate from Google (Gmail and Google Workspace)

Migrate from Google (Gmail and Google Workspace)

Moving your domain’s email from Google (Gmail with your own domain, or Google Workspace) to Banxmail without losing your history. The secret is the order: copy first, then switch the MX.

  1. Create the domain and mailboxes at Banxmail (but do not switch the MX yet).
  2. Copy the messages, calendar and contacts.
  3. Switch the DNS records.
  4. Check, and keep Google on for a few days.
  1. Under Domains › Add domain, add the domain. The panel warns that it receives email at Google.
  2. Create the mailboxes (Users › New user), one per person, with the same addresses as today.
  3. Stop here. Leave the MX as it is until the copy is done.

The simplest way is to connect both accounts in an email app and drag folders from one to the other. It works with Thunderbird, for free.

  1. In personal Gmail, IMAP is always on (since January 2025 Google no longer offers the option to turn it on or off). Create an app password at myaccount.google.com/apppasswords; it requires Google’s two-step verification to be on, and the option may not appear on a work or school account. On a Workspace account, the administrator must turn IMAP on in the Admin console, and Google recommends OAuth clients; the app password is for people who use two-step verification and a client without OAuth.
  2. In Thunderbird, add the Google account over IMAP (imap.gmail.com, port 993, SSL/TLS) and the Banxmail one (Thunderbird guide).
  3. Drag the folders (or labels, which become folders) from the Google account to the Banxmail one. Large messages and old mailboxes take hours; leave the computer on.

In Gmail, each label becomes a folder, and a message with two labels appears twice. Copy only the folders you need, and All Mail if you want everything (watch your plan’s space limit: see Account).

Alternative: Google Takeout (takeout.google.com) exports email as a file; labels are kept in each message’s X-Gmail-Labels header, and there is no export by date range. A .mbox file can be opened in Thunderbird and copied to Banxmail. Whether the Takeout file comes as .mbox and which Thunderbird add-on reads it: to be confirmed with a real file (the Google pages read do not mention .mbox, and Mozilla’s help did not load in the automated read).

  • Calendar: in Google Calendar, on a computer, Settings › Import & export › Export downloads a .zip with one .ics file per calendar (for a single one, More › Settings and sharing › Export calendar). The phone app does not export. Import it with Thunderbird, with the Banxmail calendar connected over CalDAV (guide): the webmail has no import screen yet. The names of Thunderbird’s import menus: to be confirmed.
  • Contacts: in Google Contacts, select the contacts and use More actions › Export; you can choose Google CSV or vCard (.vcf). Import it with Thunderbird, with the Banxmail address book connected over CardDAV (guide): the webmail has no import screen yet. The names of Thunderbird’s import menus: to be confirmed.

Only after copying. In your domain’s DNS panel:

  1. MX: delete Google’s (aspmx.l.google.com and relatives) and create Banxmail’s. The Banxmail domain page shows the value.
  2. SPF: edit the existing record, removing include:_spf.google.com and adding Banxmail’s. There can be only one. If you still send through some Google service (a system that uses Google to send), keep both includes.
  3. DKIM and DMARC: create the Banxmail CNAMEs. If there is a Google DKIM (google._domainkey), you can keep it for a while; it does no harm.

Guide for your provider: Registro.br, Cloudflare, GoDaddy, Hostinger, Locaweb, KingHost.

  • In the Banxmail panel, the Check step shows “6 of 6 records correct”.
  • Send and receive test messages.
  • For 2 to 3 days, keep the Google account working: some of the world’s servers will still send to the old address until the DNS cache expires. Check the old account and copy what arrives there.
  • Afterwards, in your apps, remove the Google account and keep only the Banxmail one (iPhone and Mac, Outlook, Gmail on Android).
  • If you pay for Google Workspace, cancel only after you are sure. Canceling deletes the data.
  • “I can’t connect the Google account over IMAP”. The app password was probably not created, or IMAP is off at Google. See Google’s help.
  • Duplicate messages at Banxmail. The same message had two labels and was copied twice. Delete the duplicates in Thunderbird or copy one folder at a time.
  • New messages kept arriving at Google. Normal for up to a few hours after the switch. Check the MX from the outside (DNS records).
  • Over the space limit. The history may be larger than the plan’s 5 GB. See Account.

Source: https://support.google.com/mail/answer/7126229?hl=en, https://support.google.com/mail/answer/185833?hl=en, https://knowledge.workspace.google.com/admin/sync/set-up-gmail-with-a-third-party-email-client?hl=en, https://support.google.com/calendar/answer/37111?hl=en, https://support.google.com/contacts/answer/7199294?hl=en and https://support.google.com/accounts/answer/3024190?hl=en, read on 2026-11-01