Skip to content

Mail downloads your whole mailbox, and one setting changes that

Every account keeps a local copy of messages and attachments. Which settings control it and how to rebuild a mailbox safely.

5 min read

Mail on a Mac is not a window onto a server. It downloads messages and, by default, their attachments, and keeps them until you tell it otherwise. On an account with a decade of history that is one of the larger folders in your Library.

Where it is

du -sh ~/Library/Mail 2>/dev/null
du -sh ~/Library/Mail/*/* 2>/dev/null | sort -h | tail -10
du -sh ~/Library/Containers/com.apple.mail 2>/dev/null

Each account has its own folder, and inside it a folder per mailbox. Reading the sizes by mailbox usually identifies the problem immediately, and it is almost always one mailbox with large attachments rather than the messages generally.

The two settings that matter

  1. Download attachments. In Mail settings, per account, choose to download all, recent, or none. Setting recent or none for an archive account changes the trajectory permanently.
  2. Keep copies for offline viewing. The same screen decides whether full messages or only headers are kept locally.

Neither deletes what is already there. They change what happens next, so pair them with a one time cleanup.

Removing what is already downloaded

Select a mailbox and use Mailbox, Erase Junk Mail or Erase Deleted Items for the obvious wins, then Mailbox, Rebuild for a mailbox whose local copy is larger than it should be. Rebuild discards the local cache and refetches from the server, which for an IMAP account is the supported way to shrink it.

# Quit Mail first, then measure again to see the real result
du -sh ~/Library/Mail

The separate downloads folder

Attachments you have opened are copied into a Mail Downloads folder that is not cleared when messages are deleted. It is the single most common surprise here and it has its own guide: Mail attachments and the downloads folder.

If you use more than one client

Each client keeps its own complete copy, so a Mac running both Mail and another client for the same account stores that account twice. Outlook's profile behaves the same way and is measured in the same way.

Common questions

Where does Apple Mail store messages on a Mac?

In ~/Library/Mail, with a folder per account and per mailbox, plus a container under ~/Library/Containers. Attachments you have opened are also copied into a separate Mail Downloads folder.

How do I stop Mail downloading attachments?

In Mail settings, per account, set attachment downloading to recent or none. It changes future behaviour rather than removing what is already stored, so pair it with a one time cleanup.

What does rebuilding a mailbox do?

It discards the local copy and refetches messages from the server, which shrinks a bloated local mailbox. Only do it for accounts whose messages actually live on a server, since a POP account may have nothing to refetch.

Why is Mail using several gigabytes?

Downloaded attachments, kept for every message in every account, plus the separate Mail Downloads folder which is not cleared when messages are deleted.

Read next