SSD Nodes Learn Hosting plans →
Guides Matt ConnorBy Matt Connor

History of email: from SMTP to DMARC

Why does mail from your own server land in spam? The answer runs from Tomlinson's @ sign and RFC 821 through open relays, blocklists, SPF, DKIM and DMARC.

Why the history of email explains the spam folder

The history of email explains why mail from a new self-hosted server often lands in spam in 2026. SMTP (Simple Mail Transfer Protocol) was designed for a small network of trusted hosts, and it placed no limit on which sender address a host could claim. Every defence since then, from blocklists to SPF, DKIM and DMARC, was added on top of that open design. A new server has to pass all of those checks before receivers trust its mail.

The story has two halves. The first half is about how email spread across a network where abuse was not part of the design. The second half is about the rules that network operators and mailbox providers built once abuse arrived. A self-hoster in 2026 lives with the result of both.

1971: network email and the @ sign

Mail already existed on single timesharing machines, where the users of one computer could leave messages for each other. The new step was mail between machines. In 1971 Ray Tomlinson, an engineer at Bolt, Beranek and Newman (BBN), built the first network email application for the ARPANET (Advanced Research Projects Agency Network). He made it by combining two existing programs, SNDMSG and CPYNET.

Tomlinson also chose the @ sign to separate the user's name from the name of the host. That convention, user@host, is still the shape of every email address. The exact year is not fully settled. The Internet Hall of Fame and the Computer History Museum's timeline both give 1971, while the museum's own Internet History page places the program and the user@host convention in 1972.

Email grew up beside the other early ARPANET services, and the history of file transfer protocols follows a parallel path on the same network.

May 1978: the message often called the first spam

In May 1978 a marketing message from Digital Equipment Corporation (DEC) went out over the ARPANET to a long list of recipients. It advertised DECSYSTEM-20 computer models. It came from the account of Gary Thuerk, a DEC marketing representative, and a compiled history of the event says that engineer Carl Gartley used Thuerk's account to send it. The message is widely cited as the first email spam. The surviving record supports "possibly the first", so that is the honest way to describe it.

The reaction shows what the network expected of its users. The Defense Communications Agency, which ran the ARPANET, condemned the message as "A FLAGRANT VIOLATION OF THE USE OF ARPANET AS THE NETWORK IS TO BE USED FOR OFFICIAL U.S. GOVERNMENT BUSINESS." The defence against abuse was a rule about who could use the network, enforced by the people who ran it. The mail software itself did nothing to stop the message.

How was SMTP defined in RFC 788 and RFC 821?

An RFC (Request for Comments) is a document in the series that defines internet protocols. The first RFC titled Simple Mail Transfer Protocol was RFC 788, written by Jon Postel and published in November 1981. RFC 821, also by Postel, replaced it in August 1982. RFC 821 assigned SMTP to TCP port 25, and port 25 is still where mail servers talk to each other.

A companion standard arrived the same month. RFC 822, by David H. Crocker and dated 13 August 1982, is the "Standard for the Format of ARPA Internet Text Messages". RFC 821 covered how a message travels. RFC 822 covered the format of the message itself. That split still matters, because the sender address in the SMTP conversation and the From: line a reader sees are two separate things.

RFC 821 states its goal as "to transfer mail reliably and efficiently". It also described relaying, where one server passes a message on toward another. It did not ask the sending host to prove anything about the sender. As the later SPF specification puts it, the existing protocols "place no restriction on what a sending host can use as the 'MAIL FROM' of a message". Any host could claim any sender address, and the protocol gave the receiving server no way to check that claim.

Base SMTP has been revised since then. RFC 2821 replaced RFC 821, and RFC 5321, by J. Klensin in October 2008, replaced RFC 2821. RFC 5321 says that "SMTP servers MAY decline to act as mail relays". By 2008, sendmail had already refused unauthorised relaying by default for ten years, as the next sections show.

Sendmail and a network built on trust

Eric Allman wrote sendmail. Its first versions, called delivermail, were written in 1980 and distributed with 4.0 and 4.1 BSD, the Berkeley Unix releases. SMTP development on the program started in November 1981, and sendmail 4 was distributed with 4.2 BSD. Its path is tied to Berkeley Unix, which is covered in the history of BSD from Berkeley to FreeBSD.

Allman later described the early program plainly: "Like most early network software, sendmail was far too trusting in its early versions." He called the network of that time "a kinder, gentler Internet than we know today".

An open relay is a mail server that accepts a message from any sender, for any recipient, and passes it on. On a network of known institutions, that behaviour caused little harm. Once anyone could connect, the same behaviour let a stranger send mail through someone else's server.

Why did open relays become a problem in the 1990s?

