Email Client Security: What Your Mail App Really Protects
Learn how email client security works, from OAuth sign-in and local mail storage to AI agent permissions and how to audit and revoke access.
You probably have more than one mailbox open right now. A work account on Microsoft 365, a personal Gmail, maybe an older address on Fastmail or a company IMAP server that predates cloud mail. The app holding them together is doing four different jobs at once, and many users only think about one of them.
The job everyone thinks about is filtering. Does this message carry a bad attachment or a link to a fake login page? The other three jobs are quieter. The app holds a grant that lets it open your mailbox, keeps a copy of your mail on your disk, hands access to anything you connect to it, and moves messages over a transport you never see. When one of those fails, the result rarely looks like a virus. It looks like a normal email from someone you trust.
What Email Client Security Covers
A finance manager opens an invoice-change notice from a supplier they've paid a dozen times. The logo is right, the reply-to address matches the domain they've used for two years, and the wording sounds like the same accounts clerk who always writes. Nothing in the message is executable. There's no attachment to scan. The request is that the bank details on the next payment change.
That message is why email client security can't be reduced to whether an app blocks bad attachments. The FBI Internet Crime Complaint Center's 2025 report recorded 24,768 business email compromise complaints and about $3.05 billion in reported losses, making BEC one of the costliest categories of cyber-enabled crime. Phishing and spoofing drew more complaints, 191,561, but far less reported loss, roughly $215.8 million. The expensive attacks never need malware. They exploit trusted identities, compromised accounts, lookalike addresses and edited payment instructions.
Email is also a major entry point for breaches. The North Carolina Department of Justice counted 570 email breaches reported in the state in 2025, up from 492 in 2024, which came to 24.27% of all reported breaches.

