Skip to content

Migrating a Mailbox Over IMAP: What to Watch For

IMAP migration copies messages and folders between two mail servers, but it does not move everything. Here is how to plan, run and verify a move without losing mail.

10 min readUpdated Nov 22, 2026By XPASS Editorial Team

Migrating a Mailbox Over IMAP: What to Watch For

Moving a mailbox from one provider to another sounds simple: log in, copy everything across, change a setting. In practice, an IMAP migration is a series of small decisions, and most of the damage comes from a handful of avoidable mistakes. Messages are copied into the wrong folder, an old password keeps working on a device nobody remembered, the MX record is switched too early, or the old account is closed before anyone has checked that the new one is complete.

This guide explains what an IMAP migration really does, what it leaves behind, and how to plan, run and verify a move so that nothing important disappears. It is written for small businesses and individuals who manage their own mail, and it stays general: the exact screens differ between providers, but the principles are the same everywhere.

What an IMAP migration actually moves

IMAP, the Internet Message Access Protocol, is the standard way a mail client reads messages that live on a server. A migration tool uses it in a simple way: it logs in to the old mailbox with one set of credentials, logs in to the new mailbox with another, and copies messages and folders from one to the other. Because both ends speak the same protocol, the tool does not care much which provider is on either side.

What gets copied is the content that IMAP exposes: the folder tree (Inbox, Sent, Drafts, Archive and any custom folders), the messages inside them, and usually the read or unread state and flags such as starred. Dates are normally preserved, so a message from three years ago still sorts as three years old, but it is worth testing that on a small folder first.

A migration is not a backup, and it is not a mirror. It is a copy made at one moment in time. Anything that changes on the old server after the copy, such as a new message that arrives while you are working, is not included unless you run another sync. That single fact explains most of the planning in the rest of this article.

What IMAP does not move

Many people discover this only after the old account has been closed, so list it before you start. IMAP carries messages. It does not carry most of the other things people think of as "my email".

  • Contacts and address books. These are stored with separate protocols or in a provider-specific format. Export them as a vCard or CSV file and import them into the new service.
  • Calendars and tasks. Same story. Export an ICS file, or use a calendar-sharing feature if both sides support it.
  • Server-side rules and filters. The rules that sort mail into folders or forward it elsewhere do not travel. Write them down and recreate them.
  • Signatures, vacation replies and display names. These are settings, not messages.
  • Aliases and forwarding addresses. If people also email you at info@ or sales@, those addresses must be created on the new side before you switch delivery.
  • Shared mailbox permissions. Who can read which mailbox needs to be configured again.
  • Local-only data. Anything stored in a mail client on one computer, for instance a "Local Folders" archive, was never on the server and will not be copied.

A useful habit is to keep a short checklist with one line for each item above and tick it off per mailbox. It takes ten minutes and prevents the most common "where did my contacts go" support request.

Before you start: inventory and plan

Good migrations are decided before the first message is copied. Spend a little time on these questions.

  1. Which mailboxes are moving? List every address, including shared and role mailboxes that nobody logs in to daily.
  2. How large are they? Check the size and the message count. A mailbox with tens of thousands of messages in one folder behaves very differently from a small one, and some providers cap the size of a single message or the total storage.
  3. What is the target limit? Make sure the new mailbox has enough space for the data you are moving, with room to grow. Check the plan page of the provider for what is included rather than assuming.
  4. Who needs to be told? Staff should know the date, whether they need to re-enter a password on their phone, and who to ask if something looks wrong.
  5. When is the quietest time? Choose a window, such as a weekend, when few messages arrive and nobody is mid-conversation.

Write the answers down. If several people share the work, a one-page plan avoids two people running the same sync into the same mailbox, which is a classic source of duplicates.

Prepare the DNS side early

The mailbox content and the delivery path are two different things. Content is moved by the IMAP copy. Delivery is controlled by the MX records of your domain, which tell other mail servers where to send new messages, as defined in the SMTP standard in RFC 5321. You move content first and delivery second.

A day or two before the move, look at the TTL (time to live) of your MX records and lower it, for example to five minutes. TTL is how long other servers may cache the old answer. If it is set to a day, then after you change the MX record some senders keep delivering to the old server for up to a day. A short TTL shrinks that period. Do not lower it weeks ahead and forget about it; raise it again once the move is stable.