The ARPANET's rules came from its role as a research and government network. In the 1990s that role changed. RFC 2635, published in June 1999, ties the new abuse problem to the moment "when all commercial enterprises were allowed to join what had been strictly research networks." The users were no longer a known community, but the trust built into the software stayed the same.

The best-known spam of that period was a Usenet posting. In April 1994 Canter and Siegel posted their "green card" advertisement to Usenet newsgroups. Brad Templeton's history of the term notes that the word "spam" was already in use before 1994.

By February 1999 the IETF (Internet Engineering Task Force) was publishing anti-spam advice for mail servers. RFC 2505, a Best Current Practice, observes that "Mass unsolicited electronic mail, often known as spam(*), has increased considerably during a short period of time". It says a mail transfer agent (MTA), the server software that moves mail between hosts, "MUST be able to restrict unauthorized use as Mail Relay." The reason is simple. A spammer who sends through an open relay makes the receiving server see the relay's IP address as the source of the connection, so complaints and blocks land on the relay's owner.

Sendmail had already moved. Version 8.9.0, dated 19 May 1998, changed its configuration so that by default it did not allow relaying. Sendmail's own site says: "Starting with version 8.9, sendmail denies unauthorized relaying by default". Before 8.9, a sendmail server refused relaying only if its administrator had configured it to. From 8.9 on, an administrator had to choose to allow it.

A self-hoster still meets this decision today. When a Postfix server refuses to pass on mail for a client it does not trust, the client gets the Postfix Relay access denied error, which is the same rule in a modern server.

Blocklists: how the RBL and Spamhaus answered spam

Relay rules protected each server from being used by strangers. Receivers also needed a way to refuse mail from hosts that were already sending spam. In 1997 Dave Rand and Paul Vixie, two well-known internet software engineers, started keeping a list of IP addresses that sent spam or other objectionable traffic. The list became known as the Real-time Blackhole List (RBL). It was first distributed through BGP (Border Gateway Protocol), the routing protocol between networks, and later through DNS (Domain Name System), so a mail server could check a connecting address with an ordinary lookup. Putting the list in DNS reused a system that mail already depended on, the subject of the history of DNS.

The MAPS (Mail Abuse Prevention System) RBL is the descendant of that original list. RFC 5782, an Informational document published in February 2010, records this history.

Spamhaus was founded in London in 1998 by Steve Linford. Its blocklists came later: the Spamhaus Blocklist (SBL) is dated 2001, and the XBL is dated 2004. In 2007 Spamhaus launched the Policy Blocklist (PBL), and the PBL is the list that matters most to self-hosters.

The PBL is "a dataset containing end-user IP address ranges from which email should never be sent directly to the final destination", often broadband ranges. A PBL listing is a policy statement about the range, and it says nothing about whether the address sent spam. This is why a home server can be rejected whatever software it runs: the receiver is judging the address range, and the message never gets a hearing. Spamhaus advises a smarthost for dynamic IPs. A smarthost is a relay server that sends mail on your behalf. A static mail server with proper forward and reverse DNS can request removal. When a bounce names Spamhaus, the guide to blocked using zen.spamhaus.org errors covers which list caught the address and what to fix.

Port 25 blocks and the move to port 587

Blocklists judge an address after it connects. Network operators also started to stop connections before they began. The first step was a separate port for users. RFC 2476, from December 1998, reserved port 587 for message submission, the step where a user's mail program hands a new message to its own server. Port 25 stayed for server-to-server traffic.

In March 1999 RFC 2554 added a standard authentication extension to SMTP, so a client could log in to its server before sending. That proves who the client is to its own server. It tells the final recipient nothing about whether the From: domain is genuine.

With submission on its own port, providers could close port 25 for ordinary customers. In 2005 the Messaging Anti-Abuse Working Group (MAAWG) published guidance for residential and dynamic IP space. It told providers to "Block access to port 25 from all hosts on your network", except hosts explicitly authorised to relay. M3AAWG still says that "Blocking port 25 for all but a few restricted purposes is still considered an industry best practice."

The IETF took a narrower position. RFC 5068 (BCP 134, November 2007) describes port 25 blocking but "offers no recommendation concerning the blocking of SMTP port 25." It does say that access providers must not block their users from reaching port 587.

The result is visible on real networks. Comcast, for example, states that it "does not support port 25 for the transmission of email by our residential Internet customers." Some VPS providers also block outbound port 25 by default, which means a new server cannot deliver mail directly unless the provider opens the port. Check your own provider's policy before you build on it. Sending mail from self-hosted apps through an authenticated relay covers the usual workaround.

qmail and Postfix: mail servers built for a hostile network

Open relaying was a configuration problem. Security holes in the software were a second problem. Daniel J. Bernstein started writing qmail in 1995 because, in his own words, he was "sick of the security holes in Eric Allman's 'Sendmail' software." He released qmail 1.00 on 20 February 1997.

