Gray Jet Media

  • Web
    • Authorize.Net
    • Content Management System
  • About
    • Testimonials
    • Pricing
  • Contact
  • Clients
You are here: Home / Behind the Scenes / Recovering lost “On My Mac” local mailboxes after OS X 10.11 El Capitan Upgrade

Recovering lost “On My Mac” local mailboxes after OS X 10.11 El Capitan Upgrade

April 1, 2016 by Russ Williams 19 Comments

I am usually pretty slow to upgrade our business systems to a new operating system until there is a good track record of compatibility and to ensure all of our workflows remain uninterrupted.  We finally got around to upgrading to OS X 10.11 El Capitan and ran into an issue where all of my local “On My Mac” mailboxes in Apple Mail didn’t seem to make the transition from 10.10 to 10.11.  Taking a peak into the file structure at “~/Users/username/Library/Mail” it was apparent all of my local folders were still there, it was just a matter of how to get them imported into Mail painlessly.  I’ll present the solution we found.  I’m sure there is more than one way to accomplish this and I actually just ran across the “Import Mailbox” solution from within Mail, so there is a good change that may work as well.

Once El Capitan completed the upgrade process within Mail, it created new alphanumeric folders for each of the old accounts in lieu of the previous naming conventions such as “IMAP-emailusername@domainname.com@mailserver.domainname.com”.  What I didn’t realize is that is also apparently created a new alphanumeric folder that would store the local mailboxes where as previous versions of Apple Mail stored all local folders inside of a folder here “~/Users/username/Library/Mail/V3” called “Mailboxes”.  The process was pretty straightforward:

  1. Create a unique local mailbox from within Mail and select “On My Mac” from the dropdown called something along the lines of “TheBestTestingFolderEver”
    MailStep1
  2. Quit Mail.
  3. Do a search for the name of the previously created mailbox within “~/Users/username/Library/Mail/V3” or drill down the folders until you find which one is storing that mailbox.  Right click and select “Show in Enclosing Folder” and note the alphanumeric title at the top of the window if you are doing the search.
    Mail Step 2
  4. Once you have the alphanumeric folder identified that stores all of the local mailboxes, move all of the mailboxes that were currently under the “Mailboxes” over to the newly created alphanumeric folder.
  5. Then navigate to “~/Users/username/Library/Mail/V3/MailData” and delete all 3 files that begin with “Envelope”.  These are the index files that are used to provide references to all of the mailboxes used within Mail.  If you are hesitant to delete them, just drag them to the desktop in case you make a mistake and would like the original files.
    Mail Step 3
  6. Open Mail and allow it to re-index all of your mailboxes.
    Mail Step 4

Hopefully someone can benefit from this.  Enjoy!

Filed Under: Behind the Scenes Tagged With: 10.11, apple, Folder, Local, Lost, mail, On My Mac

