Guide · Nexbit Hub
Moving your company email without losing a message
A step-by-step plan to move company email to a new provider: inventory, lowering MX TTL, copying mail over IMAP, cutover day, forwarding and a rollback plan you hope not to need.
The Nexbit teamUpdated 8 min read
Changing email providers sounds risky because email never stops arriving. The trick is that you do not move it all at once. You set up the new system next to the old one, copy the history across while mail keeps arriving at the old provider, then switch the direction of new mail with a single DNS change that can be undone in minutes. Done in this order, nobody loses a message and most people only notice a new sign-in page.
This guide is provider-neutral. Where it helps, it shows what the steps look like in Nexbit Hub; our migration page has the Hub-specific details.
The plan at a glance
| When | What | Who notices |
|---|---|---|
| Two weeks before | Inventory: people, shared addresses, forwarding, apps, DNS | Nobody |
| One week before | New provider set up, domain verified, mailboxes created | Nobody |
| Days before | History copied over IMAP; contacts and calendars imported | Nobody |
| The day before | MX record TTL lowered; staff briefed | Staff receive a short note |
| Cutover | MX and SPF switched; final copy of recent mail | Staff sign in to the new system |
| Two weeks after | Old provider kept running in parallel, then closed | Nobody |
Step 1: take an inventory
Most migration problems are things nobody knew existed. Spend an hour listing:
- People and mailboxes: everyone with an address, including people who have left but whose mailboxes are still in use.
- Shared addresses:
info@,sales@,accounts@,support@. Note who reads each, and whether it is a mailbox, an alias or a forwarding rule. - Aliases and forwards: addresses that deliver to someone else's mailbox, and any automatic forwarding to personal accounts (often worth stopping).
- Mailbox sizes: the total size of each mailbox. It tells you how long copying will take and whether you need more storage.
- Other systems that send as your domain: website forms, invoicing tools, help desks, printers that scan to email. These need to keep working, and they appear in your SPF record.
- Devices and apps: who reads mail on phones, in Outlook, Apple Mail or Thunderbird. Each needs to be reconfigured.
- DNS access: who can edit your domain's DNS, and where it is hosted.
- Calendars and contacts: whether they live with the email provider and need to move too.
Step 2: set up the new system
- Sign up and add your domain. The new provider gives you a verification record. Adding it does not affect mail delivery: your MX records still point at the old provider, so mail keeps arriving there.
- Create the mailboxes using exactly the same addresses as today.
- Recreate shared addresses as groups, aliases or shared mailboxes. In Hub, groups, aliases and shared mailboxes don't use a seat (Starter includes 10 of them in total; Business and Enterprise have no limit).
- Add DKIM for the new provider now. A domain can publish several DKIM selectors at once, so this does not affect the old provider's signatures.
- Require two-step verification for everyone from the first day.
Do not change MX or SPF yet.
Step 3: copy the history
You copy mail with IMAP, the standard protocol both old and new providers speak. There are two common ways.
For a handful of people: a desktop mail app
Add both the old and the new account to a desktop app such as Thunderbird. Select the old folders and drag them to the new account. It is slow for large mailboxes but needs no extra tools, and each person can do their own.
For many mailboxes: an IMAP copy tool
Command-line IMAP synchronisation tools copy one mailbox to another, folder by folder, and can be re-run: the second run only copies what is new. That is what makes a calm cutover possible. Run the copy a few days before, then again just after the switch to pick up the last messages.
You need, for each mailbox:
- the old provider's IMAP host, the username and a password (or app password);
- the new provider's IMAP host (Hub shows it on the settings card), the username and an app password.
A few things to watch:
- Folder names differ between providers ("Sent Items" vs "Sent"). Most tools can map them.
- Large attachments may hit size limits. The copy log lists anything that was skipped.
- Rate limits at the old provider can slow copying. Start early.
- Passwords for the copy should be app passwords you revoke afterwards.
Contacts and calendars
Export contacts as vCard (.vcf) from the old provider and import them. For
calendars, export each calendar as an .ics file and import it, or connect a
CalDAV-capable app to both accounts and copy events across.
Step 4: the day before
- Lower the TTL on your MX records to 300 seconds (five minutes). TTL is how long other servers may remember the old value. If it is a day today, a change tomorrow could take a day to reach everyone; lowered to five minutes, it takes minutes. The lower TTL only takes effect after the old one expires, which is why you do this a day ahead.
- Write a short note to staff: when the switch happens, the new web address, how to sign in, how to set up phones (with app passwords), and who to ask for help.
- Prepare the new records: have the new MX and SPF values ready to paste.
Step 5: cutover
Pick a quiet time, such as a Friday evening or a weekend morning.
- Change the MX records to the new provider's values. Remove the old MX records in the same edit. Leaving both means mail is split between the two.
- Update SPF. Replace the old provider's
include:with the new one's. Keep includes for other systems that send as your domain. Keep a single SPF record. - Check with the new provider's admin console, or with the email DNS checker, until every record shows as found.
- Send test messages from an outside account to a few addresses, and from a few new mailboxes to the outside. Check they arrive, and check the headers for passing SPF, DKIM and DMARC.
- Run the IMAP copy again to pick up mail that arrived at the old provider before the switch spread everywhere.
For a few hours, some servers will still deliver to the old provider because they cached the old MX. That is why you keep it running and run the copy once more the next day.
Step 6: after the switch
- Keep the old accounts for two weeks. Run a last IMAP copy at the end, then close them.
- Set up phones and desktop apps with app passwords. Remove the old accounts from devices so people don't keep replying from them.
- Re-point other systems (website forms, scanners, invoicing) to send through the new provider, if they used the old one's SMTP server.
- Raise the MX TTL back to an hour or more once everything is stable.
- Move DMARC forward: if you were at
p=none, start reading reports and plan the move toquarantine. See SPF, DKIM and DMARC. - Revoke the app passwords used for the copy.
The rollback plan
Write this down before cutover and hope never to use it:
- Trigger: new mail is not arriving at the new provider within an hour, or outgoing mail is being rejected and you cannot find why.
- Action: put the old MX and SPF values back. With the TTL at five minutes, mail starts flowing to the old provider again within minutes.
- Recover: anything delivered to the new provider in the meantime is still there. Copy it back over IMAP if needed, or keep both until the problem is fixed.
- Communicate: tell staff to keep using the old system for now.
Because the old provider was never switched off, rolling back is a DNS edit, not a crisis.
Mistakes that cause lost mail
| Mistake | What happens | How to avoid it |
|---|---|---|
| Closing the old account on cutover day | Mail delivered there by servers with cached MX is lost | Keep it for two weeks and run a final copy. |
| Leaving old and new MX records together | Mail is split randomly between providers | Replace the MX records in one edit. |
| Forgetting shared addresses | Mail to info@ bounces after the switch | Create every alias, group and shared mailbox before cutover. |
| Not lowering the TTL | The switch takes a day to spread; a rollback does too | Lower it to 300 seconds a day ahead. |
| Two SPF records | Outgoing mail fails SPF and lands in spam | Edit the existing record; never add a second one. |
Getting help
Most teams of under fifty people can do all of this themselves in a week of part-time effort. If you are moving to Nexbit Hub and want a second pair of eyes, email us and we'll walk you through it. The Hub migration page has the settings you will need, and our guide to setting up business email on your own domain covers DNS in more detail.
Related product pages