Also prepare the new side's sending records. If your domain publishes an SPF record, which lists the servers allowed to send mail for it (see RFC 7208), it needs to include the new provider before you start sending from there, otherwise your first outgoing messages may land in spam. DKIM keys and a DMARC policy follow the same logic: set them up on the new provider and publish them while mail is still flowing through the old one.

Step-by-step: running the migration

The sequence below works for a single mailbox and scales to many.

Step 1: Create the new mailbox and test it

Create the account on the new provider and send yourself a message from an outside address. Confirm that you can log in with a mail client over IMAP and send a message out. Doing this before any data is copied separates "the new account is broken" from "the migration is broken".

Step 2: Gather credentials and check IMAP is enabled

You need the IMAP host name, port and security type for both servers, plus a username and password for each. Some providers disable IMAP by default or require an app password when two-factor authentication is on. If the old account uses a second factor, read how to enable 2FA for company email so you understand which login method your migration tool can use.

Step 3: Run a test on one small folder

Pick a folder with a few hundred messages and copy only that. Check the dates, the read state, attachments and non-English characters in the subject lines. If anything is wrong, it is wrong on a small scale and easy to repeat.

Step 4: Run the full copy

Start the full migration for the mailbox. Large mailboxes can take hours, because providers often limit how fast they allow IMAP connections. Do not close the tool or put the computer to sleep if the job runs from your own machine. Let it finish, then read the log for skipped or failed messages.

Step 5: Switch delivery with the MX records

When the first copy has completed and the new mailbox works, change the MX records so new mail arrives at the new provider. Because you lowered the TTL, most senders will follow within minutes. Keep the old mailbox active.

Step 6: Run a final sync

Some messages will have arrived at the old server between the first copy and the MX change. Run the migration again. A sensible tool compares what is already present and copies only the new messages. This final pass is what makes the move close to seamless.

Step 7: Reconnect devices and retire the old account

Update every phone, tablet and mail client to the new server settings. Only after a period of normal operation, such as a week or two, should you close the old mailbox. Before you do, keep an export of anything you might need later.

Passwords and two-factor during a migration

A migration is a good moment to improve security, but also a good moment to lock yourself out. Some practical points:

  • Do not reuse the old password on the new account just for convenience. Choose a new one, and follow how to change a business email password securely so the change is made in the right order and old sessions are signed out.
  • If the old provider requires an app password for IMAP, generate it before the migration and store it temporarily in a password manager. Delete it afterwards.
  • Do not turn on two-factor authentication on the new mailbox in the middle of a sync if your tool cannot handle it. Finish the copy, then enable it.
  • Remember that other services may use the mailbox as a login or recovery address. Review them after the move so password reset mail still arrives.

Strong authentication matters here because a mailbox usually contains the reset links for many other accounts. The CISA guidance on multi-factor authentication is a clear starting point for deciding which methods to use.

Folders, flags and large mailboxes

Different servers name their special folders differently. One calls it "Sent Items", another "Sent", and a third "Sent Messages". A good tool maps these automatically, but if yours does not, the result is a new custom folder called "Sent Items" next to the real "Sent" folder. Check the mapping of Inbox, Sent, Drafts, Trash, Junk and Archive before the full run.

Some further details that cause trouble:

  • Folder depth and separators. Some servers use a dot and others a slash to separate parent and child folders. Deeply nested trees may be flattened or renamed. Look at a few of your most nested folders afterwards.
  • Very large messages. If the new server has a lower per-message size limit, big attachments are skipped. The log will list them; handle those messages separately.
  • Junk and Trash. Decide whether you want to move them at all. Copying years of spam wastes space and time.
  • Throttling. If the old provider drops connections after a certain number of requests, run the migration in smaller batches, folder by folder.
  • Unread counts. If every message turns unread after the copy, the tool did not preserve flags. This is cosmetic but annoying, so test it early.

A plain example

Imagine a five-person design studio moving from a shared hosting mailbox to a dedicated business email service. On Monday the owner lists the five mailboxes plus info@ and checks the sizes: four are small, one has twelve gigabytes of history. On Tuesday she lowers the MX TTL to five minutes and creates the new mailboxes. On Wednesday she tests one small folder from the largest mailbox and spots that "Sent Items" became its own folder, so she fixes the folder mapping.

On Friday evening the full copies start and run through Saturday. On Saturday afternoon she changes the MX records, and by evening test mail from her phone arrives at the new server. On Sunday she runs the second sync, which copies a few dozen messages that had arrived at the old server in the meantime. On Monday morning each person updates their phone, and the studio exports contacts and calendars from the old system and imports them. The old mailboxes stay untouched for two more weeks before they are closed.

