Metadata Is Enough
Why encrypted email still tells them almost everything
The privacy email industry sells one product above all others: encryption of message content. Encrypt the body, the promise goes, and your correspondence is safe. It is a comforting pitch, and it quietly skips past an uncomfortable fact. The people who run the world's largest surveillance programs have said, on the record, that they do not particularly need your content.
“We kill people based on metadata.”
— General Michael Hayden, former director of both the NSA and the CIA, Johns Hopkins University, April 2014
Hayden was not being hyperbolic, and he was not speaking off the cuff. He was responding to a statement by Stewart Baker, former general counsel of the NSA, that “metadata absolutely tells you everything about somebody's life. If you have enough metadata, you don't really need content.” Hayden called that “absolutely correct” and then went further. The exchange was reported by his debate opponent, Georgetown law professor David Cole, in the New York Review of Books.
This article takes email apart and shows you exactly what those two men were talking about: what the protocol itself must expose to deliver a message, what your mail client volunteers on top of that, why none of it can be encrypted, and what has actually been done with metadata alone. Not what could theoretically be done. What has been done, documented, in public records.
What the Protocol Requires in the Clear
Email moves over SMTP, and SMTP is old. The user@host address format goes back to Ray Tomlinson's first ARPANET mail in 1971. The protocol itself was specified by Jon Postel in 1982 as RFC 821, and its twin, RFC 822, defined the message format and its headers the same year. Their modern successors, RFC 5321 and RFC 5322, preserve both the design and the split, and that split matters for everything in this article: the envelope is the server-to-server conversation from 821, the headers are the message format from 822, and a message carries its addressing in both, two copies of similar facts exposed at two layers. Everything added in the four decades since, TLS via STARTTLS, authentication, size declarations, internationalized addresses, arrived as extensions negotiated through the EHLO greeting and grafted onto a conversation that still runs on the same verbs Postel wrote down: HELO, MAIL FROM, RCPT TO, DATA. That durability is a genuine engineering achievement, and it carries a consequence: the metadata exposure described below is not an implementation flaw some provider can patch. It is the 1982 core, still load-bearing.
Before a single byte of your message is transmitted, the sending server and the receiving server hold that conversation, and the conversation is the envelope: the MAIL FROM command naming the sender address, and one RCPT TO command per recipient. The receiving server cannot accept a message without knowing where it is going, and it will not accept one without being told where it came from. This is not a design oversight. It is how delivery works, in exactly the way a postal service cannot deliver a sealed envelope without reading the address on the outside.
Alongside the envelope, the receiving server sees the connecting client's IP address, the hostname it announced in the HELO/EHLO greeting, the exact time of the connection, and the size of the message. It then stamps most of this into the message itself as a Received header, and every server in the delivery path adds its own:
Received: from mail-out.example.org (mail-out.example.org [203.0.113.25])
by mx.recipient.net with ESMTPS id a1b2c3
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384)
for <someone@recipient.net>; Thu, 23 Jul 2026 21:14:03 -0400
Read that header the way an analyst would. It records which server handed the message to which server, from which IP address, at what time to the second, in which timezone. A full Received chain is a hop-by-hop travel log of the message, and on many systems the first hop records the IP address of the actual device the user sent from. Watch the protocol tag in that first hop too: ESMTPSA instead of ESMTPS means the sender logged in to submit, and many servers spell it out further with an (Authenticated sender: account@domain) annotation, stamping the actual account that authenticated into the headers of the message. If that account sent from an alias, the stamp just linked the alias to its owner.
The Received chain is only the best known of the server-stamped headers. At final delivery the envelope sender is written into Return-Path, so the envelope survives into the stored message. Delivered-To and X-Original-To record the mailbox and address a message actually traversed, which is how a forwarded message quietly documents the alias chain behind it. Some webmail systems historically stamped the user's own connecting address into X-Originating-IP, which is exactly the header that pointed investigators at Tor in the Harvard case below. Receiving servers add their own verdict trail in Authentication-Results and Received-SPF, recording which infrastructure vouched for the message and whether the checks aligned.
And then there is DKIM-Signature, which deserves its own moment. Your provider cryptographically signs each outgoing message with its domain key, and the signature typically covers the From, To, Subject, Date, and a hash of the body. The d= and s= tags identify the signing domain and infrastructure, which is fingerprint material like everything else here. But the deeper consequence is non-repudiation: anyone who ever obtains the message, by leak, theft, or subpoena, can cryptographically prove it is genuine and unaltered, forever. This is not theoretical either; DKIM verification is how researchers and journalists authenticated the leaked Podesta emails in 2016. A protocol feature added to fight spam quietly converted every signed email into a permanently verifiable record, and it signs the metadata headers first.
What about TLS? Modern servers do encrypt SMTP sessions in transit, and that matters against a wiretap sitting between two servers. But SMTP encryption is hop-by-hop, not end-to-end. Every server in the path decrypts the session, processes the complete message with all of its metadata in the clear, and re-encrypts for the next hop. Your provider sees everything. The recipient's provider sees everything. Any relay in between sees everything. TLS protects the pipe between the parties who can already read the mail.
What Your Mail Client Volunteers
The protocol's requirements are only the floor. On top of them, the software that composes your mail adds a layer of headers, and this is where metadata stops being routing information and starts being biography.
From, To, and Cc: the address headers inside the message are separate from the envelope commands, and they carry more. Each address is paired with a display name, and your client filled yours in when the account was set up, which for most people means their real name. Every message that account ever sends then reads From: Jane Q. Smith <quiet.handle@example.com>, welding a legal name to the “anonymous” address in a header no encryption touches. The display names on To and Cc leak in the other direction: they come from the sender's address book, so they expose what your correspondents have you saved as. Cc publishes your full recipient list to every person on the message, a Reply-To quietly announces a second account belonging to the same person, and all of it rides outside the encrypted body.
Date: your client stamps the local date and time, down to the second, including your UTC offset: Thu, 23 Jul 2026 21:14:03 -0400. That offset says where on the planet your clock thinks it is. When it changes from -0400 to +0100 for a week and then changes back, you took a trip, and the header said so. An unusual offset narrows things dramatically: +0545 is Nepal and essentially nothing else. The Date stamp also invites comparison with the server's Received stamp on the same message: a consistent few-second gap between them is your machine's clock error, one more small constant that follows you from message to message.
Message-ID: a globally unique identifier for the message, generated by your client or your provider, with a format that is characteristic of the software that made it. Gmail's look like <CAxxxx...@mail.gmail.com>. Apple Mail generates a bare UUID. Thunderbird, Outlook, and every webmail system each have their own recognizable shape. The Message-ID also feeds the next two headers.
In-Reply-To and References: every reply carries the Message-IDs of the messages it responds to. These headers exist so clients can display conversation threads, and their side effect is that the entire structure of every conversation you have ever had is written down in the headers: who initiated, who replied, in what order, how fast.
X-Mailer and User-Agent: many clients simply announce themselves. Thunderbird sends its exact version and platform. Outlook identifies itself and its build. Apple's iPhone Mail sends something like X-Mailer: iPhone Mail (21F90), and that parenthetical is the iOS build number, which maps to the exact OS version on your phone, which tells an attacker precisely which unpatched vulnerabilities you are carrying.
Subject: worth singling out because almost nobody realizes it. PGP and S/MIME encrypt the message body. The Subject line is a header, and in standard use it travels in the clear even on a fully end-to-end encrypted message. A newer “protected headers” scheme can tuck the real subject inside the encrypted body, but client support is spotty, and do not mistake it for a fix: it moves one line inside the vault while the envelope, the addresses, the timestamps, the Message-ID, the thread references, and the entire Received chain stay on the outside, because they have to. A hidden subject on a message that still announces who, to whom, when, from where, and in reply to what is not privacy. It is a redacted title on a public itinerary.
The Fingerprint in the MIME Type
Even a client that carefully identifies itself nowhere still identifies itself everywhere, because the structure of the message is a fingerprint. Modern email is MIME: the message declares a Content-Type, and multipart messages separate their sections with a boundary string the client invents. Clients invent them differently, and some literally sign their work. Apple brands its boundary with its own name:
Content-Type: multipart/alternative;
boundary="Apple-Mail=_E8B4A2C1-7F3D-4A6B-9E2C-1D5F8A3B7C90"
Every multipart message sent from Apple Mail carries Apple-Mail=_ followed by a UUID, in every section boundary, no configuration required and no way to turn it off. Gmail uses long strings of digits with a leading run of zeros. Old-school Outlook used ----=_NextPart_.... Thunderbird uses its own dashed alphanumeric pattern.
And the boundary is just the loudest tell in a chorus of quiet ones: whether the client sends multipart/alternative with both plain-text and HTML parts or plain text alone, which charset it declares, whether it encodes with quoted-printable or base64, whether it declares your language in a Content-Language header, how it folds long header lines, the order in which it emits headers, the capitalization it uses (Mime-Version versus MIME-Version), the shape of its HTML part. No single one of these identifies you. Together they say “this person sends from Apple Mail on iOS, this one from Thunderbird on Linux, this one from Outlook at an office,” and they keep saying it across every alias and every account that person touches. Change your address, keep your client, and the fingerprint follows you. Spam filters use exactly these structural tells to classify mail by origin software; anyone with your headers can use them to link identities the same way.
Why None of This Can Be Encrypted
The natural response is: fine, encrypt it all. And here email delivers its hardest truth. The metadata cannot be encrypted, because the metadata is what delivery runs on.
The receiving server must read RCPT TO or it does not know which mailbox to deliver to. Servers must see sender, recipient, and message identifiers to route, to detect mail loops, to generate bounces, to filter spam, and to honor the store-and-forward model that makes email work between any two providers on Earth. End-to-end encryption, PGP or S/MIME, seals the body and only the body. Wrap the strongest cryptography ever devised around your message and the To, From, Date, Message-ID, Subject, References, Return-Path, DKIM signature, and the entire Received chain still travel in the clear, because if they didn't, the message would go nowhere.
This is why “zero knowledge email” is a contradiction in terms, no matter which provider claims it. A provider that delivers your mail knows who you correspond with, when, how often, from where, and at what message sizes. That is knowledge, it is the knowledge that matters most, and no walled garden and no algorithm removes it, because SMTP cannot function without it. Within a single closed system a provider can hide some of this from outsiders, but the moment mail crosses to any other provider, which is the entire point of email, the metadata crosses with it.
Your Social Circle, Assembled From Headers
Now put the pieces together the way an analyst does, because none of these fields is interesting alone. From, To, and Cc across a mailbox build a graph: nodes are people, edges are correspondence. References and In-Reply-To give the edges direction and sequence. Timestamps give them rhythm.
From that graph alone: who is in your inner circle (high frequency, both directions, fast replies), who holds power over you (you answer them within minutes, they answer you in days), which contacts you keep separated from each other, who appears only ever in Cc (a supervisor, a lawyer), whose thread you started versus who always initiates with you. A new edge that suddenly becomes high-frequency at 11 p.m. is a relationship starting. An edge that goes silent is one ending. A burst of traffic to an oncology practice, a bankruptcy attorney, a criminal defense firm, or a crisis line is a life event, announced by the address alone before anyone reads a word.
This is not speculation about what could be inferred. In 2013, MIT's Immersion project demonstrated it live: give it access to nothing but the From, To, Cc, and Date fields of a Gmail account and it renders your entire social universe, clusters and all, in seconds. And in 2016, Stanford researchers published in PNAS what crowdsourced communications metadata actually reveals: working from metadata alone, they re-identified participants, mapped locations and relationships, and correctly inferred highly sensitive traits, including a heart condition (calls to a cardiology clinic and a pharmacy hotline), firearm ownership (calls to a firearms dealer and a manufacturer's customer line), and religious affiliation. No content was ever collected. None was needed.
Behavioral Patterns: The Clock Never Lies
Every message you send is timestamped twice over, once by your client's Date header with its timezone offset and once by every server's Received stamp. Aggregate a year of those timestamps and you have a pattern of life: when you wake (first message of the day), when you sleep (the nightly gap), which days you work, when you take lunch, when you go on vacation and where (the offset change), when your insomnia started (the 3 a.m. cluster that wasn't there last year), and when something disrupted your routine entirely.
“Pattern of life” is not our phrase. It is the intelligence community's own term for exactly this analysis, and it appears verbatim in leaked NSA documents describing metadata-driven targeting. When the Court of Justice of the European Union struck down the EU's Data Retention Directive in 2014, a directive that compelled providers to retain precisely this communications metadata, it did so on the finding that such data, taken as a whole, “may allow very precise conclusions to be drawn concerning the private lives of the persons whose data has been retained,” including their habits of everyday life, their residences and movements, their activities, and their social relationships. The court needed no content either.
Metadata Alone, In Practice
Everything above has been used, operationally, with outcomes on the record.
SKYNET. Documents published by The Intercept in 2015 describe an NSA program that applied machine learning to the mobile metadata of roughly 55 million people in Pakistan, scoring each person's likelihood of being a terrorist courier from pattern-of-life, social-network, and travel behavior extracted from metadata alone. The program's own slides present, as their highest-rated target, Ahmad Zaidan, the long-serving Islamabad bureau chief of Al Jazeera, flagged as a member of both al-Qaeda and the Muslim Brotherhood. He was neither; he was a journalist whose job was interviewing exactly the people the algorithm was trained to associate with couriers. His metadata pattern was indistinguishable from the model's idea of a target. This is the program landscape Hayden's “we kill people based on metadata” describes, and Zaidan is what a false positive looks like.
The Petraeus affair. In 2012 the FBI set out to identify who was sending anonymous, harassing emails to a Florida woman. The sender had decent operational instincts: throwaway accounts, and mail sent from hotel Wi-Fi rather than home. The FBI never needed to break anything. Email metadata gave them the originating IP addresses; the IPs resolved to specific hotels on specific dates; hotel guest registries were subpoenaed; and one name appeared at every hotel on every matching date: Paula Broadwell, biographer of CIA director David Petraeus. The investigation that followed exposed their affair, including the couple's shared-drafts-folder trick for avoiding sending messages at all, and ended the career of the sitting director of the CIA. Read that again with this article in mind: the director of the Central Intelligence Agency was undone by email metadata. The content of the harassing emails identified no one. The intersection of login records did. The ACLU's post-mortem is worth reading in full.
The Harvard bomb hoax. In December 2013, a Harvard student emailed bomb threats to the university to escape a final exam, and he did his homework first: he used Guerrilla Mail, a disposable anonymous email service, over Tor. Content: anonymous. Account: anonymous. The metadata got him anyway, twice. Guerrilla Mail stamped the originating IP into the outgoing headers, which showed the mail came from the Tor network; Harvard's own network records showed who had been connected to Tor on campus Wi-Fi in the hours before the messages arrived. The list was short. Eldo Kim was on it, and when agents knocked, he confessed. According to the FBI's own affidavit, no content analysis was involved. Correlation of connection metadata was enough.
The encrypted providers themselves. If the walled gardens were the answer to any of this, here is where the record would show it. It shows the opposite. The most prominent encrypted email provider in the world has repeatedly identified its own users for authorities, never by breaking its encryption, which was not broken in any of these cases, but by handing over the metadata it necessarily holds. In 2021, Proton Mail, under a Swiss legal order originating with French police and routed through Europol, was compelled to begin logging the IP address of a French climate activist involved in the Youth for Climate occupations around Place Sainte-Marthe in Paris, and turned over the IP address and browser fingerprint that led to his arrest. Proton's front page had advertised that it did not keep IP logs; that wording was revised after the story broke. In 2024, in a terrorism-framed Spanish investigation of the Catalan independence movement, Proton gave the Guardia Civil the recovery email address attached to a Democratic Tsunami activist's account. The recovery address was an iCloud address, so Apple was served next and supplied the full name, two home addresses, and a linked Gmail account behind it. Two privacy-marketed companies, one metadata chain, one fully identified activist. And in 2026, an FBI affidavit published by 404 Media showed that Proton had supplied, through a mutual legal assistance request, the payment data behind the anonymous account defendtheatlantaforest@protonmail.com, unmasking a “Stop Cop City” protester the FBI then planned to intercept at the Atlanta airport, using flight records obtained separately. Three countries, three activists, one pattern: the encryption held every time, and it did not matter, because the provider held the metadata and the law reached the provider.
The Tutanota monitoring order. In November 2020, a German regional court in Cologne ordered Tutanota (now Tuta), the other flagship encrypted provider, to build a surveillance capability it did not have: for accounts implicated in an extortion case, the company was required to copy incoming and outgoing messages and deliver them in plaintext, captured before its storage encryption was applied. Tutanota appealed, lost, and built the function. Look closely at what such an order reaches, because it is this article in miniature. End-to-end encrypted mail between Tutanota users stayed sealed; the intercept function could only deliver readable copies of mail that arrived or left in plaintext. But that is most of the mail, because the overwhelming majority of any user's correspondents sit on ordinary providers and send plaintext SMTP. And for the remainder, the messages the encryption genuinely protected, no further order was needed. The monitoring sat where mail is sent and received, and at that point metadata is not something a provider has to go retrieve; it is part of the transaction being monitored. An encrypted message leaving over SMTP hands the tap its envelope, its headers, its timing, and its size in the same transaction that carries the ciphertext, so even Tutanota's encrypted mail surrendered its metadata the moment it was sent. Content encryption limits what a tap can read. It does nothing to limit what a tap can log, and a monitoring order against an end-to-end encrypted mailbox does not fail against the encryption. It simply resolves into a metadata tap on all mail, which, as everything above shows, is not a consolation prize. This is the metadata edition of the Hushmail lesson from The Walled Garden Approach: the provider is reachable, and what the provider holds, the law can take.
Bulk email metadata collection. Lest email seem like the exception to phone-centric programs: declassified documents confirm the NSA operated a bulk internet metadata program under the STELLARWIND umbrella and later FISA pen-register authority, collecting email To, From, and timestamp data in bulk until the program was shut down in 2011, with the government arguing throughout that metadata carried lower legal protection than content. That legal asymmetry, easier access to metadata than to content in most jurisdictions, is half of why metadata is the preferred product. The other half is that it is structured, uniform, and machine-readable at scale, which content never is. Metadata is not the consolation prize when content is encrypted. It is frequently the preferred data.
What Can Actually Be Done
First, because this is where privacy marketing usually starts lying: no email provider can encrypt the metadata SMTP requires. Anyone who implies otherwise is selling something. When your mail crosses to another provider, that provider sees sender, recipient, timing, and size. What a provider can control is everything layered on top of the protocol floor, and that layer is thick.
The client fingerprint is removable, provided the provider removes it in the right place. CodaMail strips client-added metadata at the outbound SMTP server itself, not in the webmail interface, which means it applies to any client sending through us: webmail, Thunderbird, a phone's mail app, anything speaking standard SMTP. Every message submitted through our outbound server has its X-Mailer, User-Agent, originating-IP, and over thirty-five other client-identifying headers removed, so every message leaves looking the same regardless of what device or software composed it. And the defaults are only the floor: we give you full control over your own headers, letting you remove, change, or add whatever headers you choose on the mail you send. That placement is why we can offer this protection to those who use a regular mail app: the client's chattiness gets scrubbed at the server either way.
The graph is partitionable. Metadata analysis depends on every edge connecting to the same node: you. Masked aliases give every service, list, and correspondent a different address, so the graph an outside observer assembles is many small disconnected graphs instead of one map of your life, and a leaked address burns one edge instead of the whole node.
The timing tells are reducible. Scheduled and delayed sending decouples when a message leaves the server from when you actually wrote it, which blunts the sleep-schedule and timezone analysis that live sending hands over for free.
And content encryption still matters, for what it actually protects. Used correctly, PGP keeps the words themselves from everyone but the recipient, and that is worth doing. Just hold it in proportion. The industry has spent a decade telling you the body of the message is the crown jewel, while the people running the surveillance programs told you, in plain language, which part they actually use. Baker: if you have enough metadata, you don't really need content. Hayden: we kill people based on metadata. Believe them. They would know.
If you are attempting to hide from governments at any level, e-mail is not the correct tool. If this is the basis of someone's marketing, question what else they aren't telling you.
Published July 2026. Sources: David Cole, NYRB (Hayden/Baker quotes); Just Security (debate video); Mayer, Mutchler & Mitchell, PNAS 2016; MIT Media Lab, Immersion; ACLU on the Petraeus investigation; DOJ, U.S. v. Kim; The Intercept's SKYNET reporting; CJEU, Digital Rights Ireland (C-293/12); TechCrunch (Proton, French activist, 2021); TechCrunch (Proton/Apple, Catalan activist, 2024); 404 Media (Proton, Stop Cop City, 2026); TechCrunch (Tutanota monitoring order, 2020); CyberScoop (Tutanota appeal dismissed, 2021).