Four layers worth checking separately
A useful way to think about a mail client is as a chain of custody. Access begins when you sign in, continues in every copy the app keeps, extends to whatever you connect, and ends only when you revoke the grant. Each layer below is one link in that chain, and each can be checked on its own.
Authorization is the grant that lets the app open the mailbox at all. It works like a key cut for a specific door: the important questions are which doors it opens and whether anyone handed the key back. A grant broader than the task needs, or one that survives after you stop using the app, weakens everything built on top of it.
Local storage is the copy. Every message the app downloads exists somewhere a thief, a shared login or a forgotten sign-out can reach. Cached mail is what makes search instant and offline reading possible, so the trade-off is real: convenience on one side, a second copy of your correspondence on the other. What matters is where the cache sits, whether it's protected, and whether signing out erases it.
Agent access is the key you hand to an assistant or automation. It reaches the same mailbox with its own credentials, often when your computer is off, and it keeps working until someone removes it. The check here is scope: read access, send access and delete access are different things, and a well-designed client lets you grant and revoke each one separately.
Sender and transport checks decide whether a message claiming to be from your bank really came from your bank's servers, and whether the hop between mail servers was encrypted. This is the layer that would have questioned the invoice-change notice, because it examines where a message originated rather than what it says.
Judge any client against all four rather than the one it advertises. A tool with excellent phishing filters and a stale access grant is not a secure tool.
How Account Authorization Protects Your Mailboxes
Say you approve a mail app on a Tuesday and forget about it. Two years later you delete the app from your Mac, and assume that ends the arrangement. Often it does not. The grant you signed on the provider's consent screen is still active on the provider's servers, because nothing in deleting an app withdraws a token. Authorization is the one part of email client security where access can outlive the software that asked for it, which is why it deserves a look before anything else.
There are two ways a mail app gets into a mailbox, and the difference decides what a stolen credential is worth.
Gmail, Google Workspace, Outlook and Microsoft 365 sign in over OAuth. You approve the app on the provider's own consent screen, the provider issues a token, and the client never collects your password. Every other mailbox, including iCloud, Fastmail, Yahoo and a company's own server, connects over IMAP with a host, a port and a password. IMAP on port 993 runs over SSL/TLS. In the second case the client is holding a secret that also opens the webmail login. In the first it holds a token that opens only what the consent screen described.
When a Gmail or Google Workspace mailbox is connected, the client asks Google for the https://mail.google.com/ access scope, which is the broad one: it covers reading, composing, sending and permanent deletion. Read the consent screen before you approve it, and notice how much of the mailbox the app is asking for. A scope that includes deletion is worth a pause even when you trust the developer, because it widens what a stolen token can do.
The part MFA fixes and the part it doesn't
The CISA phishing guidance recommends FIDO- or PKI-based MFA, which binds the sign-in cryptographically to the site, so credentials and approval artifacts can't be replayed on a counterfeit page. CISA also singles out administrator and privileged accounts, because mailbox access exposes correspondence, password reset links, financial data and every other system tied to the address. The same guidance asks email products to block macros by default and to keep phishing filtering on, since an attachment can still deliver an executable payload after the login problem is solved.
One confusion is worth clearing up early. MFA protects the moment of sign-in. It does nothing to a token or password that was already handed over. Think of it as a strong lock on the front door that says nothing about the spare key you gave a house sitter last year.
What OAuth still leaves open
OAuth keeps your password out of the client. It does not make the connection harmless. A stolen refresh token, or a scope wider than the job requires, still opens the mailbox. Use this checklist when reviewing any client:
- Tokens encrypted at rest, not sitting in a plain text config file.
- Operating system keychain for anything that must be stored locally.
- Short-lived access tokens wherever the provider supports them, with refresh handled server side.
- A consent screen that names the account, so you approve one mailbox and not all of them by reflex.
- Per-account revocation, so removing one identity doesn't force you to tear down the rest.
The last item matters more than it looks. Revocation is the step that ends access, and everything before it is just terms of engagement. A password typed into a lookalike IMAP login page is gone the moment it's submitted, and you'll only learn about it when the attacker uses it. An OAuth grant lives on the provider's own account page, where you can see it and remove it in seconds. Neither arrangement is risk free. The question is which failure leaves you a way back.
One more wrinkle worth knowing: some clients use the full email address as the IMAP username and nothing else, so a login page that asks for a separate username field is already telling you something about how it treats your credentials.
Practical rule: if a client asks for your mailbox password for a Google or Microsoft account, close it. Those providers issue tokens for a reason.
Where Your Mail Is Stored and How Long It Stays
A laptop left in a taxi is the cleanest test of how well you understand your mail client. If the machine is still signed in when it disappears, the question is no longer about passwords. It's about whether a readable copy of your inbox is sitting on that disk, and whether anything you connected along the way can still reach the account from elsewhere.
A single message can exist in three places at once: on the provider's servers, in a local cache on your Mac, and in whatever copy an assistant or connector fetches on request. Each has a different lifetime.
Where the copies live
| Data | Where it is held | How long it persists |
|---|---|---|
| Mail read in the Mac app | Downloaded from the provider to the Mac cache | Erased when the user signs out |
| Mail sent from the Mac app | Sent directly from the Mac to the mail provider | Kept by the provider, not by Sickle |
| Agent connector credentials | Sickle server memory | Up to five minutes for repeated calls |
| Attachments sent through the connector | Encrypted per file in Cloudflare R2 | Deleted once used |
| Mail an AI assistant requests | Fetched on request and passed to the assistant | Not kept by Sickle |
Read down that table and the pattern is that local copies are the ones you control. Mail you read in the Sickle Mac app is downloaded straight from your provider to your Mac and stored there, and it doesn't pass through Sickle's servers. The cache lives in the app's own sandboxed container and is erased when you sign out.
Outbound mail takes a different path. Mail sent from the Mac app goes directly from your Mac to your mail provider, so the provider keeps the copy and the client doesn't hold a second one. Credentials used by the agent connector sit in server memory for up to five minutes to keep repeated calls fast, and attachments pushed through the connector are encrypted on arrival with a key generated for that one file, held in Cloudflare R2, and deleted once used. Mail an assistant requests is fetched only as asked and passed along without Sickle keeping copies.
Sign-out is the delete key. Closing the window leaves the cache in place. Signing out is the step that clears local mail.
If you're adding a self-hosted or older mailbox, the IMAP client setup walkthrough covers the host, port and password fields you'll be asked for, and why the full email address is used as the username on servers that require it.
Controlling What Connected AI Agents Can Do
A freelancer connects Claude to three mailboxes with one instruction: find client emails that never got a reply. The task needs read access. Nothing else. Granting change or send access to that job adds risk without adding a single useful result, and the grant is the part people forget about three months later.
That's the whole argument for scoped access. Agents connect to Sickle with a key rather than your password, and read, change and send permissions are granted separately for each client and can be revoked at any time.

