Sweepfor Mac

Speed up your Mac

Mac Slow When Mail Is Syncing? Here's the Fix

Apple Mail can quietly grind your Mac during heavy IMAP syncs and search index rebuilds. Here's why and the specific changes that make Mail fast again.

8 min read

Apple Mail looks like a simple email client. It’s not. Open Activity Monitor while Mail is doing a heavy sync and you’ll see Mail itself, plus mail-related background processes, working hard against IMAP servers and a SQLite database that’s been growing for years. On a Mac with multiple email accounts and tens of thousands of messages, Mail can be one of the most consistently CPU-heavy apps you run.

Most Mail-related slowdowns trace back to one of three causes: a corrupt envelope index, a heavy IMAP account doing reindexing, or attachments accumulating in places you can’t easily see.

What Mail Runs in the Background

Open Activity Monitor and look for:

  • Mail — the main app
  • com.apple.mail.mailfetchd — fetches mail in the background
  • MailCompositionService — for new message composition
  • MailMigrator — runs after Mail updates to migrate the database

The mailfetchd process is the one that runs even when Mail isn’t open. It checks for new messages on your accounts based on your fetch settings.

Mail’s data lives at:

  • ~/Library/Mail/V10/ (or V9, V8 — version increases per macOS major release)
  • Inside, you’ll find folders per account, mailbox folders, and most importantly, an Envelope Index SQLite database

The Envelope Index is the master metadata table for all your mail. Every search query, every sort, every smart mailbox filter hits this database. When it gets corrupted or just very large, Mail slows dramatically.

Free up RAM in one clickSweep frees inactive memory and pauses runaway processes. Get Sweep free →

The Envelope Index Problem

The Envelope Index database can hit 1-3GB on a Mac with years of mail. Every operation that touches it has to walk through that data. When the database gets fragmented or corrupted, queries that should take milliseconds take seconds.

Symptoms of a problem index:

  • Search returns no results when you know mail exists
  • Search takes 30+ seconds for simple queries
  • Smart mailboxes are empty or wrong
  • Mail beach-balls when switching mailboxes
  • Mail runs high CPU continuously

The fix is to rebuild the index. The procedure:

  1. Quit Mail completely (Cmd+Q)
  2. Open Finder, press Cmd+Shift+G
  3. Type ~/Library/Mail/V10/MailData/
  4. Press Return
  5. Find files starting with “Envelope Index” (there may be several: the main file, plus -wal and -shm)
  6. Move them all to Trash (don’t delete from Trash yet, in case you need them back)
  7. Relaunch Mail

Mail will rebuild the index from your local message data. This takes anywhere from 5 minutes to several hours depending on how much mail you have. During the rebuild, Mail will be slow.

After rebuild completes (you’ll see “Importing messages” stop), Mail should be noticeably faster.

Why IMAP Accounts Misbehave

Each IMAP account in Mail maintains its own sync state with the remote server. Some IMAP servers — Exchange, Office 365, custom corporate setups — implement IMAP poorly. Common pathologies:

  1. The server doesn’t honor IDLE — Mail polls instead of getting push notifications, hammering CPU
  2. The server flags messages as new repeatedly — every “new” message triggers Mail re-downloading
  3. The server has folders Mail can’t read — Mail keeps retrying
  4. Server-side filtering modifies messages — Mail sees them as new again
  5. Authentication tokens expire — Mail keeps retrying connection

Gmail used to be a major offender for IMAP weirdness; Google’s “All Mail” folder duplicating messages caused much pain. Modern Gmail through Mail is better but not perfect.

To diagnose IMAP issues, open Window > Connection Doctor while Mail is running. Click “Show Detail” on any account and you’ll see the full IMAP conversation. Errors and retries become obvious.

Tip: If you have an old IMAP account you no longer use, remove it. Mail still tries to sync inactive accounts, costing CPU and bandwidth. Settings > Accounts, select the old account, click the minus button.

Attachments: The Hidden Disk Hog

Mail downloads attachments to your local Mail folder for offline access. Over time, these accumulate. A Mac with 10 years of email and modest attachment use can easily have 30-50GB of attachments stored locally.

Find them at:

~/Library/Mail/V10/<UUID>/<account>.mbox/.../Attachments/

The path is account- and mailbox-specific. Sweep surfaces these as part of its smart scan and shows total attachment storage across all accounts.

To control attachment download:

  1. Mail > Settings > Accounts
  2. Select an account
  3. Account Information > Download Attachments: Recent (last 6 months) or None