Comments

  1. EmmaA says

    June 20, 2017 at 4:07 pm

    Thanks for this! I’d searched many places for the answer, because just importing them didn’t work correctly (ended up with weirdly nested folders). This is just what I needed!

    Reply
    • Russ Williams says

      June 21, 2017 at 12:54 am

      Glad it could help!

      Reply
  2. Jorge Cruañes Aguilar says

    December 24, 2017 at 12:09 pm

    Thank you very much, l’ve try other options found in google, including own apple to transfer email but was unable to recover the “In my Mac” archives.

    With your explanation I¡recovery all my emails in a new MacBook after a clean installation of the system.

    Reply
    • Russ Williams says

      December 25, 2017 at 11:59 pm

      I had a similar experience, so I’m glad this was useful for you!

      Reply
  3. Nick says

    February 11, 2018 at 10:39 pm

    I had a similar problem, my “On My Mac” folder disappeared. With your instructions I was able to rsync the relevent mox files from my Superduper back to the appropriate location to reindex these important mail folders and have them and there contents available again.

    Thanks

    Reply
    • Russ Williams says

      February 11, 2018 at 10:41 pm

      Glad this could do you some good.

      Reply
  4. Repi says

    January 22, 2019 at 3:38 pm

    This is exactly what solved my problem! Thank you very much for your effort to publish your solution and finally you helped me a lot! I just did what you recommended: looked for the local folders within ~/Users/username/Library/Mail/V3/Mailboxes and identified the new alphanumeric folder with the newly created test mailbox, than moved the old mailboxes into it, finally deleted each the Envelope* files from ~/Users/username/Library/Mail/V3/MailData and restart the mail app. After new re-index the app imported all mailboxes to “On My Mac – Local Folders”
    GREAT! Thanks again!

    Reply
    • Russ Williams says

      January 25, 2019 at 8:34 pm

      Glad to know it helped!

      Reply
  5. Li says

    May 4, 2019 at 8:41 pm

    Worked for me too, when no other approach would, for removing a single Mailbox folder that disappeared.

    Thanks!

    Reply
  6. Ray says

    September 2, 2019 at 1:56 pm

    Thanks for the hints! This worked for me today migrating from El Capitan to Mohave! 🙂
    Everything is the same as you describe except the new Mohave folders are under V6.

    Reply
    • Russ Williams says

      September 2, 2019 at 6:12 pm

      Glad this fix keeps on giving!

      Reply
  7. Denis Williamson says

    March 10, 2020 at 10:43 pm

    Hi, I have same problem of ‘missing mailboxes’ as outline above, but in Catalina (OS 10.15.3) and this time creating a ‘test’ mailbox doesn’t work (at least not for me). When I do a spotlight search from the finder (searching the whole Mac) it finds my “test’ mailbox and shows it to be in the Mail app. When I do a search limiting it to the Mail app, it finds nothing. When I search the ‘contents’ of Mail, manually, I also find nothing.
    This ‘test’ mailbox is hiding somewhere (and it still appears when I open Mail) but I can’t find it, and therefore can’t transfer other mailbox items from ~/Library/Mail/Mailboxes.

    Can anyone help, please?

    Reply
    • Denis Williamson says

      March 10, 2020 at 11:35 pm

      OK, Sorry about this, but I’ve just solved my problem :o/
      I know where my mailboxes are, so I’ve just discovered that there’s a File Menu item in Mail: “import mailboxes’. Why have I never seen this before? They are currently being imported into Mail…
      Thank you all anyway. I’ll try not to act so impulsively next time.

      Reply
  8. Dave Godshall says

    April 14, 2020 at 1:46 pm

    Just upgraded to Catalina. This process worked like a charm. Thanks for sharing your expertise!

    Reply
    • Russ Williams says

      April 14, 2020 at 6:11 pm

      Absolutely. Glad it was still able to help.

      Reply
  9. John says

    May 31, 2020 at 10:55 am

    Thank you thank you! Just did a clean install on my MBP to fix some issues. Computer is faster, and now ALL of my emails are back!

    Reply
    • Russ Williams says

      September 8, 2020 at 11:34 am

      Awesome. Glad to hear it all worked out and this post is still helping people out there.

      Reply
  10. Lance Goddard says

    October 3, 2020 at 6:13 pm

    Catalina update caused them to disappear and my heart sank – but I found them thanks to your help. Importing all now. Thank you!

    Reply
    • Russ Williams says

      October 5, 2020 at 4:09 am

      Glad it could help.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Unifi 6.0.28 and Remote User VPN Configuration
  • Lantern and Compass Nonprofit
  • Sam’s Excavating
  • iRock Ministries
  • Funkstown, MD

Our location

We are located in Smithsburg, MD but specialize in deploying solutions for customers all across the globe.

Start a Project

We’d love to hear about your upcoming project and how we can help. Tell us all about it by filling out our contact form.

Or, give us a call at +1 857 301 7878

Connect with us

Want to keep up with what's happening at Gray Jet Media? Follow us across the social networks.
  • Facebook
  • Twitter

Return to top of page

Copyright © 2025 · Gray Jet Media · The Fine Print · Log in