Where Does Apple Mail Store Emails on a Mac?

The short answer
Apple Mail stores messages in the hidden folder ~/Library/Mail on your Mac, inside a numbered subfolder that is V10 on recent macOS. Each account has its own folder of .mbox bundles holding one .emlx file per message. In Finder choose Go > Go to Folder and type ~/Library/Mail. Quit Mail before copying anything.
Apple Mail keeps messages in ~/Library/Mail, in a V10 folder on recent macOS. How to open it, back it up and what each file does. Quit Mail before copying.
On this page
- 01Where does Apple Mail store emails on a Mac?
- 02How to open the Apple Mail folder
- 03Why does Terminal say Operation not permitted?
- 04Which Mail folder version matches your macOS?
- 05What each item inside the Mail folder does
- 06Where is the On My Mac mailbox stored?
- 07What to do when Apple Mail cannot find your messages
- 08How to back up Apple Mail messages
- 09If you are leaving local mail storage behind
Where does Apple Mail store emails on a Mac?#
Apple Mail stores your messages in ~/Library/Mail, a hidden folder inside your home folder. The full path looks like /Users/<you>/Library/Mail/V10. The V10 part is a version folder, and it has stayed V10 from macOS Ventura through Tahoe 26 and macOS 27, so on a current Mac that is the one to open. If your Mac has been upgraded from an older release, you may also see leftover folders with other numbers, and the highest one is the active one.
Inside V10, every account you have added to Mail gets its own folder with a long ID-style name. Each account folder holds mailbox bundles ending in .mbox, and the messages sit inside them as .emlx files, one file per message. A separate folder called MailData holds the Envelope Index, the database Mail uses for search and message counts.
One naming note: "Where is Apple Mail?" can mean the app or the data. The app itself is in your Applications folder. Your messages are in ~/Library/Mail.
How to open the Apple Mail folder#
Go to Folder is the fastest route because it works even though the Library folder is hidden.
- 1
Quit Apple Mail
Press Command + Q with Mail in focus, or right-click the Mail icon in the Dock and choose Quit. Closing the window is not enough: a dot under the Dock icon means Mail is still running.
- 2
Open Go to Folder in Finder
In Finder, press Command + Shift + G, or choose Go > Go to Folder from the menu bar.
- 3
Type the path and press Return
Type ~/Library/Mail and press Return. The tilde means your home folder, so this opens /Users/<you>/Library/Mail.
- 4
Open the highest-numbered V folder
On a current Mac that is V10. If you see more than one V folder, open the highest number with the most recent modification date.
- 5
Look at what is inside
You will see one folder per account, a MailData folder, and no friendly names. Copy, back up or inspect from here, but do not rename or move files around while Mail is open.
Prefer menus? Reveal Library with Option
Why does Terminal say Operation not permitted?#
If you try ls ~/Library/Mail in Terminal and get Operation not permitted, the cause is macOS privacy protection, not a broken folder. Apple lists Mail among the app data covered by Full Disk Access (System Settings > Privacy & Security > Full Disk Access), and Terminal, scripts and some backup tools are blocked from it until you grant that access.
To fix it, add the app to Full Disk Access, then quit and reopen it so the change takes effect. Finder usually opens the folder without extra permissions, which is why the Go to Folder steps above work. Grant Full Disk Access only to tools you trust, since it opens up all your app data.
Quit Apple Mail before touching any files
Which Mail folder version matches your macOS?#
Older Macs used a new number on most major releases, but recent ones have not. Apple does not publish this list, so the table below comes from Apple Community answers and current third-party guides. The reliable rule is simpler: open ~/Library/Mail and take the highest V number you can see.
| macOS version | Released | Mail data folder |
|---|---|---|
| Monterey (12) | 2021 | V9 |
| Ventura (13) | 2022 | V10 |
| Sonoma (14) | 2023 | V10 |
| Sequoia (15) | 2024 | V10 |
| Tahoe (26) | 2025 | V10 |
| macOS 27 (Golden Gate) | 2026 | V10 |
What each item inside the Mail folder does#
Inside V10 the contents fall into a few groups. Knowing which is which tells you what a complete backup must include and what you should leave alone.
| Item | What it contains | Safe to delete? |
|---|---|---|
| Account folders (long ID-style names) | One per account, plus a folder for On My Mac mail. Holds the .mbox bundles and the .emlx message files, with downloaded attachments cached alongside. | No. IMAP and Exchange accounts re-download from the server, but POP and On My Mac mail may exist nowhere else. |
| MailData/ | The Envelope Index and other support files, including settings such as signatures. | Not as a whole. Deleting it resets Mail's local settings, so back it up first. |
| Envelope Index (no file extension) | SQLite database behind search and message counts. | Only as a repair step (see below), with Mail quit and the files saved elsewhere first. |
| Envelope Index-shm, Envelope Index-wal | Temporary companion files for the database, present while Mail runs or after an unclean shutdown. | Only with Mail fully quit, as part of the same repair. |
Where is the On My Mac mailbox stored?#
On My Mac mailboxes are local-only, so they are the folders you most need to protect. Apple Community answers place them inside the version folder (~/Library/Mail/V10) in one of the ID-named subfolders, and the practical way to find the right one is to open each and match its contents to your sidebar in Mail.
Whatever the folder name, treat On My Mac mail as having no server copy. Export those mailboxes as .mbox before you reset, migrate or delete anything. Our guide to export an Apple Mail mailbox as .mbox walks through it.
What to do when Apple Mail cannot find your messages#
If Mail shows wrong counts, empty folders or search that returns nothing, the .emlx files are usually still on disk and the problem is what Mail has stored about them. Start with Apple's own fix: select the mailbox in the sidebar and choose Mailbox > Rebuild. There is no Option-key trick for this. For IMAP and Exchange accounts, Mail deletes the local copies of that mailbox's messages and attachments and downloads them again, so the mailbox looks empty until the download finishes. Apple's page does not cover On My Mac mailboxes, so export those first. The full walkthrough is in rebuild a mailbox in Apple Mail.
If messages display fine but search is wrong, you want a reindex, not a rebuild. Our guide to fixing Apple Mail search with a reindex covers the Spotlight side.
A widely used repair that Apple does not document targets the Envelope Index directly. Quit Mail, open ~/Library/Mail/V10/MailData, move every file whose name starts with Envelope Index to your Desktop (do not delete them), then reopen Mail. Mail builds a fresh index on launch, which can take a while on a large mailbox. If anything looks worse, quit Mail and put the files back.
For disk space, the Mail folder can grow to tens of gigabytes on a Mac with years of mail. Do not delete raw files to reclaim it. Remove an account through Mail settings, or follow the steps to free up Apple Mail storage.