In March 1997 Bernstein publicly offered $500 to the first person to publish a verifiable security hole in the latest version of qmail, and he later raised the offer to $1000. Whether that record is clean is disputed: in 2005 Georgi Guninski claimed an exploit, and Bernstein disputes the claim. Bernstein later placed the qmail package in the public domain.

Wietse Venema took a similar path. On 13 December 1998 he announced on the Bugtraq mailing list that Postfix, earlier called VMailer, would be released as open source code through IBM's AlphaWorks web site on 14 December 1998. He described it as "an alternative to the Sendmail program". The Postfix project site still lists security among its goals.

A mail server accepts connections from the whole internet, so any flaw in it is exposed to anyone who connects. Secure server software protects the machine that runs it. It does not help a receiver decide whether a message really comes from the domain it names. That was the next problem to solve.

SPF: which hosts may send for a domain?

SPF (Sender Policy Framework) was first published as RFC 4408 in April 2006, by M. Wong and W. Schlitt, with Experimental status. The RFC date is not the date the idea started. SPF became a Proposed Standard in RFC 7208, in April 2014, which obsoletes RFC 4408.

SPF answers the gap that RFC 821 left open. A domain publishes, in DNS, the hosts that are allowed to send mail for it. The receiver checks the connecting host against that list.

The check has two limits. First, it looks at the envelope identities: the MAIL FROM address and the HELO name in the SMTP conversation. It does not look at the From: header the reader sees, so a message can pass SPF for one domain while showing a different domain to the reader. Second, forwarding breaks it. When a server forwards a message and keeps the original envelope sender, the forwarding server is not on the original domain's list. RFC 7208 says that in this case "the SPF evaluation will fail unless mitigations such as those described in Appendix D are used."

DKIM: a signature from the sending domain

DKIM (DomainKeys Identified Mail) grew out of DomainKeys, a Yahoo specification by M. Delany that was published as RFC 4870 in May 2007 and is now Historic. The DKIM specification says that "The DomainKeys specification was a primary source from which this specification has been derived." DKIM itself was published as RFC 4871 in May 2007, as a Proposed Standard. RFC 6376, from September 2011, replaced it and is an Internet Standard (STD 76).

A DKIM signature lets a domain "claim some responsibility for a message by associating the domain with the message." The receiver verifies the signature with a public key that the signing domain publishes.

DKIM has its own limit. The signing domain can differ from the author shown in the From: line. A valid signature proves that a domain took some responsibility for the message. It does not prove that the visible From: address is genuine, and it does not prove that the message is wanted.

DMARC: tying SPF and DKIM to the From address

DMARC (Domain-based Message Authentication, Reporting, and Conformance) closed the gap that SPF and DKIM each left. It asks that SPF or DKIM pass for a domain that aligns with the From: domain, the one the reader actually sees. It also lets the domain owner publish a policy, from p=none (monitoring only) up to p=reject, and receive reports about mail that claims to come from the domain.

The work built on efforts that began in 2010. A group formed in spring 2011, and the DMARC specification was published on 30 January 2012. The contributors listed by DMARC.org include AOL, Comcast, Gmail, Hotmail, NetEase, Yahoo! Mail and PayPal.

RFC 7489, from March 2015, documented DMARC as an Informational, Independent Submission. It was never an IETF standard, and it is now obsolete. RFC 9989, published in May 2026 by T. Herr and J. Levine, is the current DMARC specification and a Proposed Standard. It obsoletes RFC 7489 and RFC 9091, and RFC 7489 is obsoleted by RFC 9989, 9990 and 9991 together. RFC 9989 removes the pct tag, replaces Public Suffix List lookup with a DNS Tree Walk, and defines the np, psd and t tags.

RFC 9989 also limits what a strict policy can do. It says "Mail Receivers MUST NOT reject incoming messages solely on the basis of a 'p=reject' policy by the sending domain." It also says that domains whose users post to mailing lists should not publish p=reject. Moving a real domain from monitoring to enforcement is its own project, covered in moving DMARC from p=none to p=reject.

February 2024: how Gmail and Yahoo made authentication count

For years these standards were optional for most senders. On 3 October 2023 Google announced that by February 2024 Gmail would start to require bulk senders to authenticate their mail and offer one-click unsubscribe, among other rules.

The final rules reached further than the announcement. As of December 2026, Gmail's sender guidelines say that since 1 February 2024 all senders to personal Gmail accounts must meet a baseline. That baseline includes these points:

  1. SPF or DKIM authentication.
  2. Valid forward and reverse DNS. Reverse DNS uses a PTR (pointer) record, and setting a PTR record on a VPS shows how that works.
  3. TLS (Transport Layer Security) for the connection.
  4. A spam rate in Postmaster Tools below 0.3%.
  5. Messages formatted to RFC 5322, with no impersonation of Gmail From: headers.

