Spam is unsolicited bulk electronic mail, sent to many recipients who never asked for it and usually cannot meaningfully stop it. In email infrastructure, the term covers commercial junk email, scams, phishing lures and malware carriers, and it is the main reason modern mail servers run sender authentication, reputation checks and content filters before accepting a message from anywhere on the Internet.
The defining features are lack of consent and bulk volume, not the content alone. A single unwanted message from a colleague is not spam, while a legitimate newsletter sent to purchased addresses is. Industry estimates of the spam share of global email traffic vary widely by method and period, but they have consistently placed it between roughly 45 and 85 percent of all messages over the past two decades.
How spam reaches mailboxes
Spam travels through the same SMTP delivery path as legitimate mail, which is why it is hard to stop at the protocol level. SMTP was designed for a cooperative network and originally accepted any message from any host, with no built-in proof of sender identity. Spammers exploit that openness through several sending channels.
| Source | How it works | Typical countermeasure |
|---|---|---|
| Botnets | Infected home computers send mail directly to port 25 | DNSBL listings and blocking residential ranges |
| Compromised accounts | Stolen credentials send through a real provider | Login anomaly detection and rate limits |
| Open relays | Misconfigured servers forward mail for anyone | Relay restrictions and blocklisting |
| Snowshoe sending | Low volume spread over many IP addresses and domains | Domain reputation and content analysis |
| Abused web forms | Contact forms or sign-ups trigger outgoing mail | CAPTCHA, confirmation and form throttling |
Address lists come from web scraping, data breaches, dictionary guessing of common local parts and the resale of marketing databases. Because sending costs almost nothing, a response rate of a few messages per million can still make a campaign profitable, which explains the persistent economics of spam.
Types of spam and their goals
Spam is a family of abuse types that share one delivery method. Their goals differ, and so does the damage they cause to recipients and to the networks that carry them.
| Category | Goal | Main risk to recipients |
|---|---|---|
| Commercial junk email | Sell products or services | Wasted time and mailbox clutter |
| Phishing | Steal credentials or payment data | Account takeover and fraud |
| Malspam | Deliver malware through attachments or links | Ransomware and device compromise |
| Advance-fee fraud | Extract payments with false promises | Direct financial loss |
| Backscatter | Unintended bounces to forged senders | Floods of non-delivery reports |
Backscatter deserves special attention from administrators. When a server accepts a message and only later rejects it, it sends a bounce message to the forged envelope sender, an innocent third party. The fix is to reject during the SMTP session rather than accepting first and bouncing afterward.
How email infrastructure filters spam
Mail servers fight spam with layered defenses, each catching what the previous layer missed. Cheap checks run first during the SMTP conversation, and expensive content analysis runs only on messages that survive them, which keeps processing costs manageable at high volume.
| Layer | Examples | What it detects |
|---|---|---|
| Connection checks | DNSBL, reverse DNS, rate limits | Known bad or suspicious sending hosts |
| Protocol behavior | Greylisting, HELO validation, pipelining checks | Bulk software that ignores SMTP rules |
| Sender authentication | SPF, DKIM, DMARC, ARC | Forged or unauthorized sender domains |
| Content analysis | Statistical classifiers, URL reputation, signatures | Spam patterns in text, links and attachments |
| User feedback | Report-spam buttons, feedback loops | Campaigns the automatic layers missed |
SPF, DKIM and DMARC do not detect spam by themselves; they verify that a message genuinely comes from the domain it names. That verification lets receivers attach reputation to domains rather than only to IP addresses, so a domain with a clean history earns trust while freshly registered or spoofed domains face stricter scrutiny. Since 2024, the largest mailbox providers require bulk senders to publish DMARC, offer one-click unsubscribe and keep complaint rates below 0.3 percent.
Spam compared with related email problems
Several neighboring concepts are often confused with spam. The distinctions matter because each problem needs a different response from senders and administrators.
| Concept | Relationship to spam | Who usually acts |
|---|---|---|
| Graymail | Solicited mail the user no longer wants | Recipient unsubscribes |
| False positive | Legitimate mail wrongly classified as spam | Sender fixes authentication or reputation |
| Spoofing | Forged sender identity, often used in spam | Domain owner enforces DMARC |
| Spam filter | The software that classifies messages | Mail administrator tunes it |
| Bulk email | High volume, legitimate when consent exists | Sender manages consent and lists |
Legally, many jurisdictions regulate unsolicited commercial email. The United States CAN-SPAM Act follows an opt-out model that permits commercial mail if it identifies the sender and honors unsubscribe requests, while the European Union applies an opt-in model under the ePrivacy rules and data protection law, which generally requires prior consent for marketing email to individuals.
Limitations and common mistakes in spam control
No filter is perfect, and every spam decision trades missed spam against blocked legitimate mail. Aggressive settings reduce junk but increase false positives, which are often more costly to an organization than an occasional unwanted message.
- Silently deleting suspected spam hides false positives; quarantine or a junk folder lets users recover legitimate mail.
- Relying on IP blocklists alone fails against compromised accounts at large providers.
- Publishing SPF without DKIM breaks authentication when messages are forwarded through mailing lists.
- Legitimate senders who buy address lists quickly damage their domain reputation and land in junk folders.
- Replying to spam or clicking unsubscribe links in obvious junk can confirm an active address to the sender.
Spammers adapt continuously, using image-based text, URL shorteners, compromised legitimate websites and, increasingly, machine-generated message text that avoids repeated phrasing. Effective defense therefore depends on constantly updated reputation data and classifiers rather than fixed rules.
In everyday language
Spam is the email version of junk flyers stuffed into a mailbox, except that sending a million emails costs almost nothing. Most of it tries to sell something, trick people into giving away passwords or get them to open a harmful file.
Mail services act like a careful mailroom. They check whether the sender is who they claim to be, whether that sender has a bad history and whether the letter looks suspicious. Most junk is stopped before it reaches the inbox, and the rest usually lands in a junk folder that people can review.
Seen in the real world
A regional accounting firm with 85 employees runs its own mail gateway. During tax season, staff receive phishing messages that imitate the national tax authority and ask them to open an attached invoice. The gateway administrator reviews the logs and finds that most of the messages come from botnet addresses already listed on DNSBLs, while a smaller share arrives through compromised accounts at a large webmail provider.
The administrator enables connection-level DNSBL rejection, turns on DMARC enforcement for incoming mail so that forged messages claiming the tax authority’s domain are refused, and adds attachment sandboxing for office documents. Suspected spam goes to a quarantine that users review daily instead of being deleted. Within two weeks, phishing reaching inboxes falls sharply, and the quarantine reveals only a handful of false positives, all from a client whose domain lacked DKIM signing.