IMAP backup: save any mailbox locally
You are looking for a tool that copies an IMAP mailbox into files on your computer? Here is what an IMAP backup covers, which tools exist and how to use Mailriva for it.
Updated:
Overview:Back up emails
In short
- Any provider with IMAP access can be backed up. Mailriva opens the folders read-only (IMAP EXAMINE) and writes EML (one file per email) or MBOX (one file per folder) to your computer.
- Your mailbox stays unchanged, read/unread status included. If you back up again into the same folder in the same format, emails that are already saved are skipped on that run.
- Mailriva is free up to 1 GB per device, for any number of mailboxes. The general guide is at back up your emails.
What is an IMAP backup?
IMAP is the protocol most mail apps use to read a mailbox from your provider’s server. An IMAP backup uses that same access to copy your folders and emails into files on your own computer. Your mailbox online isn’t changed by it, and the copy no longer depends on the provider.
What an IMAP backup covers, and what it doesn’t
What is backed up are the emails with their attachments and the folder structure of your mailbox. Contacts, calendars, filter rules, signatures and your provider’s settings are not part of it. Export contacts in your provider’s webmail, for example as a vCard. Mailriva doesn’t create PDF files of whole mailboxes (you save single or marked emails as PDF through the print dialog), has no permanent search index across backups, and doesn’t create PST files or load files into a mailbox.
Tools at a glance
There are several ways to back up an IMAP mailbox locally. Which one fits depends on what you need:
| Tool | What it does | Limit |
|---|---|---|
| Mail app export (for example Apple Mail on a Mac) | Apple says Mail on Mac can export selected mailboxes as .mbox packages (Mailbox, Export Mailbox) | You set up the app yourself and choose the mailboxes one by one. Apple’s page describes no filters or encryption |
| imapsync | Command-line tool that copies from IMAP server to IMAP server; source code freely available; ready-made packages and support are paid | The maker says it can’t back up to or restore from a local directory |
| MailStore Home | Email archiving software with a search function, free for private use at home according to the maker | The maker’s system requirements name only Windows |
| Mailriva | Desktop app for macOS and Windows: move, back up as EML or MBOX (optionally as ZIP), archive optionally as encrypted .mrvault | No permanent search index (the app’s “Open & Search” and the online viewer search the files you open), no putting files back into a mailbox, no contacts and calendars |
How to back up an IMAP mailbox with Mailriva
- 1
Connect the mailbox
In Mailriva choose “Back Up” and your provider. Mailriva has 65 provider presets; you can enter other servers by hand. What you need to set up at your provider first is in the sign-in help. Mailriva shows the steps right next to the password field.
- 2
Pick folders and filters
Choose the folders, skip spam and trash, or filter by date, size and attachments.
- 3
Choose format and destination
EML for one file per email, MBOX for one file per folder. As the destination use a folder on your computer or on an external drive. Before it starts, Mailriva checks that your drive has enough free space.
- 4
Start
You can pause and resume later. Emails that are already copied are skipped. If something goes wrong, copy the last diagnostic log in the app’s settings and send it to support.
Sign-in: what you need first
Many providers only let a mail app in after you have set something up:
- Gmail and Google Workspace: 2-Step Verification and an app password. Create a Gmail app password
- Yahoo and AOL: an app password, created in a browser where you have been signed in for a while (not incognito). Yahoo and AOL sign-in help
- iCloud: two-factor authentication and an app-specific password. iCloud sign-in help
- Outlook.com, Hotmail, Microsoft 365: Microsoft sign-in in a browser window. Outlook sign-in help
Server settings for common providers
The values come from Mailriva’s provider presets. If you set up another program, you need them there too.
Gmail
| Protocol | Server | Port | Encryption |
|---|---|---|---|
| IMAP | imap.gmail.com | 993 | SSL/TLS |
Outlook.com and Hotmail
Mailriva signs in to Microsoft accounts with the Microsoft sign-in in a browser window, not with a password.
| Protocol | Server | Port | Encryption |
|---|---|---|---|
| IMAP | outlook.office365.com | 993 | SSL/TLS |
Yahoo Mail
| Protocol | Server | Port | Encryption |
|---|---|---|---|
| IMAP | imap.mail.yahoo.com | 993 | SSL/TLS |
| POP3 | pop.mail.yahoo.com | 995 | SSL/TLS |
| SMTP | smtp.mail.yahoo.com | 465 | SSL/TLS |
| SMTP | smtp.mail.yahoo.com | 587 | SSL/TLS |
Source:help.yahoo.com
iCloud Mail
| Protocol | Server | Port | Encryption |
|---|---|---|---|
| IMAP | imap.mail.me.com | 993 | SSL/TLS |
AOL Mail
| Protocol | Server | Port | Encryption |
|---|---|---|---|
| IMAP | imap.aol.com | 993 | SSL/TLS |
Comcast / Xfinity
If your Comcast.net mailbox has moved to Yahoo Mail, Yahoo’s help says to use imap.mail.yahoo.com on port 993 with SSL/TLS and your full @comcast.net address, once the move is complete and you have signed in to Yahoo at least once. See back up Yahoo Mail.
| Protocol | Server | Port | Encryption |
|---|---|---|---|
| IMAP | imap.comcast.net | 993 | SSL/TLS |
How do I restore?
EML and MBOX files open in mail apps such as Thunderbird or Apple Mail, so you can read your backup there. You can open and search individual EML or MBOX files from your backup right away in Mailriva (“Open & Search”) or in the online viewer, without importing them; the file stays on your computer. If you want to bring the mail into a new mailbox, Mailriva moves mail from mailbox to mailbox (IMAP to IMAP): transfer emails from one account to another.
What does it cost?
Free up to 1 GB per device, for any number of mailboxes. For more, you buy a 30-day pass in the app: 10 GB for €6.90, 25 GB for €12.90 or Unlimited for €49.90, charged in euros. No subscription, no auto-renewal. A test run doesn’t count. You can buy the pass in the app’s settings at any time.
All details: pricing and passes. Your online mailbox is only read: your mailbox stays unchanged. Credentials stay on your device and are never sent to Mailriva servers.
Frequently asked questions
What is an IMAP backup?
A copy of your mailbox’s folders and emails in files on your own computer, made over the same IMAP access your mail app uses. With Mailriva you connect the account, set a destination, choose the format and then the folders, and Mailriva writes EML or MBOX files.
Does it change my mailbox?
No. Mailriva opens the folders read-only (IMAP EXAMINE), deletes nothing and leaves read/unread status unchanged.
EML or MBOX?
EML is one file per email and recommended for archives. MBOX is one file per folder. Both open in mail apps such as Thunderbird or Apple Mail.
Is there a free IMAP backup tool?
Mailriva is free up to 1 GB per device, for any number of mailboxes. After that there is a 30-day pass. On Windows, MailStore Home is also free for private use at home, according to its maker.
How do I restore an IMAP backup?
EML and MBOX files open in mail apps such as Thunderbird or Apple Mail. To bring mail into a new mailbox, Mailriva moves mail from mailbox to mailbox.
Sources
- imapsync (maker) (checked )
- MailStore Home (maker) (checked )
- Apple: import or export mailboxes in Mail on Mac (checked )
- Yahoo Help: Comcast.net email moving to Yahoo Mail (checked )
Back up any IMAP mailbox on your own computer
Download Mailriva and save your mailbox as EML or MBOX. Free up to 1 GB · Mac & Windows · read-only.