Skip to content
IMAP migration
Provider guide: Gmail

Migrate Gmail to another email provider (IMAP, free)

To migrate Gmail to another provider, turn on 2-Step Verification, create a Google app password and use it with imap.gmail.com on port 993 (SSL). Our free tool then copies every folder to the new mailbox over IMAP, with no signup. Workspace accounts may also need an admin to allow IMAP first.

  • Free, no signup
  • Up to 10 mailboxes at once
  • Passwords never stored
  • No duplicates when you repeat

How to create a Google app password

What to prepare at the provider before you start.

  1. 1

    Turn on 2-Step Verification

    Sign in at myaccount.google.com, open Security and switch on 2-Step Verification if it is not active yet. Google only offers app passwords on accounts that have it, so nothing else works until this is done.

  2. 2

    Check that IMAP is allowed

    Personal Gmail accounts have IMAP available by default, and Google has removed the old on/off switch. On Google Workspace, ask your administrator to allow IMAP access in the Admin console, because it is controlled per organisation.

  3. 3

    Create the app password

    In your Google account search for App passwords, give the password a name such as "Mail migration" and create it. Google shows a 16-character code once. Copy it straight away, spaces are not needed.

  4. 4

    Add the mailbox to the tool

    Open the migration tool below with Gmail already selected as the source. Type your full address and paste the app password in the old password field, then test the login before anything moves.

  5. 5

    Confirm and start the copy

    Choose the destination provider and mailbox, open the confirmation message that arrives in the destination inbox, and the copy begins. Afterwards you can delete the app password from your Google account.

Exact IMAP settings

SettingValue
IMAP serverimap.gmail.com
Port993
SecuritySSL/TLS
UsernameYour full Gmail or Workspace address
PasswordA 16-character Google app password, not your normal password
Prerequisite2-Step Verification on; for Workspace, IMAP allowed by the admin

These are the values the tool fills in when you pick Gmail as the source. Gmail exposes its labels as IMAP folders, so you will see them listed as folders at the destination.

Start the migration

The tool already has the source selected. Choose where the mail is going, add your mailboxes and confirm from the destination inbox.

Passwords are used once. They travel encrypted to an isolated job that copies the mail and is deleted afterwards. They are never stored, logged or sent back.

Common errors and how to fix them

Almost every failed IMAP copy comes down to the source login. This is what usually happens with this provider.

  • "Username and password not accepted" or "Invalid credentials"

    You probably typed your normal Google password. IMAP logins from outside apps need the app password. Create one, paste it without editing and test again. If the option to create app passwords does not appear, see the next point.

  • No "App passwords" option in your account

    Google may hide it when 2-Step Verification is off, when you only use security keys, with Advanced Protection, or on accounts managed by a work or school organisation. Ask the Workspace admin to enable it, or use a different account for the copy.

  • The login is refused on a Workspace account

    Workspace admins can block IMAP or app passwords for the whole domain, and Google no longer lets third-party apps sign in with a plain password on many Workspace setups. The admin has to allow IMAP and app passwords, or the tool cannot connect.

  • "Too many simultaneous connections"

    Gmail limits how many clients can be connected to one account at the same time, around fifteen. Close mail apps on phones and computers that are still connected, wait a few minutes and run the copy again. It resumes where it left off.

What is and is not copied

The tool copies email and nothing else, over IMAP, with imapsync underneath.

Copied

  • The messages of every folder, subfolders included.
  • Original dates and the read or unread state.
  • Only what is missing at the destination, so repeating the copy creates no duplicates.

Not copied

  • Contacts and calendars: they do not travel over IMAP. Export them as vCard or ICS from the source provider.
  • Filters, signatures and rules of the old mailbox: recreate them in the new one.
  • Messages above 50 MiB are skipped. The tool never deletes anything from the source.

Gmail does not use real folders. A message with three labels shows up in three IMAP folders, so the destination can end up with the same message in several places, and the folder count looks larger than your label list. "All Mail", Spam and Trash are folders too, and they are copied like the rest. Starred and important markers are Gmail features and may not map to anything at the new provider. Chats, Google Drive attachments links and calendar entries are not part of IMAP, so only the actual messages travel.

What the tool guarantees

  • Free, no signup

    No account and no payment. It copies up to 10 mailboxes per batch.

  • Passwords are used once

    They serve that copy and are never stored. Nothing is deleted from the source mailbox either.

  • The destination must be yours

    We leave a confirmation message in the destination inbox. The copy starts only when you open it.

FAQ

Frequently asked questions

Can I migrate Gmail to another provider for free?
Yes. The tool is free, needs no signup and copies up to 10 mailboxes per batch. You only need the Gmail address, an app password and the destination mailbox already created at the new provider.
Why do I need an app password instead of my Google password?
Because the tool signs in over IMAP like any mail program, and Google does not accept the normal account password for that when 2-Step Verification is on. An app password is a separate code you can revoke at any time without changing your real password.
Does it work with Google Workspace?
Often, but it depends on your administrator. IMAP and app passwords must both be allowed for your user. If the login fails even with a fresh app password, the admin policy is the likely cause and only an administrator can change it.
Will my Gmail inbox be emptied or deleted?
No. The tool only reads from Gmail and never deletes anything from the source. You can compare both mailboxes and keep Gmail as long as you want after the copy.
Are labels, contacts and calendar copied?
Labels arrive as folders, because that is how Gmail presents them over IMAP. Contacts and calendars are not part of IMAP, so export them from Google as vCard or ICS and import them at the new provider.
What if new mail arrives while I migrate?
Keep receiving mail in Gmail until you change your MX records. Then run the tool a second time: it skips messages already copied and only brings the new ones, with no duplicates.

Is your mail going to Hostbrid?

Create the mailboxes first, then bring the old mail across with the import tool in your panel.

Manage your sites, servers and email.

Forgot your password?

Free, and it takes a minute.

At least 8 characters. Not all digits, not a common one.

We'll email you to confirm the account.