Connect a generic IMAP server to MailMigrata
This article explains how to connect any IMAP server to MailMigrata, including cPanel, Dovecot, hMailServer, university Cyrus servers, and self-hosted servers.
Limitations
- IMAP only. POP3 is not supported: it downloads and often deletes mail, and cannot be resumed safely. Enable IMAP on the server.
- Use dedicated connectors for Gmail, Microsoft 365, and Yahoo, so the OAuth and app-password screens match the provider.
- The server must be reachable from the public internet. Private IP addresses and office firewalls cause timeouts.
- Self-signed certificates fail validation until the certificate name matches the host name.
What is migrated
Whatever the IMAP LIST command returns: messages, folders, and attachments the destination accepts. The source is not changed unless you choose to delete. You can keep using mail during the copy.
Prerequisites
- The IMAP host name, not a Roundcube or webmail URL.
- Port 993 (SSL/TLS), or 143 with STARTTLS if required.
- Username (often the full email address) and password or app password.
Host and port tables for about 279 providers are in Provider settings.
Connection details
| Setting | Value |
|---|---|
| Protocol | IMAP |
| Host | Your IMAP server |
| Port | 993 |
| Authentication | Username and password |
Steps
- In MailMigrata, choose Other / IMAP.
- Enter the host name from your provider's IMAP settings page.
- Validate.
- If login succeeds but the list is empty, the user may have no INBOX yet, or a namespace prefix such as
INBOX.hides the folders.
- If login succeeds but the list is empty, the user may have no INBOX yet, or a namespace prefix such as
- Select only the folders you need. Skip extras such as a Dovecot
shared/tree. - Choose a destination and start.
cPanel: use this connector, with the host name from Connect Devices, not the webmail URL. For Microsoft 365 as destination, see cPanel to Microsoft 365.
Troubleshooting
- LOGIN failed: wrong username or password, or IMAP is off on the server.
- Connection timeout: port 993 is blocked or the host is not public. Open IMAP SSL on the firewall or use a public host name.
- Certificate verify failed: the certificate name does not match the host. Fix DNS and the certificate, then validate again.