Our website is in Dutch; support is available in English.

From Gmail to your own email hosting

Labels become folders, so one message can end up in several folders. Here is how to handle it.

Updated 4 minute read

Contents of this article
  1. Labels aren't folders
  2. "All Mail", "Important" and "Starred" aren't folders
  3. Google Takeout or IMAP copying
  4. You need an app password
  5. Calendar and contacts
  6. What doesn't come along
  7. Check afterwards, and only then cancel
  8. What this doesn't solve
  9. Further reading

Moving mail out of Google works differently from Microsoft, mainly because of labels. This page explains why your mailbox looks bigger afterwards, which route to choose, and what you need to export yourself before you cancel.

Labels aren't folders

This is the biggest surprise. In Gmail, a message exists once and gets labels. One message can have several: Customers and Invoices and To do.

An IMAP mail system has no labels, only folders, and a message sits in exactly one folder. During the move, every label becomes a folder. A message with three labels therefore ends up in three folders, as three separate copies.

This makes the number of messages and the storage used go up, sometimes considerably. That isn't an error and nothing is lost. If you want to limit it, check beforehand which labels you can drop.

"All Mail", "Important" and "Starred" aren't folders

Over IMAP you see them as [Gmail]/All Mail, [Gmail]/Important and [Gmail]/Starred. They aren't separate collections of mail, but different ways of looking at the same messages.

All Mail literally contains your entire archive. If you copy that view along with your ordinary folders, you transfer everything a second time. So exclude those three: migration tools have a checkbox for it, and in a mail program you unsubscribe from those folders. Do this before the first copy run, not afterwards.

Google Takeout or IMAP copying

IMAP copying

You set up both accounts side by side and copy folder by folder, while you keep working in the old environment.

Choose this for mailboxes that stay in use. Copy one mailbox completely and check it before you do the rest.

Google Takeout

Takeout gives you an export in MBOX format, plus calendar and contacts. Useful as an archive and for the parts that aren't mail.

Choose this for mailboxes of employees who have left, and as a backup copy before you cancel.

Combining the two is usually the wisest: IMAP for the active mailboxes, a Takeout export as a fallback.

You need an app password

Google doesn't allow an IMAP connection with the ordinary password of an account that has 2-Step Verification on, and with Workspace it almost always is. For each account, you create an app password in that Google account's security settings and use it instead of the ordinary password. If 2-Step Verification is off, turn it on first. Arrange this in advance for every mailbox that needs to move, and delete the app passwords again when you're done.

Calendar and contacts

These don't go over IMAP. For each user, export the calendar from Google Calendar and the contacts from Google Contacts, and import them into the new environment. Afterwards, check recurring appointments: a meeting that was an hour later just once can fall back to its usual time.

What doesn't come along

Google Docs, Sheets and Slides

These aren't files but Google's own documents in Drive. They aren't in your mail: you have to export them to a common format, and things can shift along the way, such as the layout of complex documents and above all formulas and pivot tables in Sheets. Check the spreadsheets you rely on financially at the places where they calculate.

Google Chat

Chat history doesn't come along. Any agreements recorded there are gone once you cancel. Save it via Takeout before you end the subscription.

Filters, stars and categories

Your Gmail filters live in the account settings, not in the mailbox, and you set them up again. Stars and the "Social" and "Promotions" tabs have no equivalent. Write down your most important filters before you cancel.

Check afterwards, and only then cancel

  1. Compare the counts per folder, old against new. The total comes out higher because of the labels; per individual folder, the counts should match.
  2. Lower the TTL of your MX records a day or two before you switch them. The TTL (time to live) is the number of seconds other DNS servers remember your record; if it is high, mail keeps going to Google for hours.
  3. After the switch, collect the last mail from the old mailbox and test sending and receiving from every address.
  4. Cancel Google Workspace last. As long as the subscription runs, you can still retrieve things. After that, you can't.

What this doesn't solve

This guide covers mail, calendar and contacts. If your organisation works daily with several people in the same Docs or Sheets file, a mail environment doesn't replace that. Shared Drive folders and signing in with your Google account are also separate from this.

If the way you work mostly depends on those collaboration features, moving just the mail may not be the improvement you're looking for. In that case, consider moving the mail and leaving the rest where it is for now.

If you'd rather not do this yourself, we can do it for you with our email migration service (in Dutch).

Further reading

Was this article helpful?

Still stuck?

Send us a message. We will help you, usually within one working day.