Why the key outlives the app
Mailbox sign-ins are kept by your Sickle account, which is what lets an agent reach the mail without your Mac being switched on. Convenient, and worth understanding precisely. It means an agent can keep working from another machine, or from a container in a data centre, long after you closed the laptop. Removing the key is the only thing that stops it. Quitting the app does not.
What the tools can do is deliberately narrow. Agents search, read and organise connected mailboxes, and no agent tool in Sickle deletes mail permanently, so an archive action leaves the message recoverable. Because the app and the connector work on the same underlying mailboxes, an agent's archive shows up in the app as a moved message rather than a separate copy that drifts out of sync.
One connection can also span providers, including a company's own IMAP server. A single key can therefore reach your personal Gmail and your employer's mail at the same time, which is exactly why the permission review belongs to the key and not to the account.
Three rules for agent access
Grant the minimum the task needs. A search job gets read. A drafting job gets read and change. Send access is for agents that are meant to send.
Use one key per client. Two assistants sharing a key means revoking one breaks or exposes the other, and you lose the ability to tell which tool did what.
Review keys after any change in your tools. A trial you abandoned, a plugin you removed, a new model you started using: each one is a moment to check what still holds a key.
When a key can't be revoked at the provider, the fallback is to disable the connector credentials on the client side, rotate the mailbox sign-in, and re-test until the request fails. A stale key with read access still sees every new message that arrives, so "I'll deal with it later" has a cost measured in mail.
Audit and Revoke Access to Your Mail
Old grants are the exposure nobody budgets for. Verizon's 2025 breach data, summarised in the KnowBe4 phishing threat trends report, found that 54% of ransomware victims' domains appeared in credential dumps and that 40% had corporate email addresses among compromised credentials. An access grant that outlives its purpose sits in the same category: valid, invisible, and useful to someone else.

