Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fix Apple Mail Closes Immediately After Opening

· 5 min read · Home Tech

In this article
  1. Why Mail Crashes on Launch
  2. First Steps: Restart and Safe Mode
  3. Delete the Mail Preferences File
  4. Rebuild the Mailbox
  5. Check for Third-Party Plugins
  6. When Nothing Else Works: Create a New User Account
  7. Frequently Asked Questions

If Apple Mail closes immediately after opening on your Mac, the most likely causes are a corrupted mailbox or a damaged preference file. You can usually fix it by restarting Mail in Safe Mode, deleting the problematic preference file, or rebuilding the mailbox — try the steps below in order.

Why Mail Crashes on Launch

Apple Mail relies on a set of local files to store your messages, account settings, and preferences. When one of these files becomes corrupted — often after an interrupted update, a power failure, or a disk error — Mail can crash the moment it tries to load that data. The crash usually happens before the main window appears, which is why it looks like the app “closes immediately.”

Another common trigger is an incompatible mail plugin or a third-party utility that hooks into Mail. Older versions of Mail also had issues with large or corrupted attachments, but on modern macOS the problem is almost always a preference file or an index file that needs to be rebuilt.

First Steps: Restart and Safe Mode

Before you delete anything, try the simplest fixes. A temporary glitch can sometimes be cleared by restarting your Mac. If Mail still crashes, boot into Safe Mode by restarting and holding the Shift key until the login window appears. Safe Mode forces a directory check and disables third-party login items and Mail plugins. If Mail opens normally in Safe Mode, a plugin or a corrupted cache is the culprit.

  • Restart your Mac and open Mail again.
  • If that fails, restart in Safe Mode and test Mail.
  • If Mail works in Safe Mode, quit Safe Mode and restart normally — the directory check may have fixed the issue.

Delete the Mail Preferences File

The most common fix is to remove Mail’s preference file, which stores window positions, sorting rules, and other settings. When this file is corrupted, Mail can crash instantly. Deleting it forces Mail to recreate it with default settings — your emails are untouched.

  1. Quit Mail completely (press Cmd+Q).
  2. Open Finder and press Cmd+Shift+G.
  3. Type ~/Library/Preferences/ and press Enter.
  4. Find the file named com.apple.mail.plist.
  5. Move it to the Desktop (or Trash) — don’t delete it permanently until you’re sure everything works.
  6. Reopen Mail. It will start fresh with default preferences.

If Mail opens normally, you can leave the old file on your Desktop or delete it. If the problem persists, the issue is elsewhere.

Rebuild the Mailbox

If deleting the preference file doesn’t help, the next step is to rebuild the mailbox index. Mail maintains an index file for each mailbox to speed up searching. A corrupted index can cause crashes on launch. Rebuilding forces Mail to re-index the messages from scratch.

  1. Open Mail (if it opens at all). If it crashes immediately, you may need to hold Shift while launching Mail to prevent it from loading the index — this is a known trick that sometimes works.
  2. If Mail opens, go to the Mailbox menu and choose Rebuild.
  3. Wait for the process to complete — it can take several minutes for large mailboxes.

If Mail won’t open even with Shift held, you can still rebuild by using the command line. Open Terminal and run:

defaults delete com.apple.mail

This resets all Mail preferences, which is more thorough than deleting the plist file. It won’t delete your emails, but it will reset all settings, including accounts — you’ll need to re-enter your account passwords.

Check for Third-Party Plugins

Mail plugins live in ~/Library/Mail/Bundles/ (for your user) or /Library/Mail/Bundles/ (system-wide). If you have any, move them to the Desktop and restart Mail. If Mail opens fine, one of those plugins is the culprit. You can re-add them one by one to find the offender.

Also check for apps that inject code into Mail, such as Gmail offline tools or security add-ons. Disable them temporarily to see if the crash stops.

When Nothing Else Works: Create a New User Account

If Mail still crashes after all the above, the problem might be tied to your user account’s Mail data. To test, create a new user account in System Settings → Users & Groups. Log into that account and open Mail. If Mail works there, your original account’s Mail data is corrupted beyond simple repair.

You can then either migrate your data carefully or, if you use IMAP (which most providers do), your messages are stored on the server — simply re-add the account in the new user profile and your emails will download again. For POP accounts, your mail is stored locally, so you’ll need to import the old mailbox files from ~/Library/Mail/ — but be cautious, as copying a corrupted file can spread the problem.

Frequently Asked Questions

Will deleting Mail preferences delete my emails?

No. The preference file (com.apple.mail.plist) only contains settings like window layout and sort order. Your emails are stored in separate files in ~/Library/Mail/. Deleting the plist is safe.

Why does Mail crash only after I update macOS?

macOS updates can change the format of Mail’s data files. If the update is interrupted or the disk has errors, the conversion can corrupt the index. Rebuilding the mailbox or resetting preferences usually resolves it.

Can I recover emails if Mail won’t open at all?

Yes. Your emails are still on disk. You can access them by opening the Mail folder in Finder (~/Library/Mail/) and using a third-party tool to read the raw files, or by re-adding your account to a new user profile. For IMAP accounts, the server holds a copy — just log in via webmail to verify.

Is there a way to prevent this from happening again?

Regularly back up your Mac with Time Machine, keep macOS updated, and avoid force-quitting Mail during large downloads. Also, periodically rebuild your mailboxes if you notice sluggishness — that can catch corruption early.

What if Mail crashes on my iPhone or iPad?

This article is for macOS. On iOS, the fix is different — usually you delete the mail account and re-add it, or restart the device. The underlying causes are similar (corrupted data), but the steps differ.