DMARC is not on that all-sender list. Bulk senders, those sending about 5,000 or more messages a day to personal Gmail accounts, must also use SPF and DKIM together with DMARC, with the From: domain aligned. Google states that the DMARC policy can be set to none. Bulk senders must also offer one-click unsubscribe for marketing and subscribed mail. A sender that meets the bulk criteria once is permanently treated as a bulk sender. The guidelines do not apply to mail sent to Google Workspace accounts.

Google says it began ramping up enforcement on non-compliant traffic in November 2025, and that non-compliant messages "might be rejected or delivered to recipients' spam folders." Meeting the rules is a minimum. Google does not say it guarantees inbox placement.

Yahoo's rules, enforced from February 2024 with a gradual rollout, follow the same pattern. All senders must implement SPF or DKIM at a minimum and keep spam complaints below 0.3%. They also need valid forward and reverse DNS. Bulk senders must have both SPF and DKIM, a passing DMARC policy of p=none or stronger, and one-click unsubscribe, and must honour unsubscribes within 2 days. Yahoo's page gives no numeric threshold for a bulk sender.

Microsoft followed in 2025 for Outlook.com consumer mail. Its announcement, posted on 2 April 2025, covered domains sending more than 5,000 emails per day: SPF and DKIM must pass, and DMARC with at least p=none must align. The change took effect after 5 May 2025, and non-compliant mail is junked or rejected. Microsoft's support page ties the rejection error 550 5.7.515 to senders of 5,000 or more messages to Microsoft consumer services from one domain in the RFC 5322 From: address.

Why is deliverability the hard part of self-hosted email in 2026?

Security-focused mail server software has existed since qmail in 1997 and Postfix in 1998. What a new server lacks is trust from receivers, and each period in this history added a check that the server must pass:

  1. Outbound port 25 must be open, which on some VPS providers means asking for it.
  2. The IP address must sit outside policy blocklists such as the PBL, which rules out home broadband for direct sending.
  3. Forward and reverse DNS must be valid and must match.
  4. SPF or DKIM must pass, and for any real volume both should pass with an aligned DMARC record.
  5. The IP address needs a sending reputation of its own.

The last point is the slowest. Gmail warns that "The activity of any senders using a shared IP address affects the reputation of all senders for that shared IP address", and it advises raising sending volume gradually. A fresh VPS address has no sending history, so a receiver has little to judge it by beyond the checks above. Installing the software does not change any of this.

The approach recommended in whether self-hosting email is still worth it in 2026 splits the job. Run inbound mail on your own server, where you control storage and filtering. Send outbound mail through an authenticated relay that already has a reputation. The history explains why: SMTP still accepts any sender claim, so receivers now trust a server only after its DNS records, its authentication and its reputation all agree.

FAQ

Who invented network email and the @ sign?

Ray Tomlinson at Bolt, Beranek and Newman (BBN) built the first network email application for the ARPANET by combining the SNDMSG and CPYNET programs. He chose the @ sign to separate the user from the host. Most sources date this to 1971, but the Computer History Museum's Internet History page gives 1972. Mail between users of a single computer existed before this, so Tomlinson's step was mail between machines.

When was SMTP created, and which RFC defines it now?

The first RFC titled Simple Mail Transfer Protocol was RFC 788, by Jon Postel, in November 1981. RFC 821 replaced it in August 1982 and assigned SMTP to TCP port 25. RFC 2821 later replaced RFC 821, and RFC 5321 (October 2008) replaced RFC 2821. RFC 5321 is the current base SMTP specification.

Why does mail from my new VPS go to spam even though SPF passes?

SPF only checks that the connecting host may send for the envelope domain. Receivers also look at reverse DNS, DKIM, DMARC alignment with the From: domain, blocklists and the reputation of your IP address. A new address has no sending history, and Gmail advises raising volume gradually. Gmail also states that non-compliant mail might be rejected or sent to spam, and meeting its rules is not a promise of inbox placement.

Is RFC 7489 still the DMARC standard?

No. RFC 7489 (March 2015) was an Informational, Independent Submission and was never an IETF standard. It is now obsoleted by RFC 9989, 9990 and 9991. RFC 9989, published in May 2026, is the current DMARC specification and a Proposed Standard. It removes the pct tag and replaces Public Suffix List lookup with a DNS Tree Walk.

Do the Gmail sender rules apply to a small self-hosted mail server?

Yes, the baseline rules apply to every sender that mails personal Gmail accounts, whatever the volume. Since 1 February 2024 each sender needs SPF or DKIM, valid forward and reverse DNS, TLS, a spam rate below 0.3% and correctly formatted messages. The stricter rules, which add DMARC and one-click unsubscribe, apply to senders of about 5,000 or more messages a day.

Was this article useful?