The revoke-and-verify procedure
- List every connected mailbox, including the self-hosted IMAP server you set up years ago, and write down how each one signs in. OAuth and password logins fail in different ways, so the list needs the method, not just the address.
- Open each provider's connected-apps page and remove anything you no longer recognise or use. Google and Microsoft both show the apps holding a grant, with the date access was last used.
- In the client, remove unneeded mailboxes and confirm the local cache clears when you sign out. Removing the account from the sidebar is not the same as clearing the data.
- Review each agent key and check that read, change and send permissions match the task the agent is doing today, not the task it was built for in the spring.
- Revoke keys for clients you've stopped using. A dormant client with send permission is the worst combination on the list.
- Test the revocation by sending a connector request from the revoked client and confirming it fails. Anything that still answers is still live.
- Repeat the inventory every quarter. Put it in the calendar next to the password review, because it's the same kind of maintenance.
Test, don't assume. A key that still answers a request after you revoked it was never revoked. The error message is the proof.
Reset the password or revoke the grant
People reach for a password change when they suspect exposure, and it's a reasonable instinct that doesn't always do the job. A password reset doesn't reliably end an existing OAuth grant, because the grant was issued to an app and lives independently of the credential. Do both when you're worried: change the password to close the login path, then walk the connected-apps page to close the token path.
The permission model is worth knowing in detail before you start, and this explanation of email permissions sets out how read, change and send access differ in practice. One more useful detail: a grant you can see on the provider's page but haven't used since your last sign-in is safe to remove. It isn't load-bearing, and leaving it there only lengthens the list you have to audit next time.
Sender Checks and Transport Encryption Explained
Think of the difference between a postcard and a sealed envelope whose sender has been verified at the door. A message can be handed over in the clear, or it can be refused unless it arrives over a checked channel. Most of the acronyms in email security describe which of those two you're getting.
SPF, DKIM and DMARC are sender authentication. SPF lists which servers may send for a domain. DKIM attaches a cryptographic signature so a receiving system can tell the message wasn't altered. DMARC ties the two together and tells the receiver what to do when a message fails, whether that's monitoring, quarantining or rejecting it.
Adoption is not the same as enforcement
DMARC publishing has grown fast. The DMARC adoption statistics compiled by MyEmailTools track valid published policies rising from roughly 2.22 million domains in June 2020 to 21.70 million in December 2024. Enforcement lags badly behind publication. A November 2025 assessment in the same set estimated that 71.7% of domains worldwide had no effective DMARC protection, and only 10.3% had a fully enforced reject policy.
That gap changes how you should read an authentication result. A monitoring policy records spoofing attempts without stopping the messages from landing. Treat a passing check as one risk signal among several, not as proof that the sender is who the display name claims.
What MTA-STS adds to the picture
Transport encryption used to be opportunistic, which meant a failed TLS negotiation could fall back to plain text. Google's MTA-STS guidance describes the fix: a receiving domain can require external servers to connect only when the session uses a valid public certificate and TLS 1.2 or higher, and TLS reporting then returns traffic statistics and failed-connection data. The failure becomes a delivery decision instead of a silent downgrade.
For anyone judging a mail client, the test is what it shows you. An authentication failure or a transport failure belongs on screen, not hidden behind a message that looks normally delivered.
What transport protection does not cover
MTA-STS protects the hop between mail servers. It says nothing about the message after delivery, or about the copy sitting in a local cache. Work that needs protection beyond the transport calls for end-to-end encryption such as S/MIME or OpenPGP, with private keys stored securely and verified against the recipient rather than trusted on first use.
What to Check Now and Where a Client Helps
You already know which grants, caches, and keys exist. The useful test is whether you can end one of each and prove it stopped.
Set aside about ten minutes and work in this order.
- Sign in and open your provider's connected-apps page. Count the grants. Each grant works like a spare key: it stays valid until you take it back.
- Remove one app you don't use, then try that app again. Failure is the result you want.
- Sign out of your Mac mail app and reopen it. Confirm the local cache is gone. Closing the window is not the same as signing out.
- Revoke one test agent key and repeat a request that key used to allow. The request should fail.
That pass covers sign-in grants, the cached copy, and the agent key. It tells you more about your setup than a feature comparison.
Sickle is a native Mac mail client that brings Gmail, Outlook, iCloud, Fastmail and any IMAP mailbox into one app, with a colour per account. The colour is a visual cue for the selected account, which can help reduce replies sent from the wrong address. It does not block a send. The connector gives Claude, Codex and Cursor scoped access to those same mailboxes. The desktop app is macOS only, and the connector works with agents on any operating system. Both still depend on the permissions you just checked. The reasoning for consolidating accounts first is in this guide to email aggregation.
The checks protect the accounts. A client makes the grants, the cache, and the keys easier to see and easier to undo.
People who keep several mailboxes open can sign in to Gmail, Outlook, iCloud, Fastmail or their own IMAP server, review read, change and send permissions for each connected agent, and sign out to clear the local cache in one step. Sickle puts the accounts, the cache and the agent keys in one place.