The principles
- No server of ours. There's no dumbmail backend, account, relay, push service, or proxy. The app talks to your mail provider and to nothing we run.
- No telemetry. No analytics SDK, no crash reporter, no "phone home", no update check (updates come through the Mac App Store).
- Off by default if it leaks. Remote content is blocked until you ask. The few things that are on by default and touch the network (Web Key Directory lookups, Google/Microsoft contacts for address suggestions) are listed below with how to turn them off.
- Say what's true, not what's comforting. A signature by a key nobody verified is amber, not green. An encryption key nobody verified gets a warning. The encrypted-cache setting says what it doesn't cover.
- Not audited yet. dumbmail hasn't had an independent security review. It's had a careful self-review (see the changelog), with tests for every fix. An outside review is planned once there's revenue to pay for it; its scope is already written down, and the results will be published here, good or bad.
Every network connection
| Destination | When | What's sent | Can you turn it off? |
|---|---|---|---|
| Your IMAP server (port 993 TLS, or as set) | While the app is open; one connection per account kept open with IDLE | Your login (password or OAuth token, inside TLS), IMAP commands | It's your mail; remove the account |
| Your SMTP server (465 TLS or 587 STARTTLS) | When you send | Your login, the message | — |
| Your ManageSieve server (port 4190, STARTTLS required) | When rules change, if the server offers it | Your login, the rules script | Rules that can't run on the server run in the app |
| accounts.google.com / oauth2.googleapis.com | Signing in with Google; refreshing the hourly token | OAuth (PKCE) requests | Use an app password instead of Sign in with Google |
| gmail.googleapis.com | Settings ▸ Vacation (Gmail's responder); Gmail tabs for bundles (if bundles follow Gmail's tabs) | Your token; for tabs, a search like in:inbox category:promotions newer_than:Nd (the answers are message and conversation IDs) | Settings ▸ Bundles ▸ "Follow Gmail's categories"; don't use Vacation |
| people.googleapis.com | Address suggestions, refreshed when Compose opens if more than 6 hours old | Your token (read-only contacts) | Settings ▸ General ▸ "Also suggest people from Google and Microsoft accounts" |
| login.microsoftonline.com | Signing in with Microsoft; token refresh | OAuth (PKCE) requests | Use another sign-in method if your server allows |
| graph.microsoft.com | Vacation (automatic replies); address suggestions | Your token | As for Google |
openpgpkey.<domain> / <domain> /.well-known/openpgpkey/… (Web Key Directory) | Only when you encrypt with PGP to someone with no key here; at most once a day per address | The hashed local part of their address (z-base-32 SHA-1, as the WKD draft specifies) and the l= parameter with the local part as written. No cookies, no cache, 8-second timeout | Settings ▸ Privacy ▸ "Look up keys on people's domains" |
| A list's unsubscribe address | When you press Unsubscribe and confirm | An RFC 8058 one-click POST, or an email from you, or the page opens in your browser | Don't press it |
| Remote images in a message | Only when you load them (or always for senders you've chosen) | An ordinary image request from your IP | Off by default |
| Apple (StoreKit) | At launch and on purchase | Handled by macOS | — |
Nothing else. Links open in your default browser. Fonts are bundled. There are no avatars, link previews, favicons or "smart" lookups.
Transport security
- TLS 1.2 or later, and 1.3 when the server has it. By default TLS 1.0 and 1.1 are refused for IMAP, SMTP and ManageSieve; a server that offers nothing newer gets no connection. The newest version both sides support is used, so Gmail, Outlook and most current servers get TLS 1.3.
- An escape hatch for old servers, per account. At the bottom of an account's settings, under Old Encryption, "Allow TLS 1.0 and 1.1 for this account (not secure)" sits under a red warning that they're broken (retired by RFC 8996), and turning it on asks again before it takes effect. It covers that account's IMAP, SMTP and ManageSieve, and even then the newest version the server offers is used. Certificates are checked fully either way.
tests/tlschecks all of this against servers offering only 1.1, only 1.2, and only 1.3, with the setting off and on.- IMAP: SwiftNIO with BoringSSL (
swift-nio-ssl2.37.5, through Apple'sswift-nio-imap), full certificate and host-name verification. Upstreamswift-nio-imapuses NIOSSL's default, which always allows TLS 1.0, and has no setting to change it, so dumbmail carries a copy with a small marked change that makes the minimum TLS 1.2 unless an account allows older (Vendor/swift-nio-imap, explained inVendor/README.md). - SMTP and ManageSieve: macOS's own TLS (a
URLSessionstream task, minimum TLS 1.2 unless the account allows older), with the system's certificate checks. Port 465 is TLS from the first byte; 587 uses STARTTLS, and if the server doesn't offer it, nothing is sent: a downgrade attacker gets an error, not your password. - No plaintext logins. With TLS off, dumbmail refuses to log in over IMAP or SMTP unless the server is on this Mac (
localhost,127.*,::1), which is how Proton Mail Bridge and test servers work. - OAuth 2: authorization code flow with PKCE (S256), in your own browser (never an embedded web view), redirected to a one-time listener on
127.0.0.1(Google) orlocalhost(Microsoft) that only accepts connections from this Mac and closes after one sign-in or 5 minutes. Refresh tokens are kept in the Keychain; access tokens (one hour) only in memory. Google requires desktop apps to send a client "secret"; it's in the app, as for every desktop app, and isn't a secret.
Reading HTML mail
HTML is shown in a WKWebView set up to be as dumb as possible:
- JavaScript off (
allowsContentJavaScript = false). dumbmail's own two small scripts (scrolling, noticing you reached the end) run in a separate content world the message can't see or touch. - A throwaway data store (
WKWebsiteDataStore.nonPersistent()): no cookies, cache or storage, nothing shared between messages, nothing on disk. - A Content Security Policy, first thing in the page, before any of the message's markup. Blocked:
default-src 'none'; img-src data:; style-src 'unsafe-inline'; font-src data:; form-action 'none'; frame-src 'none'; script-src 'none'. Images loaded:img-srcaddshttps: http:; stylesheets and fonts stay blocked if you chose to skip trackers. - Things a CSP doesn't cover are removed:
<meta http-equiv="refresh">always, and every<link>(preconnect, dns-prefetch, prefetch, preload) unless everything is allowed to load. - No navigation. The page is
about:blank; anything else (a form, a frame, a redirect) is cancelled. A clicked link goes to the app, which can show where it really goes and warn about lookalike tricks before opening it in your browser. - Skipping trackers ("load images, leave out trackers") works twice: the HTML is rewritten to drop 1×1 pixels, hidden images, known tracking services, and any picture whose address contains your own address (as typed, URL-encoded, or base64, standard or URL-safe); then WebKit's content blocker (
WKContentRuleList) refuses the same patterns, in case the rewrite read some odd markup differently from WebKit. If the rules can't be compiled, nothing remote loads. - Decrypted mail is stricter. Decrypted S/MIME mail never loads remote content, even from trusted senders: S/MIME's AES-CBC can be modified without detection, which is how EFAIL exfiltrated plaintext through image URLs. Decrypted PGP mail loads it only when you ask for that message.
- Tested in a real WebKit:
tests/htmlpageloads a message that tries nearly 30 different ways to reach a server, all pointed at a listener in the test, and fails on any connection at all, even one that sends nothing.
OpenPGP
Library: GopenPGP 2.11.1 over ProtonMail's go-crypto 1.5.2 (the OpenPGP library behind Proton Mail), compiled into the app with gomobile. No GnuPG, no plug-ins, no external processes.
Keys you make in dumbmail: an OpenPGP v4 key with an Ed25519 primary key for signing, an X25519 subkey for encryption that every OpenPGP app can use, and an ML-KEM-768 + X25519 subkey (post-quantum, draft-ietf-openpgp-pqc). Apps that know ML-KEM encrypt to the post-quantum subkey; others ignore it and use X25519. An existing key can be upgraded with a post-quantum subkey without changing its fingerprint. Preferences: AES-256, SHA-256, ZLIB, and AEAD: the key says it reads RFC 9580's authenticated encryption (SEIPD v2, AES-256 with OCB first), so apps that can send that to it do.
Sending
- PGP/MIME (RFC 3156). Signed only:
multipart/signedwith a detached signature. Encrypted:multipart/encrypted, signed inside the encryption (RFC 3156 §6.2), as other apps send it. - Authenticated encryption when everyone can read it. If every recipient's key (yours included, since you get a copy) says it reads AEAD, the message is SEIPD v2 (RFC 9580) with the cipher and mode they all prefer: AES-256 with OCB between keys made in dumbmail. If any key doesn't say so, the whole message is SEIPD v1 with OpenPGP's MDC, which every OpenPGP app reads; GnuPG's keys never advertise v2, so mail to GnuPG users is always v1, and
PGP/dumbmailpgp's tests check that GnuPG opens it. Cipher otherwise: AES-256 when every key lists it, else the strongest one they all list. No compression. - Encrypted mail is also encrypted to you, so your Sent copy is readable.
- Autocrypt (Level 1): every message from an address with a key carries an
Autocrypt:header with your public key. - Subject: see encrypted replies, drafts and subjects.
Receiving
- PGP/MIME and inline PGP, nested up to 4 layers (encrypted inside signed inside encrypted, and so on).
- Integrity is enforced. Messages without an MDC are refused, not shown "with a warning".
- Inline PGP is opened only when it's the whole message. Encrypted text with anything else around it isn't decrypted. That stops someone wrapping a copy of your encrypted mail in their own words, hoping you'll reply and quote the decrypted text.
- Clear-signed text with other text around it is shown exactly as it came, with an amber note that only part of it is signed.
- Which signatures count: a signature is checked first against keys you've vouched for (imported by hand, marked verified, or your own). Only if none of those made it is it checked against keys dumbmail picked up automatically (Autocrypt, an attached key, WKD). A valid signature from one of those is shown amber, "key not verified", never green: anyone can send a key with your boss's address on it, inside the very message it signs ("Johnny, You Are Fired", 2019).
- Learning keys: from Autocrypt headers and attached keys, only if the key's user ID matches the From address; a key for an address that already has one isn't replaced without you doing it in Settings. A key that has gained a post-quantum subkey (same fingerprint) is updated.
Where keys live: your private keys in the macOS Keychain (see what's stored on your Mac), not passphrase-locked; the Keychain and your Mac's login are their protection. Other people's public keys are in the app's preferences (they're public).
S/MIME
Library: macOS's Security framework (CMS), as Apple Mail uses, plus dumbmail's own code for one part (below). Certificates and private keys are in your Keychain.
Sending
- Signed:
multipart/signed, SHA-256, with your certificate chain and the S/MIME capabilities, encryption-key preference and signing-time attributes. - Encrypted: CMS EnvelopedData. When every recipient has an RSA certificate (nearly all S/MIME certificates), dumbmail builds the envelope itself so it can use AES-256-CBC, with the content key wrapped by RSA PKCS#1 v1.5, which is what Apple Mail, Outlook and Thunderbird read. macOS's own encoder can't choose its cipher and picks Triple-DES. For a recipient with a non-RSA (elliptic-curve) certificate, dumbmail has to use macOS's encoder, so that message is Triple-DES. (A known gap: see known limits.)
- Signed and encrypted: signed first, then encrypted. Encrypted mail is also encrypted to you.
Receiving
- Detached and opaque signatures and encryption, nested up to 4 layers.
- Signers are checked with Apple's S/MIME policy (
kSecPolicyAppleSMIME): the certificate has to be one for email, not just any certificate with a valid chain. If the policy can't be set up, the signature is reported invalid; there's no weaker fallback. - The badge says who signed and whether that matches the From address: green (trusted, matches), amber (not trusted on this Mac, or a different signer), red (changed or broken).
- Certificates from people's signed mail are remembered so you can encrypt to them.
Encrypted replies, drafts and subjects
The worst attacks on encrypted mail don't break the cryptography: they get you to leak the plaintext. dumbmail's rules:
- Replies and forwards of encrypted mail start with Encrypt on, and Compose says why.
- Drafts of encrypted messages are saved encrypted to your own key or certificate (unsigned) before they reach the Drafts folder on the server. If that can't be done, the draft isn't saved to the server rather than saved readable.
- Quoting decrypted mail in a reply happens only when the original is signed by its From address (valid, unverified key, or untrusted certificate that matches the sender) and the reply goes back to that address alone. Otherwise the reply starts without the quote and Compose says why. This closes "Re: What's Up Johnny?" (2023), where an attacker resends your encrypted mail as their own and waits for you to reply quoting it.
- Protected subject (on by default, per account: Settings ▸ Accounts, under Outgoing mail): encrypted mail goes out with
Subject: ...and the real subject, From, To, Cc, Date, Message-ID and threading headers copied inside the encrypted part, markedprotected-headers="v1"(the convention Thunderbird, K-9 and Delta Chat use). Reading, dumbmail takes the subject from inside when it's marked that way or with RFC 9788'shp=parameter, and ignores an inner Subject that isn't marked. From, To and Date stay visible outside, because servers need them to deliver the mail. Apps that don't know protected headers (Apple Mail, Outlook) show "...". The message list shows "..." until you open a message, because putting the real subject in the list would mean storing it unencrypted.
What's stored on your Mac
| What | Where | Protection |
|---|---|---|
| Mail cache, search index, learned data, provider contacts | ~/Library/, one SQLite database per account | Sandbox; FileVault if on; optionally SQLCipher 4.19 (below). Excluded from Time Machine. secure_delete on, so deleted messages are overwritten, not left in free space |
| Cache key | Keychain | 256 random bits from SecRandomCopyBytes |
| Passwords, OAuth refresh tokens, your PGP private keys, automatic-backup passphrase | Keychain | Data-protection keychain, kSecAttrAccessibleAfterFirstUnlock, not synced to iCloud |
| S/MIME certificates and private keys | Your login keychain, managed by macOS | As macOS protects them |
| Others' PGP public keys, learned S/MIME certificates, settings | App preferences | Public data, not encrypted |
| Messages waiting to send (Send Later, failed sends) | Beside the cache | Encrypted with the cache encryption when it's on (below) |
| Opened attachments | A temporary folder | Deleted when you quit |
| Spotlight index, widget summary, notifications | macOS | Apple's protection; each can be turned off |
Cache encryption ("Encrypt mail saved on this Mac", off by default): SQLCipher with its standard settings (AES-256-CBC per page, HMAC-SHA512 page authentication), keyed with the raw 256-bit key, so there's no password-stretching step and nothing to guess. Turning it on or off rewrites every cache, resumably.
Waiting messages are sealed with AES-256-GCM (CryptoKit) under a key derived from the cache key with HKDF-SHA256 (its own label, so it's never the same key used twice). Files from before encryption was turned on are converted at launch; turning encryption off decrypts them before the key is deleted. If the key can't be had, nothing is written, rather than writing the message in the clear.
What it doesn't cover, as Settings says: copies from before you turned it on (an APFS snapshot, say), the Spotlight index, the widget summary, notifications, and unencrypted backups.
Backups
- Format: plain folders with a README (mbox, vCard, JSON), so they open without dumbmail.
- Encrypted backups are an OpenPGP symmetrically encrypted tar (
.tar.gpg) that standardgpg(2.2+) opens: AES-256, passphrase stretched with iterated-and-salted S2K (SHA-256, 65,011,712 bytes, the maximum), MDC integrity, no compression. Automatic backups encrypt each month of mail separately with the same passphrase, under file names that say nothing about what's inside. - Private keys go into a backup only if you tick the box: PGP keys in either kind of backup (with a warning for an unencrypted one); S/MIME identities only in an encrypted backup, as a PKCS #12 file exported by macOS, protected by the same passphrase.
- Restore checks paths and links in the archive, never writes outside its own folder, and cleans up after a failure.
Known limits and compromises
All of these are deliberate or known; none is hidden.
- No independent audit yet (see the principles).
- PGP falls back to SEIPD v1 (MDC) whenever any recipient's key doesn't advertise AEAD, which includes every GnuPG user and keys made in dumbmail before November 6, 2026. MDC is sound when integrity failures are fatal, and in dumbmail they are. And if you move your dumbmail key to an app that can't read AEAD (GnuPG 2.4, for one), mail that came to it as v2 won't open there.
- S/MIME encryption is AES-CBC, without integrity protection, as in every S/MIME mail app; there's no authenticated mode most recipients can read yet. dumbmail's defenses are against what attackers do with that (no remote content ever in decrypted S/MIME). Key transport is RSA PKCS#1 v1.5, which is what recipients' apps can read.
- S/MIME to elliptic-curve certificates uses Triple-DES, because only macOS's encoder supports them and it doesn't let the cipher be chosen.
- Trust on first use. Keys picked up automatically are used for encryption when there's nothing else; dumbmail warns when they're unverified rather than refusing.
- Your PGP private keys aren't passphrase-locked inside the Keychain. The Keychain, your login password and FileVault protect them. A locked key you import is unlocked once and kept that way.
- Metadata is visible to your provider: who you write to, when, and how big the message is. The subject is hidden only in encrypted mail with protected headers on.
- Web Key Directory lookups tell the recipient's domain that their address is being written to (and from your IP). On by default because it's how encryption works without setup; off in Settings ▸ Privacy.
- Spotlight, widgets and notifications keep their own copies of senders and subjects (and Spotlight, message text) outside dumbmail's encryption. Each can be turned off.
Security changelog
Before release, on November 6, 2026, dumbmail's security was reviewed from the code (a self-review, not an outside audit), and these were found and fixed, each with a test:
| Found | Fixed |
|---|---|
Blocked HTML mail could still open a connection to its sender with <link rel=preconnect> (a way to tell a message was opened) | <link> removed unless everything may load; tested in real WebKit |
| A PGP signature by a key that came in the same message showed green | Keys picked up automatically show amber until verified |
| Replies to encrypted mail weren't encrypted, and their drafts sat readable on the server | Encrypt starts on; drafts are saved encrypted |
| Replies quoted decrypted mail wherever they were going | Quoted only when signed by the sender and going back to them alone |
| Encrypted text wrapped in other text was decrypted | Opened only when it's the whole message |
| Text added around a clear-signed block looked signed | Shown as it came, marked "only part is signed" |
| Some markup got trackers past "skip trackers" | WebKit's content blocker refuses them too |
| Decrypted S/MIME mail could load remote content (EFAIL-style) | Never loads it |
| S/MIME signers weren't checked against the S/MIME policy | Now they are, with no fallback |
| IMAP could send a password without TLS if TLS was switched off | Refused, except to a server on this Mac |
| Send Later and failed sends kept messages unencrypted on disk | Encrypted along with the cache |
| No warning when encrypting to an unverified key | Compose warns |
| Subjects of encrypted mail were visible | Protected headers |
| The cache-encryption setting overstated what it covers | Reworded |
| PGP never sent RFC 9580's authenticated encryption (SEIPD v2), and keys made here didn't offer to receive it | v2 (AES-256-OCB) when every recipient's key supports it, v1 with MDC otherwise; new keys advertise it |
| IMAP accepted TLS 1.0 and 1.1 (a library default), and SMTP and ManageSieve didn't set a minimum | TLS 1.2 or later for all three, unless an account is set to allow older for an old server (with two warnings); tested against 1.1-, 1.2- and 1.3-only servers |
| A failed TLS handshake on SMTP or ManageSieve could crash the app (Foundation's async stream-task calls resumed twice when the connection was then closed) | Completion handlers awaited with a guard; found by the TLS test |
Future findings, from us or from anyone else, will be added here with the version that fixed them.
Check it yourself
- Network: run Little Snitch or LuLu and compare what dumbmail connects to with the list above.
- Outgoing mail: look at the source of a message you sent (View ▸ Raw Source in most apps). There's no
User-AgentorX-Mailer; the Message-ID is a random UUID at your domain; the SMTP greeting isEHLO [127.0.0.1], not your Mac's name.Datecarries your time-zone offset, as all mail does. - Encrypted mail: decrypt a message dumbmail sent with
gpg --decryptoropenssl smime -decrypt, and inspect it withgpg --list-packetsoropenssl cms -cmsout -print. - Backups:
gpg --decrypt backup.tar.gpg | tar t. - The source: dumbmail's code will be public at github.com/fossella/dumbmail when it launches.
- Reporting a problem: support@dumbmail.app. We'll answer within 3 days, fix what's real, credit you if you'd like, and add it to the changelog.
Components and versions
| Component | Version | Used for |
|---|---|---|
| GopenPGP | 2.11.1 | OpenPGP API |
| ProtonMail go-crypto | 1.5.2 | OpenPGP implementation (incl. ML-KEM) |
| Go | 1.27.2 | Builds the OpenPGP framework |
| SQLCipher (SQLCipher.swift) | 4.19.0 | Encrypted cache |
| SwiftNIO / swift-nio-ssl (BoringSSL) | 2.104.0 / 2.37.5 | IMAP connections and TLS |
| swift-nio-imap | revision 14ad388, vendored with a small marked change for the TLS minimum | IMAP protocol |
| Apple Security framework, CryptoKit, WebKit | macOS 15+ | S/MIME, Keychain, AES-GCM/HKDF, HTML |
The tests behind the claims above are in the repository: tests/pgp (with GnuPG interop where installed), tests/smime (checked against OpenSSL), tests/htmlpage (real WebKit, real sockets), tests/sealedfiles, tests/tls (against OpenSSL servers), and the Go tests in PGP/dumbmailpgp.