Features

Every email you receive survives a split-second trial you never see — a spam filter weighs who sent it, how it traveled, and what it says, and most junk loses before your inbox ever opens.

Features — 280

How a spam filter decides what’s junk

Filed UnderTech, Email
Read Time~3 minutes
PublishedNovember 16, 2026 at 8:22 AM
A laptop on a desk displaying a phishing email about a credit card, with a hand on the mouse and a potted plant beside it
Photo: RDNE Stock project / Pexels

          Open your email and you will probably find a tidy inbox: messages from people you know, a receipt or two, maybe a newsletter you actually signed up for. What you will not see is the flood that was aimed at you and never arrived. For every message in your inbox, others were quietly diverted to the junk folder or refused outright. That sorting is done by a spam filter, and it makes its decisions the way a good bouncer works a door — fast, from a handful of clues, and with no time to interview anyone.

It started with one message
          Spam is nearly as old as networked email itself. The first famous case came in 1978, when a marketer named Gary Thuerk sent an advertisement for a new line of computers to about 400 people on the ARPANET, the research network that came before the internet. It worked — the message sold computers — and it also drew furious complaints from people who considered their inboxes private territory. Both halves of that story have repeated ever since: spam pays, and everyone hates it.
          As email spread to the public, the trickle became a flood, and the first filters were simple word lists. If a message contained certain telltale words, in it went to the junk folder. Spammers answered by misspelling those words on purpose — and the filter had to grow from a bouncer with a list into something closer to a detective.

“ A spam filter is not a wall. It is a judgment call, made in a split second, about every message you will never see.”

The filter reads like a detective
          A modern spam filter checks a message on several levels at once, and the first has nothing to do with what the message says. It looks at where the mail came from. Senders build reputations over time, the way drivers build records: an address and server with a history of clean mail sail through, while known spam sources sit on shared blocklists that filters consult before accepting anything at all.
          Then comes the identity check. Legitimate mail carries a kind of return-address verification — technical signatures, with names like SPF and DKIM, that let the receiving system confirm the message really came from the service it claims to come from. A message pretending to be your bank, but arriving from a random computer with no matching signature, fails this check the way a forged ID fails at the door.
          Only then does the filter read the content, and it reads the way you would read a suspicious letter: subject lines shouting about prizes, links that point somewhere different from what the text claims, urgent pressure to act right now, attachments from strangers. No single clue convicts a message. The filter adds the clues up into a score, and messages that cross the line go to junk. In 2003, the law joined the effort — the CAN-SPAM Act set basic rules for commercial email in the United States, requiring honest subject lines and a working way to opt out — but the day-to-day sorting is still done by the filters, not the courts.

It learns from you, and sometimes guesses wrong
          The last layer of the filter is you. Every time you fish a real message out of the junk folder, or drag a nuisance into it, you are training the system on your personal definition of junk. Your newsletter is another person's spam; the filter knows this, and it adjusts what it shows each person accordingly.
          That judgment is also why the system fails in both directions. A job offer, a school notice, or a message from a brand-new address can look, to a filter, exactly like the opening move of a scam — new sender, urgent subject, a link to click. And determined spammers study the filters as carefully as the filters study them, polishing their messages until the clues come in just under the line.
          So the quiet inbox you take for granted is not a natural state. It is a verdict, delivered fresh on every message, by a system weighing reputation, identity, and language in the time it takes the page to load. Check your junk folder now and then. Somewhere in there is a message that lost its trial on a technicality — and the filter, like any bouncer, would rather turn away one honest guest than let the wrong crowd through the door.

Enjoying the magazine?

A new story goes up every night at midnight. Find your next one by section.

Browse the sections