Changing email hosts can improve mailbox storage, administration, security controls, or integration with a wider hosting platform. The main risk is not usually the act of moving messages itself. Problems more often come from incomplete mailbox inventories, incorrect DNS changes, unsupported authentication methods, or deleting the old service before every message has been copied and tested.
This guide explains how to migrate email hosting without losing messages. It focuses on standard IMAP-based mailboxes, which are common with shared hosting, VPS hosting, managed email platforms, and many domain-based email services. The recommendations are based on the behavior defined by the Internet Message Access Protocol and on provider documentation, including Google’s administrator guidance for migrating email from IMAP accounts and Microsoft’s Microsoft Learn guidance for migrating other IMAP mailboxes to Microsoft 365. SMTP behavior is also relevant; the basic mail-transfer model is documented in RFC 5321, while message format and headers are covered by RFC 5322.
What Email Hosting Migration Means
Email hosting migration is the process of moving mailboxes and related email settings from one mail server or provider to another while keeping the same domain, addresses, and historical messages. For example, you might move name@example.com from a shared hosting server to a dedicated email provider without changing the address that customers and contacts already use.
A migration has several separate parts:
- Message data: Inbox, Sent, Drafts, archive, and other IMAP folders.
- Mailbox identities: User mailboxes, aliases, forwarding addresses, and distribution addresses.
- Client configuration: Desktop and mobile apps, saved passwords, ports, and authentication settings.
- DNS and delivery: MX records, SPF, DKIM, and DMARC records.
- Operational settings: Filters, autoresponders, quotas, retention rules, and shared mailbox permissions.
IMAP generally keeps messages on the server and synchronizes folders and message state with clients. That makes it suitable for mailbox copying, but it does not guarantee that every provider-specific setting will transfer. Calendar entries, contacts, server-side filters, signatures, and locally stored mail may require separate export and import procedures.
Before You Start: Build a Migration Inventory
Start with an inventory rather than immediately changing DNS. Record every address that must continue working, including addresses that are rarely used. Include personal mailboxes, aliases, catch-all behavior, forwarders, role accounts such as support@, and addresses used by website forms or applications.
For each mailbox, record:
- The current address and destination address.
- Approximate mailbox size and number of folders.
- Whether the mailbox uses IMAP, POP, webmail, or a proprietary protocol.
- Whether two-factor authentication, an app password, or an administrator migration account is required.
- Any local-only folders stored in Outlook, Apple Mail, Thunderbird, or another desktop application.
- Aliases, forwarding rules, autoresponders, signatures, and filters that must be recreated.
Check the source and destination provider’s limits before starting. Important limits include maximum mailbox size, maximum message size, folder count, attachment handling, rate limits, and supported authentication methods. A provider may accept ordinary IMAP logins but reject older password authentication or require an app-specific password. Some providers also restrict automated migration connections by IP address or require an administrator to approve access.
Choose a Migration Method
IMAP-to-IMAP Copy
For standard mailboxes, an IMAP copy is usually the most practical method. A migration tool logs in to the old mailbox, reads its folders and messages, and uploads copies to the new mailbox. The original messages remain on the old server unless you explicitly delete them.
Advantages include broad compatibility, preservation of message content, and the ability to run an initial copy followed by one or more incremental synchronizations. Limitations include inconsistent folder-name mapping, incomplete transfer of flags or labels, and no automatic migration of provider-specific rules or calendars.
Provider-Specific Migration
Some destination providers offer a migration service that imports messages from common systems. This may simplify authentication, logging, and repeat synchronization. It can be preferable for larger organizations or for migrations involving Microsoft 365, Google Workspace, or another platform with administrative tooling.
Read the provider’s current documentation carefully. For example, Microsoft’s IMAP migration process has requirements for mailbox credentials and destination preparation, while Google’s migration tools support particular source systems and administrative permissions. Provider tools change over time, so use the current documentation instead of relying on an old tutorial.
Desktop Export and Import
A desktop mail application can export messages to a local format and import them into the new account. This is useful when the source is unavailable through IMAP or when local-only folders must be preserved. It is less convenient for many mailboxes, and it creates an additional responsibility: the exported files become a sensitive copy of the mailbox and must be protected and deleted securely when no longer needed.
Step-by-Step Migration Process
1. Prepare the Destination
Create destination mailboxes, aliases, and forwarding addresses before moving DNS. Use the same addresses where possible so that imported folders map directly to the intended accounts. Set suitable quotas and confirm that the destination accepts the required message sizes.
Do not assume that an alias is a mailbox. An alias may deliver to another account but may not have its own login, storage, or Sent folder. Confirm the intended behavior for each address.
2. Lower DNS TTL in Advance
Before changing MX records, review the domain’s DNS records and lower the TTL for records you expect to change. A lower TTL can make resolver caches expire sooner, but it cannot force every network or mail system to refresh immediately. Some systems cache records longer than the requested TTL, and DNS changes may appear at different times in different locations.
Record the current MX, SPF, DKIM, and DMARC values before editing them. This gives you a reference for troubleshooting and makes it easier to identify an accidental omission.
3. Run an Initial IMAP Copy
Configure the migration tool with the old and new mailbox credentials. Use encrypted connections such as IMAPS or the provider’s supported secure authentication method. Start with one non-critical mailbox as a pilot.
Check the pilot for:
- Inbox, Sent, Drafts, archive, and custom folders.
- Attachments and message body formatting.
- Message dates, sender information, recipients, and subjects.
- Read, unread, starred, or flagged states where supported.
- Messages with unusual characters, large attachments, or long recipient lists.
Some tools translate folders differently. A source folder named Sent could appear as a custom folder instead of being recognized as the destination’s Sent folder. This is usually a mapping issue rather than data loss, but it should be corrected before the full migration.
4. Recreate Non-Message Settings
Manually recreate filters, forwarding, autoresponders, signatures, contacts, calendars, and shared mailbox permissions unless the selected migration service explicitly supports them. Export contacts and calendars from the old system in a supported format, then import them into the destination according to its documentation.
Also inspect website and application settings. Contact forms, monitoring tools, billing systems, scanners, and WordPress plugins may send through the old SMTP server. Update their credentials and SMTP hostname after the destination is ready.
5. Update DNS Carefully
Change the domain’s MX records to the destination provider’s values. Use the exact hostnames and priorities supplied by that provider. Remove obsolete MX records only when you are certain they are no longer needed; leaving an old record with an unintended priority can route some messages to the old server.
Update SPF to authorize the systems that legitimately send mail for the domain. Publish one coherent SPF record rather than several separate SPF records, because multiple SPF records can produce a permanent evaluation error. Configure DKIM using the destination provider’s selector and public key. Review DMARC policy and reporting addresses before making the policy stricter.
DNS changes affect incoming delivery, while SMTP settings and sender authentication affect outgoing delivery. Test both directions independently.
6. Run a Final Synchronization
Keep the old mailboxes available while DNS changes propagate. During this transition, messages may still arrive at the old service. Run an incremental synchronization after the MX change to copy messages that arrived after the initial pass.
Ask senders to resend messages that were rejected or delayed during the transition. Review the old server’s delivery logs, bounce messages, and quarantine reports if available. Do not treat a successful login to the new webmail interface as proof that every message was delivered correctly.
7. Verify Before Decommissioning
Use a written verification checklist for every mailbox. Confirm that users can sign in, send, receive, reply, forward, download attachments, and search historical mail. Test from an external address and from the same domain. Check a mobile client and desktop client where those are part of normal use.
Compare representative folders and message counts, but do not rely on counts alone. Different systems may count deleted items, spam, or conversation views differently. Open older messages, recent messages, messages with attachments, and messages with special characters. Confirm that important aliases and forwarding addresses work.
Keep the old service active until the final synchronization is complete and the required retention period has passed. The correct retention period depends on business needs, contracts, legal requirements, and your provider’s terms. If mail is regulated or subject to litigation holds, consult the responsible legal or compliance professional before deleting anything.
Common Failure Points
Changing MX Before Creating Mailboxes
If the destination does not know an address, it may reject mail or route it incorrectly. Prepare all required recipients first, including aliases that are not visible in the main user list.
Using POP as the Migration Tool
POP is primarily a retrieval protocol and may download only selected folders, commonly the Inbox. Depending on the client and settings, it may also remove messages from the source. IMAP or a documented provider migration tool is generally better for preserving folder structure and server-side history.
Forgetting Local Mail
A desktop client can display messages stored only on the computer. Those messages may not exist on the old server and therefore cannot be copied through IMAP. Check local folders and export them separately.
Publishing Incorrect SPF or DKIM Records
Copying a provider’s SPF text into a second SPF record or using the wrong DKIM selector can cause outgoing mail to fail authentication. Validate records with the provider’s tools and inspect message headers from test deliveries.
Deleting the Old Account Too Soon
Early deletion removes your ability to perform a final sync, investigate delayed delivery, or recover a message missed by the migration tool. Preserve an appropriate backup before decommissioning the old service.
Pros, Cons, and Limitations
Pros of an IMAP migration: it works across many hosting environments, leaves the source intact during copying, supports staged synchronization, and usually preserves the essential message content and folder hierarchy.
Cons: it can be slow for large mailboxes, may require individual credentials or special administrator permissions, and may not preserve provider-specific labels, rules, calendars, contacts, or shared mailbox behavior. Folder mapping and message flags can also differ between systems.
Important limitations: no migration method can recover messages that were already deleted permanently, files stored only on a user’s device, or data excluded by the source or destination provider. Some messages may be rejected because of size, malware scanning, unsupported encoding, or destination policy. A migration copy is not a substitute for a tested backup.
Concise Q&A
Will changing MX records move old emails?
No. MX records control where new incoming mail is delivered. Existing messages must be copied separately through IMAP, a provider migration service, or an export and import process.
Can I keep the same email address?
Yes. The domain and mailbox addresses can remain unchanged while the underlying email host changes. Create the destination mailboxes before changing MX records.
Will IMAP migrate contacts and calendars?
Usually not. IMAP is designed for email access and synchronization. Contacts, calendars, filters, signatures, and permissions typically require separate export, import, or recreation.
How long should the old email host remain active?
Keep it active until the initial and final synchronizations are complete, external tests pass, and you have met your operational or retention requirements. There is no universal period that fits every domain.
What should I do if messages are missing?
Check all source folders, local-only folders, migration logs, size limits, quarantine areas, and folder mappings. Run another incremental sync and inspect the original mailbox before closing it.
Final Checklist
- Inventory every mailbox, alias, forwarder, application, and local mail folder.
- Confirm destination limits, authentication requirements, and mailbox creation.
- Run and verify a pilot migration.
- Copy messages before changing DNS, then run a final incremental sync.
- Update MX, SPF, DKIM, and DMARC using the destination provider’s current instructions.
- Test incoming mail, outgoing mail, attachments, aliases, mobile access, and website forms.
- Retain the old service and a protected backup until verification and retention obligations are satisfied.
Informational notice: Email migration can involve confidential business, personal, or regulated information. Protect credentials and exported mailbox files, use encrypted connections, limit administrator access, and obtain appropriate legal or compliance advice when retention, privacy, or regulated data requirements apply.





Recent Comments