Migrate to Wombat-Email
Bring every mailbox, folder and message from wherever your mail lives now: shared hosting, a mail service, or a server of your own. Nothing is lost, and your old account keeps working until you've checked that everything arrived.
The commands below show mail.example.com. Fill in the helper at the top of the Install page once, and every page shows your own server.
What moves, and how
| Your mail and folders | Copied by the server itself, straight from your old provider: every folder, with its read and flagged marks and the original dates. One form per mailbox in the panel's Migrate page, and it can copy again safely. |
|---|---|
| Your addresses | You add the mailboxes and aliases in the panel, a few clicks each. There's no cap on how many. |
| Passwords | Each mailbox gets a new password, chosen by you in the panel under Wombat-Email's password rule (at least 16 characters, with a lowercase and an uppercase letter, a number and a symbol, and no part of the address), so old passwords don't carry over. Mail apps and phones then sign in with the new one. |
| Contacts and calendars | They aren't mail, so Migrate doesn't copy them. Export them from your old provider (vCard and iCalendar files). Then either import them into your mail app, or switch on contacts and calendars in the panel and import them into that account, so every device gets them, webmail included. |
Before you start
- Wombat-Email is installed, version 0.5.0 or newer (an older one updates from the panel: Updates), and its Dashboard says nothing needs attention (Install).
- The domain's DNS is on Cloudflare. If it isn't yet, move it first (Install, step "Point your domain to Cloudflare"). Cloudflare copies your existing records, so mail keeps going to your old provider until you switch it. If your old mail server is also the domain's DNS server (its own nameservers), check in Cloudflare that the copied records include the MX before you change the nameservers at your registrar.
- A list of every address: each mailbox, and each alias or forward. Your old provider's control panel lists them.
- The old provider's IMAP server name, the one mail apps use (often
imap.ormail.something; their help pages say), and each mailbox's password there. Some providers want an "app password" for this, or IMAP switched on in their settings. - No rush: your old provider keeps getting the mail until you switch, so there's time to set everything up and check it.
-
Add the domain, then every mailbox and alias
WhereIn your Wombat-Email panelYour server's panel in your web browser (https://mail.example.com/panel/), signed inIn the panel, Domains › Add a domain, with its first mailbox, and tick Defer DNS at the end of the address. Its mail keeps going to your old provider: only the domain's DKIM key is published so far. Then add its other mailboxes (Mailboxes) and aliases (Aliases; Import many takes a whole list at once, pasted or as a file exported from your old provider).
Give each mailbox enough room (its quota) for everything it's getting, or choose no limit for now.
-
Copy each mailbox's mail
WhereIn your Wombat-Email panelYour server's panel in your web browser (https://mail.example.com/panel/), signed inOpen Migrate (in the menu, under Mail) and press Copy a mailbox. Choose the mailbox, then type the old server's name (the one your old mail app used for incoming mail), and that mailbox's login and password there. Check and copy logs in to the old server first, so a wrong password or server name is caught straight away and explained; then the copy starts, with a progress bar, and you get an email when it's done. Do the same for each mailbox: they copy one after the other.
- Use the old provider's own server name if your old app said
mail.yourdomain: that name may point to your new server now. Migrate tells you if it does. - A big mailbox takes a while: about a minute for every few thousand messages. You can leave the page and come back.
- It only ever adds. Nothing here is deleted or changed, and nothing at the old provider is touched, so you can copy before and after the switch.
- Folder names come along as they were. If your old provider called it "Sent Items", you'll
have both that and Sent here: drag the messages across in webmail and delete the empty one. A folder inside a
folder may arrive as one name, like
Projects.2019.
By hand instead, as root on the server:
wombat-email-copy-mailasks the same questions in the terminal. - Use the old provider's own server name if your old app said
-
Switch the domain's mail here
WhereIn your Wombat-Email panelYour server's panel in your web browser (https://mail.example.com/panel/), signed inWhen every mailbox and alias is there and the old mail has arrived (webmail shows it), go to Domains and choose Switch mail here in the domain's menu. It says what you have ready first. Wombat-Email then points the domain's MX, SPF, DMARC and MTA-STS records to your server at Cloudflare, and new mail starts arriving within minutes: watch it come in.
-
Move your mail apps and phones
WhereIn your web browserAny browser, on any computerWebmail is at
https://webmail.example.com/, for each domain on its own name. In a mail app or on a phone, remove the old account and add it again with the address and its new password: most apps find the settings by themselves. If yours asks, it'smail.example.comfor both incoming (IMAP, port 993) and outgoing mail (port 465, or 587). -
Copy once more, a day later
WhereIn your Wombat-Email panelYour server's panel in your web browser (https://mail.example.com/panel/), signed inFor a few hours after the switch, some senders still deliver to your old provider (the internet takes a while to notice the change), and an old phone may have kept sending through it. In Migrate, press Copy again on each mailbox (the server's name is filled in; only the password is asked again): it brings over only what's new.
-
Close the old account
WhereAt your current mail providerTheir website or control panel, signed in to your account thereAfter a week or two, when nothing new has turned up there, export anything that isn't mail (contacts, calendars), then cancel. If the old provider also holds your domain's registration, it can stay there or move: what matters for mail is that its DNS is on Cloudflare.
Only have a downloaded copy?
This one is done on the server itself. If the old account is gone but you saved its mail as files (shared hosting lets you download it by FTP or in a
backup), Wombat-Email can import that too. Each mailbox is usually a folder holding cur,
new and tmp, with .Sent, .Drafts and other folders beside them,
typically under mail/example.com/you/. That's the Maildir format. A single file starting with
"From " is an mbox, and works as well.
-
WhereIn a terminal on your own computerTerminal on a Mac or Linux, PowerShell on Windows. Not logged in to the VPS yet
Upload one mailbox's folder to the server (the path is where the download is on your computer):
scp -r mail/example.com/you root@mail.example.com:/root/old-mail -
WhereIn your VPS's terminalThe window logged in to the server: the line you type on starts with root@ and ends with #
Import it into its mailbox here, then remove the upload:
wombat-email-copy-mail --files /root/old-mail you@example.com && rm -r /root/old-mailImport each download once: importing the same files again would add their messages twice.
Just a few messages?
For a small mailbox, a mail app does it too: add both accounts to Thunderbird (or any app that shows folders), then drag the folders from the old account to the new one.
If something goes wrong
| "The old server refused the login" | The login or password is wrong, or the provider wants an app password or IMAP switched on first. Their help pages say how. |
|---|---|
| "The certificate isn't for…" | Use the server name on the old provider's certificate, usually their own server's name rather than mail.your domain. It's in their help pages, or in a mail app's current settings. |
| It stopped halfway | Run it again: it carries on, and never copies a message twice. If a mailbox is full here, raise its quota in the panel first. |
| Still stuck | Ask in the forum: say which provider you're moving from and what the command printed (leave out passwords). |