How to back up Apple Mail messages#
A complete backup is a copy of the whole Mail folder, including MailData. Time Machine includes it if it is switched on, but a direct copy gives you a portable archive you control.
- 1
Quit Apple Mail
Use Command + Q. The Envelope Index must not be open during the copy, or the backup can capture it mid-write.
- 2
Open ~/Library/Mail
Press Command + Shift + G in Finder, type ~/Library and press Return, so the Mail folder is in view. If you use a backup tool and not Finder, it may need Full Disk Access.
- 3
Copy the Mail folder
Right-click the Mail folder, choose Copy, and paste it onto an external drive or a network location. This can take several minutes on a large mailbox.
- 4
Check the copy
Open the copy and confirm the V10 folder is there and its MailData folder contains the Envelope Index files.
- 5
To restore on another Mac, copy back
Quit Mail on the new Mac, go to ~/Library, keep the old Mail folder somewhere safe, and put your copy in its place. Open Mail. Passwords live in Keychain, not in this folder, so you may be asked to sign in again. If the new Mac runs a different macOS, Mail can upgrade the data on first launch.
Export single mailboxes for targeted archives
If you are leaving local mail storage behind#
If you landed here because Mail is slow, full or fragile, one option is to stop depending on a local mail database. AI Emaily connects Gmail, Outlook, iCloud and IMAP accounts in one inbox and syncs on the server, so it does not use Apple Mail's Envelope Index, and your Apple Mail folder stays untouched while you try it. Copilot drafts replies in the tone you set in your Personal Context, and you approve every send. The 7-day free trial is on the pricing page.
Frequently asked
See it in AI Emaily
Keep reading
Sources

Written by
Nafiul HasanNafiul Hasan is an entrepreneur and AI automation system builder with 10+ years of experience turning messy, manual workflows into reliable automated systems. He designs and ships AI enterprise solutions end-to-end — the agent logic, the data plumbing, and the product people actually use — and founded AI Emaily to give busy professionals their attention back. He writes here from the builder's seat: what works, what breaks, and how to put AI to work without giving up control.