Universal Email Migration Toolkit
Migration Decision Tree
Use this matrix to determine the best migration path:
| Source |
Destination |
Method |
Complexity |
Notes |
| Yahoo Mail |
Gmail |
IMAP → Gmail Import |
Easy |
Use app passwords |
| Yahoo Mail |
Outlook |
IMAP → Outlook Desktop |
Medium |
Manual folder setup |
| Zoho Mail |
Gmail |
IMAP → Gmail Import |
Easy |
Supports IMAP natively |
| Zoho Mail |
Outlook |
Microsoft Migration |
Medium |
Use Zoho IMAP settings |
| ProtonMail |
Gmail |
Export → Import |
Hard |
Limited export options |
| ProtonMail |
Outlook |
Manual forwarding |
Hard |
No bulk export |
| iCloud Mail |
Gmail |
IMAP → Gmail Import |
Easy |
Requires app password |
| iCloud Mail |
Outlook |
IMAP → Outlook |
Medium |
Limited folder support |
| Any IMAP |
Any IMAP |
IMAP bridging |
Medium |
Universal solution |
| Exchange On-prem |
Cloud |
PST export/import |
Hard |
Requires Exchange admin |
Universal IMAP Migration Process
For most provider-to-provider migrations:
Step 1: Source Preparation
- Enable IMAP on source account (if not enabled by default)
- Create app password (Gmail, Yahoo, iCloud require this)
- Test connectivity using the IMAP test script
- Estimate data size using the mailbox size script
- Document folder structure for mapping reference
Step 2: Destination Setup
- Create target account with sufficient storage
- Enable IMAP access (for intermediary tools)
- Configure mail client (Outlook, Thunderbird, or web import)
- Set up folder structure matching source (if needed)
- Test inbound mail to verify account is working
Step 3: Migration Execution
Choose based on destination platform:
To Gmail (any source with IMAP)
- Gmail → Settings → Accounts → Import mail and contacts
- Enter source IMAP details from provider matrix
- Choose import options (last 30 days vs. all mail)
- Start import — Gmail handles the rest automatically
To Outlook/Microsoft 365
- Outlook Desktop → Add Account → IMAP source
- Set up both accounts in same Outlook profile
- Drag and drop folders from source to destination
- Alternative: Use Microsoft's import tools for bulk
IMAP-to-IMAP (Universal)
- Use desktop client (Outlook, Thunderbird, Apple Mail)
- Configure both accounts as IMAP
- Copy folders between accounts via client
- Monitor for errors and retry failed items
Step 4: Validation
- Compare email counts between source and destination
- Test key functionality (send, receive, search)
- Verify contacts and calendar if migrated
- Check folder structure matches expectations
- Validate largest messages and attachments
Email Backup and Export
Before any migration, create backups:
Source-Specific Export Methods
Gmail / Google Workspace
- Method: Google Takeout (takeout.google.com)
- Format: MBOX (Thunderbird compatible)
- Includes: Email, contacts, calendar
- Time: 2-48 hours depending on mailbox size
Outlook / Exchange
- Method: Export to PST file
- Format: PST (Outlook native)
- Process: File → Open & Export → Export to File
- Limitation: Desktop Outlook required
Yahoo Mail
- Method: IMAP download via email client
- Format: Various (depends on client)
- Process: Configure IMAP, sync all folders locally
- Note: No bulk export tool from Yahoo
Zoho Mail
- Method: IMAP export or Zoho's backup tool
- Format: MBOX or EML
- Process: Contact Zoho support for large mailboxes
- Alternative: IMAP sync to local client
iCloud Mail
- Method: IMAP download
- Format: Various (client dependent)
- Process: Configure IMAP with app password
- Limitation: No native export tool
ProtonMail
- Method: Individual email export only
- Format: EML files
- Process: Select emails individually, export
- Note: No bulk export due to encryption
See references/backup-export.md for detailed step-by-step procedures.
Common Migration Challenges
| Challenge |
Solution |
Prevention |
| Authentication failures |
Use app passwords, check 2FA settings |
Test connectivity first |
| Size limitations |
Split into batches, exclude large attachments |
Check provider limits |
| Folder mapping issues |
Document structure, plan manual creation |
Map folders before migration |
| Missing emails |
Check spam/junk, verify date ranges |
Do incremental migration |
| Slow transfer speeds |
Use multiple connections, off-peak hours |
Plan adequate time |
| Character encoding |
Ensure UTF-8 support in tools |
Test with non-ASCII subjects |
Provider-Specific Considerations
Yahoo Mail
- IMAP Limitations: Free accounts have folder limits
- Authentication: Must use app passwords with 2FA
- Best Practice: Migrate during off-peak hours (night/weekend)
Zoho Mail
- IMAP Support: Full IMAP access on all plans
- Bulk Migration: Zoho offers migration services for enterprise
- API Access: Available for custom migration tools
ProtonMail
- Major Limitation: No IMAP access due to encryption
- Workaround: Export to Thunderbird, then migrate from Thunderbird
- Enterprise: ProtonMail Bridge available for paid plans
iCloud Mail
- Storage Limits: 5GB free, consider upgrading temporarily
- IMAP Quirks: Some folders may not sync properly
- Performance: Slow IMAP response, plan extra time
On-Premises Exchange
- Admin Access: Required for PST export/import
- Network: Consider bandwidth limitations
- Legacy Versions: Older Exchange may need PST conversion
Troubleshooting Workflow
When migration fails or stalls:
- Check authentication — Re-enter passwords, regenerate app passwords
- Verify IMAP settings — Double-check server, port, SSL settings
- Test connectivity — Run
scripts/imap-test.py with exact settings
- Check quotas — Verify destination has enough storage space
- Review logs — Look for specific error messages in client logs
- Retry smaller batches — Split large mailboxes into smaller chunks
- Contact support — Provider-specific issues may need support tickets
See references/troubleshooting.md for comprehensive error resolution guide.
Migration Best Practices
Planning Phase
- Inventory thoroughly — Document all email accounts, sizes, special requirements
- Test with pilot users — Never migrate entire organization without testing
- Communicate clearly — Set expectations with users about timeline and downtime
- Plan rollback — Always have a way to revert if migration fails
Execution Phase
- Monitor actively — Don't start migration and walk away
- Validate incrementally — Check each user/batch before proceeding
- Keep logs — Document what worked, what failed, and why
- Stay flexible — Be prepared to switch methods if primary approach fails
Post-Migration
- Validate data integrity — Compare counts, spot-check important emails
- Train users — New interface, different features, updated mobile setup
- Monitor performance — Watch for issues in first 48-72 hours
- Plan cleanup — When to disable old accounts, how long to retain access
1---
2name: email-migration-toolkit
3description: "Universal email migration toolkit for any provider to any provider. Use when migrating between Yahoo, Zoho, ProtonMail, iCloud, on-premises Exchange, or any IMAP-capable email service. Covers decision trees, backup/export procedures, IMAP connectivity testing, troubleshooting, and provider-specific configurations. Essential for IT professionals handling diverse email migrations beyond Google/Microsoft ecosystems."
4metadata:
5 source: https://skillmd.com/skills/modbender/email-migration-toolkit
6---
7
8# Universal Email Migration Toolkit
9
10## Migration Decision Tree
11
12Use this matrix to determine the best migration path:
13
14| Source | Destination | Method | Complexity | Notes |
15|--------|-------------|--------|-----------|-------|
16| Yahoo Mail | Gmail | IMAP → Gmail Import | Easy | Use app passwords |
17| Yahoo Mail | Outlook | IMAP → Outlook Desktop | Medium | Manual folder setup |
18| Zoho Mail | Gmail | IMAP → Gmail Import | Easy | Supports IMAP natively |
19| Zoho Mail | Outlook | Microsoft Migration | Medium | Use Zoho IMAP settings |
20| ProtonMail | Gmail | Export → Import | Hard | Limited export options |
21| ProtonMail | Outlook | Manual forwarding | Hard | No bulk export |
22| iCloud Mail | Gmail | IMAP → Gmail Import | Easy | Requires app password |
23| iCloud Mail | Outlook | IMAP → Outlook | Medium | Limited folder support |
24| Any IMAP | Any IMAP | IMAP bridging | Medium | Universal solution |
25| Exchange On-prem | Cloud | PST export/import | Hard | Requires Exchange admin |
26
27## Universal IMAP Migration Process
28
29For most provider-to-provider migrations:
30
31### Step 1: Source Preparation
321. **Enable IMAP** on source account (if not enabled by default)
332. **Create app password** (Gmail, Yahoo, iCloud require this)
343. **Test connectivity** using the IMAP test script
354. **Estimate data size** using the mailbox size script
365. **Document folder structure** for mapping reference
37
38### Step 2: Destination Setup
391. **Create target account** with sufficient storage
402. **Enable IMAP access** (for intermediary tools)
413. **Configure mail client** (Outlook, Thunderbird, or web import)
424. **Set up folder structure** matching source (if needed)
435. **Test inbound mail** to verify account is working
44
45### Step 3: Migration Execution
46Choose based on destination platform:
47
48#### To Gmail (any source with IMAP)
491. Gmail → Settings → Accounts → Import mail and contacts
502. Enter source IMAP details from provider matrix
513. Choose import options (last 30 days vs. all mail)
524. Start import — Gmail handles the rest automatically
53
54#### To Outlook/Microsoft 365
551. Outlook Desktop → Add Account → IMAP source
562. Set up both accounts in same Outlook profile
573. Drag and drop folders from source to destination
584. Alternative: Use Microsoft's import tools for bulk
59
60#### IMAP-to-IMAP (Universal)
611. Use desktop client (Outlook, Thunderbird, Apple Mail)
622. Configure both accounts as IMAP
633. Copy folders between accounts via client
644. Monitor for errors and retry failed items
65
66### Step 4: Validation
671. **Compare email counts** between source and destination
682. **Test key functionality** (send, receive, search)
693. **Verify contacts and calendar** if migrated
704. **Check folder structure** matches expectations
715. **Validate largest messages** and attachments
72
73## Email Backup and Export
74
75Before any migration, create backups:
76
77### Source-Specific Export Methods
78
79#### Gmail / Google Workspace
80- **Method**: Google Takeout (takeout.google.com)
81- **Format**: MBOX (Thunderbird compatible)
82- **Includes**: Email, contacts, calendar
83- **Time**: 2-48 hours depending on mailbox size
84
85#### Outlook / Exchange
86- **Method**: Export to PST file
87- **Format**: PST (Outlook native)
88- **Process**: File → Open & Export → Export to File
89- **Limitation**: Desktop Outlook required
90
91#### Yahoo Mail
92- **Method**: IMAP download via email client
93- **Format**: Various (depends on client)
94- **Process**: Configure IMAP, sync all folders locally
95- **Note**: No bulk export tool from Yahoo
96
97#### Zoho Mail
98- **Method**: IMAP export or Zoho's backup tool
99- **Format**: MBOX or EML
100- **Process**: Contact Zoho support for large mailboxes
101- **Alternative**: IMAP sync to local client
102
103#### iCloud Mail
104- **Method**: IMAP download
105- **Format**: Various (client dependent)
106- **Process**: Configure IMAP with app password
107- **Limitation**: No native export tool
108
109#### ProtonMail
110- **Method**: Individual email export only
111- **Format**: EML files
112- **Process**: Select emails individually, export
113- **Note**: No bulk export due to encryption
114
115See `references/backup-export.md` for detailed step-by-step procedures.
116
117## Common Migration Challenges
118
119| Challenge | Solution | Prevention |
120|-----------|----------|------------|
121| Authentication failures | Use app passwords, check 2FA settings | Test connectivity first |
122| Size limitations | Split into batches, exclude large attachments | Check provider limits |
123| Folder mapping issues | Document structure, plan manual creation | Map folders before migration |
124| Missing emails | Check spam/junk, verify date ranges | Do incremental migration |
125| Slow transfer speeds | Use multiple connections, off-peak hours | Plan adequate time |
126| Character encoding | Ensure UTF-8 support in tools | Test with non-ASCII subjects |
127
128## Provider-Specific Considerations
129
130### Yahoo Mail
131- **IMAP Limitations**: Free accounts have folder limits
132- **Authentication**: Must use app passwords with 2FA
133- **Best Practice**: Migrate during off-peak hours (night/weekend)
134
135### Zoho Mail
136- **IMAP Support**: Full IMAP access on all plans
137- **Bulk Migration**: Zoho offers migration services for enterprise
138- **API Access**: Available for custom migration tools
139
140### ProtonMail
141- **Major Limitation**: No IMAP access due to encryption
142- **Workaround**: Export to Thunderbird, then migrate from Thunderbird
143- **Enterprise**: ProtonMail Bridge available for paid plans
144
145### iCloud Mail
146- **Storage Limits**: 5GB free, consider upgrading temporarily
147- **IMAP Quirks**: Some folders may not sync properly
148- **Performance**: Slow IMAP response, plan extra time
149
150### On-Premises Exchange
151- **Admin Access**: Required for PST export/import
152- **Network**: Consider bandwidth limitations
153- **Legacy Versions**: Older Exchange may need PST conversion
154
155## Troubleshooting Workflow
156
157When migration fails or stalls:
158
1591. **Check authentication** — Re-enter passwords, regenerate app passwords
1602. **Verify IMAP settings** — Double-check server, port, SSL settings
1613. **Test connectivity** — Run `scripts/imap-test.py` with exact settings
1624. **Check quotas** — Verify destination has enough storage space
1635. **Review logs** — Look for specific error messages in client logs
1646. **Retry smaller batches** — Split large mailboxes into smaller chunks
1657. **Contact support** — Provider-specific issues may need support tickets
166
167See `references/troubleshooting.md` for comprehensive error resolution guide.
168
169## Migration Best Practices
170
171### Planning Phase
172- **Inventory thoroughly** — Document all email accounts, sizes, special requirements
173- **Test with pilot users** — Never migrate entire organization without testing
174- **Communicate clearly** — Set expectations with users about timeline and downtime
175- **Plan rollback** — Always have a way to revert if migration fails
176
177### Execution Phase
178- **Monitor actively** — Don't start migration and walk away
179- **Validate incrementally** — Check each user/batch before proceeding
180- **Keep logs** — Document what worked, what failed, and why
181- **Stay flexible** — Be prepared to switch methods if primary approach fails
182
183### Post-Migration
184- **Validate data integrity** — Compare counts, spot-check important emails
185- **Train users** — New interface, different features, updated mobile setup
186- **Monitor performance** — Watch for issues in first 48-72 hours
187- **Plan cleanup** — When to disable old accounts, how long to retain access