For accounts where you don’t need offline attachment access, “None” saves significant disk. You can still download individual attachments on demand.

To clean up existing attachments:

  1. Mail > Mailbox menu > Erase Junk Mail and Erase Deleted Items — recovers easy wins
  2. Manually go through “Sent” folders and delete old messages with large attachments
  3. For deeper cleanup, third-party tools or Sweep can target Mail’s attachment storage specifically

Settings That Actually Help

In Mail > Settings:

  • General > Check for new messages: Manually or Every 30 minutes for low-priority accounts. Push notifications still work for accounts that support them
  • General > Download Attachments: choose per account based on your usage
  • General > Index attachments: OFF if Spotlight indexing of attachment contents isn’t important to you — this is the biggest single setting for reducing Mail’s background CPU
  • Accounts > Take Account Offline for accounts you’re not using right now
  • Junk Mail > Train, but don’t auto-erase — protects against false positives

Restart Mail after changing these. Some take effect on next sync.

Skip the manual huntSweep finds the buildup slowing your Mac and clears it in seconds. Download Sweep free →

Why Mail Pegs CPU on Launch

Open Mail and watch CPU. You’ll often see a brief spike (5-30 seconds) of high CPU as Mail:

  • Loads the Envelope Index
  • Reconnects to all your IMAP accounts
  • Checks for new messages on each
  • Updates smart mailbox views
  • Reindexes any accounts that need attention

This is normal. It becomes a problem when:

  1. The CPU spike doesn’t end after a minute or two
  2. The spike happens repeatedly throughout the day
  3. Mail seems frozen during the spike

Repeated spikes throughout the day usually indicate an IMAP issue or a corrupt mailbox. Use Connection Doctor to investigate.

Spotlight and Mail: A Special Case

Spotlight indexes Mail content by default. Search through Mail’s own search bar uses both the Envelope Index and Spotlight. When Spotlight reindexes (after macOS update, after Mail database changes), CPU spikes for hours.

You can check if Spotlight is reindexing Mail:

  1. Activity Monitor
  2. Search for mds_stores or mdworker
  3. If they’re running high CPU and Mail is suspected, Mail content is likely in the queue

Spotlight reindexing is unavoidable but happens rarely. If it’s happening repeatedly, something is forcing reindex — possibly a corrupt Spotlight database. The fix:

sudo mdutil -E /

Forces Spotlight to clear and rebuild from scratch. Heavy operation, but resolves stuck reindex states.

There’s a faster waySweep diagnoses what’s eating your performance and clears it in seconds. Try Sweep free →

When Mail Won’t Send or Receive

Common scenarios and fixes:

Mail can’t connect at all:

  • Check internet connection
  • Check that the mail server is up (web mail interface usually works)
  • Verify account credentials in Settings > Accounts
  • For OAuth accounts (Gmail, Office 365), re-authenticate

Sending hangs:

  • Check Mail > Window > Connection Doctor > SMTP
  • Verify outgoing server settings
  • Some networks block port 25 — try 587 or 465

Receiving works but is slow:

  • Mail is downloading old messages — give it time
  • IMAP server is rate-limiting — common with corporate Exchange
  • Local index needs rebuild

A Diagnostic for Mail Slowness

When Mail is dragging your Mac:

  1. Check Activity Monitor. Note Mail and mailfetchd
  2. Check Mail’s Activity Monitor — Window > Activity Monitor (in Mail). Shows current operations
  3. Check Connection Doctor for IMAP issues
  4. Try rebuilding the Envelope Index
  5. Take heavy accounts offline temporarily to confirm which one is slow
  6. Disable attachment indexing if it’s on
  7. Quit and relaunch Mail if state seems stuck
  8. Restart your Mac as a final option

Long-Term Habits

To keep Mail fast over time:

  • Archive aggressively. Don’t keep 50,000 messages in your inbox
  • Remove old accounts. If you’re not using it, delete it
  • Rebuild the Envelope Index annually — it gets slower with size
  • Watch attachment storage. Sweep makes this easy by surfacing Mail’s hidden storage
  • Don’t run Mail with eight accounts when you only check three — disable the unused ones

Mail can run reliably for years on a Mac, but only if you give it occasional maintenance. Most of the slowdowns people blame on Mail are actually maintenance debt — an enormous Envelope Index, gigabytes of unnecessary attachments, IMAP accounts no one’s used since 2019. Keep those in check and Mail stays in the background where it belongs.

← Back to all guides