How to Migrate Business Email Without Losing Messages
Move business email from Gmail, Microsoft 365, Zoho or any host without losing mail: lower TTL, DNS order, the MX switch, copying old mail and cleanup.
You can move business email to a new provider without losing a single message, and keep every address exactly as it is. The domain stays where it is; only a few DNS records change. What loses mail is doing the steps in the wrong order: switching MX before the new mailboxes can receive, cancelling the old account before the last copy, or leaving two SPF records behind. This guide gives the order that works, how to copy years of old mail across, and the cleanup that stops problems a week later.
Quick answer
A day ahead, lower the TTL on your MX records (the settings that tell the internet where to deliver email for your domain) and publish the new provider's verification and authentication records. In a quiet hour, switch MX and SPF to the new provider, verify the domain and create every mailbox at once. Then copy the old mail over IMAP, keep the old account running for a week to catch stragglers, run a second copy, and only then cancel. Nothing needs to move registrar, and nobody's address changes.
What actually moves
- Incoming mail: decided by your domain's MX records (the settings that tell the internet where to deliver email for your domain). Change it and new mail goes to the new provider within the TTL.
- Old mail: stays at the old provider until you copy it. IMAP, the standard protocol behind every mail app, lets you copy folders from one server to another.
- Sending: your SPF record says which servers may send for the domain, and DKIM signs each message. Both must name the new provider or your mail starts landing in spam.
- Contacts and calendars: not part of email. Export them separately as CSV or vCard files and ICS files.
- Phones and laptops: every mail app needs the new server settings. Plan ten minutes per person.
- Signatures and filters: set them again. On OquMail the signature lives in webmail, and holiday auto-replies are set in your mail app, such as Outlook or Thunderbird.
Before the switch: a checklist
- List every mailbox and shared address on the old system, and mark the ones nobody uses. Do not move dead mailboxes; export them and let them go.
- Find out where your DNS is hosted. It is often the registrar, but it may be Cloudflare or a web host. That is where every record change happens.
- A day ahead, lower the TTL (how long other servers cache a record) on the MX records (the settings that tell the internet where to deliver email for your domain) to 300 seconds. Our DNS TTL guide explains why this makes the switch take minutes instead of hours.
- Check that the old provider allows IMAP and how you sign in to it: many need IMAP switched on in settings, and accounts with two-step sign-in usually need an app password.
- Write down the old provider's DNS records: its MX hosts, its SPF include, any verification TXT and autodiscover CNAME. You remove them later.
- Pick a quiet hour for the switch and tell staff. Keep the old subscription paid until at least a week after.
Why the order matters on OquMail
OquMail creates mailboxes only on a verified domain, and a domain is verified when two records resolve: the ownership TXT (it proves the domain is yours) and the MX records (the settings that tell the internet where to deliver email for your domain) pointing at mail.oqumail.com. Until then the dashboard cannot create mailboxes. Once MX points at OquMail, mail to an address that does not exist yet is refused with a bounce. So the safe order is: publish everything except MX a day ahead, switch MX, verify, and create every mailbox and group in the same sitting. With a short TTL the gap is a few minutes, and a sender whose message bounces in that gap gets a clear notice to resend.
Step by step: the cutover
- A day ahead: create a free OquMail workspace, add the domain, and publish the ownership TXT, DKIM and DMARC records it shows. Click Verify; it reports MX as missing, which is expected at this stage. Lower the MX TTL to 300 seconds.
- In the quiet hour: at your DNS host, delete the old provider's MX records and add the OquMail MX (mail.oqumail.com, priority 10).
- In the same edit, replace the SPF record so it names OquMail instead of the old provider. Keep exactly one TXT records (short text lines in DNS used for email security) that starts with v=spf1; the ownership TXT sits beside it and that is normal. Our multiple SPF records guide shows how to merge senders such as a newsletter tool.
- Click Verify in the dashboard. As soon as the domain shows verified, create a mailbox for each person and a group for each shared address such as info@ or sales@.
- Send a test message from an outside account such as Gmail to each address, and one reply back out.
- Copy the old mail into the new mailboxes (next section).
- Update every phone and laptop with the new settings below.
- A week later, run a second copy for anything that reached the old provider during the switch, remove the old provider's leftover DNS records, and cancel the old service.
Free business email on your own domain
OquMail gives you up to 15 mailboxes on your domain — free — with guided SPF/DKIM/DMARC, webmail, IMAP/SMTP for any mail app, and a send API. Setup is a few DNS records; changes usually take effect within minutes, occasionally up to 48 hours. Start at oqumail.com.
Copying old mail over IMAP
OquMail has no built-in import, so the copy runs from your side over IMAP, and either method below works with any old provider that supports IMAP. For one to five people, a desktop app is easiest: add the old account and the new account to Thunderbird, then drag folders from one to the other; the mailbox-to-mailbox IMAP guide shows each click. For more people, or mailboxes of many gigabytes, imapsync copies a whole mailbox from server to server and can be run again later to pick up only what is new. Large accounts take time: Google, for example, caps how much one account can download over IMAP each day, so a big Gmail mailbox may need two or three nights.
imapsync \
--host1 imap.oldprovider.com --user1 you@yourcompany.com --password1 'OLD-APP-PASSWORD' \
--host2 mail.oqumail.com --user2 you@yourcompany.com --password2 'NEW-PASSWORD' \
--ssl1 --ssl2After the switch
- Mail that arrives at the old provider during the TTL window is not lost; it sits there until your second copy, which is why the old account stays paid for a week.
- Remove the old provider's verification TXT, autodiscover CNAME and any second MX once nothing new arrives there. Leftover autodiscover records make Outlook keep finding the old server.
- Check the domain with the free MX lookup, SPF checker and DMARC checker, and send a message to Gmail to see that it passes.
- Put the TTL back to its usual value, such as an hour.
- Keep a backup of anything you exported. The IMAP backup guide shows how to keep a local copy of a mailbox.
OquMail connection settings
- Incoming (IMAP): mail.oqumail.com, port 993, SSL/TLS
- Outgoing (SMTP): mail.oqumail.com, port 587, STARTTLS
- Username: your full email address (you@yourdomain.com)
- Password: the same password you use for OquMail webmail
If something goes wrong
- Mail still lands at the old provider hours later: some server is caching the old MX. Wait out the old TTL, and check that no second MX records (the settings that tell the internet where to deliver email for your domain) for the old host is left. Our mail loops back to the old host guide covers the stubborn cases.
- A sender says mail bounced: they wrote during the minutes before the mailbox existed, or to an address you did not recreate. Create it, or a group with that address, and ask them to resend.
- Sent mail goes to spam after the switch: the SPF record still names the old provider, or DKIM is missing. Fix the records and test again.
- Nothing arrives at all: work through the not receiving email checklist.
Common questions
Will I lose emails when I switch email providers?
Not if you keep the old account until the second copy is done. New mail moves with the MX records (the settings that tell the internet where to deliver email for your domain), old mail moves with the IMAP copy, and the overlap week catches anything in between.
Do I need to transfer my domain to change email provider?
No. Email is set by DNS records, not by where the domain is registered. You edit records at your current DNS host and leave the registration alone.
Can I keep the same email addresses?
Yes. Create the same addresses on the new provider in the cutover hour, as mailboxes for people and groups for shared addresses, and nobody outside notices the move.
How long does an email migration take?
The switch itself takes under an hour with a lowered TTL. Copying old mail takes from minutes for a small mailbox to a few nights for many gigabytes, and runs in the background while everyone keeps working on the new system.
What about contacts and calendars?
Export contacts as CSV or vCard and calendars as ICS from the old provider. OquMail is email only, so calendars move to a calendar app or service of your choice.
Want to see how your own domain is set up? Use the free SPF checker, DMARC checker and MX lookup: they run in your browser and store nothing.