Email
Email Migration Guide
How to migrate email from your existing mail server
Email Migration Guide
Migrate email data from your existing mail server to your new email hosting.
How It Works
- You provide SSH access to your source mail server
- The system connects and syncs your maildir folders
- Emails are imported into your new mailboxes
- You can close your browser - migrations continue in the background
- You'll be notified when each mailbox completes
Before You Start
For faster migrations, optimize your source server for concurrent SSH connections.
Increase SSH Connection Limits
Edit /etc/ssh/sshd_config on your source server:
MaxStartups 50:30:100Then restart SSH:
systemctl restart sshdIncrease File Descriptor Limits
Edit /etc/security/limits.conf:
* soft nofile 65535
* hard nofile 65535Apply immediately (or re-login):
ulimit -n 65535Verify Settings
ulimit -n # Should show: 65535
sshd -T | grep maxstartups # Should show: maxstartups 50:30:100Starting a Migration
- Go to Apps > Email > Migrations > New Migration
- Enter your source server details:
- Host - IP address or hostname of your current mail server
- SSH User - Usually
root - Maildir Path - Where mailboxes are stored (e.g.,
/home/mail/yourdomain.com)
- Select the target domain in your account
- Click Discover Mailboxes to scan the source server
- Select which mailboxes to migrate
- Click Start Migration
During Migration
- Up to 6 mailboxes are migrated simultaneously
- Smaller mailboxes complete first
- Progress updates in real-time
- You can safely close your browser - migrations continue on the server
- You'll receive notifications when jobs complete
Time Estimates
| Data Size | Estimated Time |
|---|---|
| 10 GB | ~2 minutes |
| 100 GB | ~17 minutes |
| 500 GB | ~1.5 hours |
| 1 TB | ~3 hours |
| 10 TB | ~28 hours |
Times assume good network conditions. Actual times vary based on network speed and server load.
Troubleshooting
Connection Refused
If discovery or migration fails with "Connection refused":
- Verify SSH is running on the source server
- Check the MaxStartups setting (see above)
- Ensure the IP/hostname is correct
- Check firewall allows SSH connections
Migration Stuck or Slow
For very large mailboxes:
- Check network connectivity between servers
- Large mailboxes (10GB+) may take longer - this is normal
- The system automatically handles timeouts and retries
Mailbox Not Found
If a source mailbox shows "No match":
- Create the corresponding mailbox in your account first
- Mailbox names must match exactly (case-insensitive)
- Re-run discovery after creating missing mailboxes
Resume Failed Migrations
If a migration was interrupted:
- Simply restart the migration from the UI
- The system automatically resumes from where it left off
- Only new or changed emails are transferred