To back up Mac Mail, you export your mailboxes as .mbox files or use Time Machine to capture the entire Mail data folder. This article explains both methods, how to restore them, and how to choose the right approach for your needs.
Why Back Up Mac Mail
Mac Mail stores every email, attachment, and folder locally on your Mac, even if you use IMAP or Exchange. This local copy is what you see in the app, and it can be lost through accidental deletion, a corrupted database, a failed hard drive, or a macOS update gone wrong. A backup ensures you can recover your messages even if your mail server’s copy is gone or your account is closed.
Many people assume that because their email is “in the cloud” with Gmail or iCloud, they don’t need a backup. That’s a misconception: cloud services can delete emails due to policy violations, account hacks, or sync errors, and they don’t protect you from accidentally deleting messages in your local Mail app. A local backup gives you an independent copy you control.
How Mac Mail Stores Your Data
Mail stores everything in a hidden folder inside your home directory: ~/Library/Mail. Inside, you’ll find subfolders for each account (e.g., V10, V9), and within those, folders like MailData (which contains the envelope index, rules, and attachments) and Messages (which contains the actual .emlx files for each message).
When you export a mailbox, Mail creates a single .mbox file—a package that contains the messages and attachments from that mailbox. This is the standard interchange format used by many email clients, so you can import it into another Mac, Thunderbird, or Outlook.
Time Machine, on the other hand, backs up the entire ~/Library/Mail folder in its native format. This is simpler but less portable—you can’t easily move a Time Machine backup to another email client.
Method 1: Export Mailboxes as .mbox Files
This is the most direct way to back up specific mailboxes or your entire account.
- Open the Mail app on your Mac.
- In the sidebar, select the mailbox or mailboxes you want to back up. To select multiple, hold Command and click each one.
- Go to Mailbox in the menu bar and choose Export Mailbox….
- Choose a destination folder (e.g., an external drive or a cloud-synced folder like Dropbox).
- Click Choose. Mail will create a .mbox file for each selected mailbox.
This method works for individual folders like Inbox, Sent, or custom folders. To back up everything, select all mailboxes under an account and export them together. Note that the .mbox file can be large if you have many attachments; ensure your destination has enough free space.
Method 2: Time Machine Backup
Time Machine is built into macOS and backs up your entire system, including Mail data, automatically if you set up an external drive.
- Connect an external drive (or use a network drive) and set it up as your Time Machine backup disk in System Settings → General → Time Machine.
- Time Machine will automatically back up your Mac every hour, including the Mail folder.
- To restore a specific email or mailbox, open Time Machine (from the menu bar icon) and navigate to the Mail folder or use the Mail app’s own restore feature.
To restore Mail data from Time Machine: open Mail, then go to File → Import Mailboxes…, and choose the .mbox files from your Time Machine backup. Alternatively, you can restore the entire ~/Library/Mail folder by entering Time Machine, navigating to that folder, and clicking Restore.
Time Machine is ideal for disaster recovery—if your Mac crashes, you can restore everything, including Mail, to a new Mac. However, it’s not a portable format; you can’t easily extract a single email from a Time Machine backup without restoring the whole folder.
Choosing the Right Backup Method
Your choice depends on what you need:
- Portability and selective backup: Use .mbox export if you want to move emails to another computer or email client, or if you only need to back up a few important folders.
- Full system recovery: Use Time Machine if you want a complete, automatic backup of your entire Mac, including Mail, with minimal effort.
- Cloud backup: You can also sync your .mbox files to a cloud service like iCloud Drive, Dropbox, or Google Drive for off-site protection. This adds redundancy but remember that cloud services have their own risks.
For most users, a combination is best: Time Machine for full recovery, plus periodic .mbox exports of critical mailboxes to an external drive or cloud folder.
Common Problems and How to Avoid Them
Here are typical issues you might encounter when backing up Mac Mail:
- Mailbox export fails or is slow: This often happens with very large mailboxes. Try exporting smaller subfolders instead of the entire account. Also, make sure your destination drive has enough space.
- Mail data corrupted: If Mail behaves oddly (crashes, missing messages), it may be due to a corrupted database. Before backing up, run Mailbox → Rebuild on the problematic mailbox. This can fix issues but may take time.
- Time Machine backup too large: If your Mail folder is huge, Time Machine backups can become slow. You can exclude the Mail folder from Time Machine and rely on .mbox exports instead, but then you lose automatic protection.
- Cannot import .mbox file: When importing, make sure the .mbox file is not corrupted and that you have enough disk space. If import fails, try copying the .mbox file to your Desktop and importing from there.
Comparing Backup Options
Here’s a quick comparison of the two main methods:
- .mbox Export: Portable, selective, manual (you must remember to do it). Good for moving to another app or Mac.
- Time Machine: Automatic, comprehensive, but not portable. Good for disaster recovery.
There’s also the option of using a third-party backup tool that copies the Mail folder directly. These tools often offer scheduling and compression, but they essentially do the same thing as Time Machine—copying the raw data. For most users, the built-in tools are sufficient.
Costs and Safety Considerations
Both .mbox export and Time Machine are free—they’re built into macOS. The only cost is the external drive you use for Time Machine or to store .mbox files. Cloud storage services like iCloud or Dropbox have free tiers but charge for large amounts of storage.
When backing up, be aware of privacy and security: your email contains sensitive information. If you store backups on an external drive, keep it physically secure. If you use cloud storage, enable encryption at rest (most services do this) and consider using a password-protected disk image (.dmg) for your .mbox files before uploading. You can create one using Disk Utility → File → New Image → Image from Folder.
Also, regularly test your backups. Occasionally try importing a .mbox file or restoring a single email from Time Machine to ensure the backup is actually usable. A backup you’ve never tested is not a backup.
Frequently Asked Questions
How do I back up all my Mac Mail emails at once?
Select all mailboxes under an account in the sidebar (click the account name, then Command+A), then go to Mailbox → Export Mailbox… and choose a destination. This creates one .mbox file per mailbox. Alternatively, use Time Machine to back up the entire ~/Library/Mail folder automatically.
Can I restore a single email from a Time Machine backup?
Yes. Open Time Machine, navigate to the date you want, go to ~/Library/Mail, find the .emlx file for the email (they’re named by message ID), and restore it. However, it’s easier to restore the entire Mail folder or use the Mail app’s Import Mailboxes feature with a .mbox file.
What is the difference between .mbox and .emlx files?
.mbox is a container format that holds multiple emails in one file, used for export/import. .emlx is the individual message format that Mail uses internally on disk. When you export a mailbox, Mail packages the .emlx files into a .mbox file.
Does backing up Mac Mail also back up attachments?
Yes, both .mbox export and Time Machine include attachments. The .mbox file contains the full message including attachments. Time Machine backs up the entire Mail folder, which includes attachments stored in the MailData and Messages folders.
How often should I back up Mac Mail?
If you use Time Machine, it runs automatically every hour, so you’re covered. For .mbox exports, do it manually at least once a month, or more often if you receive important emails frequently. Set a reminder on your calendar.
Can I back up Mac Mail to iCloud?
You can store .mbox files in iCloud Drive, but iCloud itself does not back up your local Mail data unless you use iCloud Mail. If you use iCloud Mail, your messages are already stored on Apple’s servers, but that’s not a backup—it’s a sync. To have a true backup, export .mbox files and store them in iCloud Drive or another cloud service.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Unbox ASMR Codes: What They Are & How to Use5.00 min/km
- Repurposed Old Motorola Phone for Homelab?
- How to Evaluate AI Vendors for Data Security, Privacy & Compliance
- Best Ergonomic Mouse: Top Picks & Buying Guide
- Captions in Google Slides: How to Add & Format Them
- Use Mac Type in Japanese? Full Guide