Nothing in that story is clever. It works because content, delivery and devices are handled in that order, with a safety net at every step.

Verification checklist

Before closing the old account, check each of the following per mailbox.

Check How to confirm
Folder count and names Compare the folder list on both sides, including nested folders
Message count Compare totals per folder; small differences should be explained by the log
Spot checks Open ten messages from different years, including some with attachments
Sending Send a message to an outside address and ask for a reply
Receiving Send from an outside address and confirm delivery, including to aliases
Mail clients Confirm that phone and desktop clients use the new server settings
Sender records Check that SPF, DKIM and DMARC are published and that test mail is not marked as spam
Contacts and calendars Confirm they were exported and imported separately

If sending works but receiving does not, or the other way round, see how to fix a mailbox that can receive but not send for a systematic list of causes.

Limits and what to watch for

IMAP migration is dependable, but it has boundaries that are worth knowing in advance.

  • It is only as complete as the source allows. If the old provider has already purged messages or applies retention rules, those messages cannot be copied.
  • Speed depends on the slower side. Providers limit the rate of connections and bandwidth, so a large mailbox may take much longer than the raw size suggests.
  • Dates and ordering can shift. Most tools keep the original received date, but a few use the date of copying. Test before trusting.
  • Do not run two syncs into the same folder at the same time. This is the quickest way to create duplicates.
  • Do not delete first. Leave the old mailbox untouched until you have verified the new one. Avoid "move" options that delete from the source during the copy.
  • Plan for stragglers. A few senders ignore TTL and keep using an old address for a while. This is another reason to keep the old mailbox open for some time.
  • Check what your plan includes. Storage, message size limits and the number of mailboxes depend on the plan, so confirm them on the provider's page instead of relying on memory.

Keep a record of what you did, with dates and the settings used. When something odd turns up three weeks later, such as a missing folder or a message that never arrived, the notes shorten the investigation considerably.

Summary

An IMAP migration copies messages and folders from one mailbox to another, but it is a snapshot, not a live link, and it leaves contacts, calendars, rules and settings behind. Plan the move in three layers: content first, delivery second, devices third. Lower the MX TTL early, test with one small folder, run the full copy, switch the MX records, then run a final sync to catch late arrivals. Handle passwords and two-factor deliberately, verify counts and spot checks, and keep the old mailbox until you are certain nothing is missing.

If you are weighing where to host the new mailboxes, the Business Email page describes what the service includes so you can compare it with your checklist.

Frequently asked questions

Does an IMAP migration move calendars and contacts?

No. IMAP only deals with messages and folders. Calendars, contacts, shared mailbox permissions, signatures and server-side rules usually have to be exported and imported separately, or recreated by hand.

Can I migrate a mailbox without any downtime?

In most cases yes. You copy the existing mail first, switch the MX records, then run a second sync to catch anything that arrived in between. Mail is delayed or split for a short while at most, not lost, as long as the old mailbox stays active until you have checked everything.

Why do I see duplicate messages after migrating?

Duplicates usually appear when a sync is run twice into the same folder with a tool that does not compare message identifiers, or when a mail client is set to copy rather than move messages. Use a tool that skips messages already present, and run test syncs on one mailbox first.

When should I switch the MX records?

After the first full copy has finished and you have confirmed the new mailbox works. Lower the TTL on the MX record a day or two beforehand so the change spreads quickly, then run a final sync after the switch.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

Bob Kanokphon Thongdee

  • Founder of XPASS VPN
  • Co-founder of eSIMonline.asia
  • More than 7 years in online marketing
  • Founder of Cojourney Visa and Cojourney Travel

Want email on your own domain?

Business email with your domain name, priced per mailbox.

See business email

Keep reading

Business Email Guides

How to Set Up 2FA for Company Email

A leaked password should not be enough to open your mailbox. See how to choose a 2FA method, roll it out to a team and keep mail apps and recovery working.

10 min read

Business Email Guides

How to Change a Business Email Password Securely

Changing a mailbox password is easy; doing it without breaking phones, scanners and integrations is the hard part. Follow a safe order from start to finish.

9 min read

Business Email Guides

How to Fix Email That Receives but Will Not Send

Incoming mail works but every message you send fails or bounces. Learn how to tell a client setting problem from a server or DNS problem and fix it in order.

10 min read