Messaging Fundamentals Series

✉️ Understanding How S/MIME Works From a Top 1% Perspective — STARTTLS Encrypts the "Path," S/MIME Encrypts the "Body": a Difference in What Each One Actually Protects

Introduction

This article is part of the Top 1% Series Complete Article Guide, and article 6.1 in the Mail Infrastructure Series.

Prerequisite Knowledge

Getting the Big Picture

STARTTLS encrypts the communication path between mail servers. But that’s encrypting the “path,” not the “body.” Even when STARTTLS works perfectly, a relaying mail server can read the body, already decrypted by the time it arrives there, in plain sight. This isn’t a defect — it’s because STARTTLS was only ever designed as a server-to-server (hop-by-hop) mechanism, meant solely to protect server-to-server communication from eavesdropping. S/MIME is an end-to-end mechanism that uses the sender’s private key and the recipient’s public key to encrypt the email body itself. The body stays protected, readable only by the intended recipient, no matter which servers it passes through.

graph LR
    Sender["Sender"] -->|"STARTTLS: encrypts the path"| Server1["Sending server"]
    Server1 -->|"STARTTLS: encrypts the path"| Server2["Receiving server"]
    Server2 -->|"STARTTLS: encrypts the path"| Recipient["Recipient"]
    Sender -.->|"S/MIME: encrypts the body (signed with the sender's private key, encrypted with the recipient's public key)"| Recipient

Deep Dive Into the Fundamentals

STARTTLS Uses a “Server Certificate,” S/MIME Uses an “Email Certificate”

STARTTLS uses a server certificate, proving the identity of the server you’re communicating with. It’s the same kind of certificate used for HTTPS. S/MIME uses an email certificate (a personal digital certificate) tied to a specific email address. This certificate is issued by a certificate authority (CA); the sender uses the private key matching this certificate to digitally sign the email, and the recipient becomes able to receive encrypted email by handing a certificate containing their own public key to the sender ahead of time.

S/MIME Protects What STARTTLS Can’t

Even when STARTTLS works perfectly, the operator of a relaying mail server — your own organization’s mail admin, or a cloud email provider — can read the decrypted body in plain sight. That’s because STARTTLS’s encryption was only ever meant to protect against an eavesdropper on the communication path itself. An email encrypted with S/MIME can’t be read by anyone but the intended recipient, because the relaying server never holds the key needed to decrypt the body.

There's Something Neither STARTTLS Nor S/MIME Can Protect

Even in an email encrypted with S/MIME, some header information — such as the Subject line — stays outside the scope of encryption and gets sent as plaintext. Protecting that part is the role of STARTTLS’s whole-path encryption. In other words, S/MIME, protecting the body’s content, and STARTTLS, protecting the entire communication path including the subject, aren’t mutually exclusive choices — combining them covers the range each one can’t cover on its own. Also keep in mind a separate real-world weakness: most STARTTLS implementations don’t correctly validate the server certificate, leaving a downgrade-attack risk.

What a Pro Sees Here (Top 1% Understanding)

Always Check Which Layer “This Email Is Encrypted” Actually Refers To

When you hear “this email is encrypted, so it’s safe” in real-world practice, whether that refers to STARTTLS’s path encryption or S/MIME’s body encryption means something entirely different. The former never protects the body at all from a relaying mail server’s operator. The latter protects the body even from a relaying mail server’s operator, but doesn’t protect some headers, like the subject. Rather than feeling reassured by the word “encrypted” alone, making it a habit to always ask concretely “protected from whom, and protecting what” is a real-world defense for accurately following a conversation in this field.

Common Misconceptions and Pitfalls

Troubleshooting Perspective

  1. The recipient can’t decrypt an S/MIME-encrypted email: Check whether the sender received a certificate containing the recipient’s public key ahead of time.
  2. You’re encrypting with S/MIME, but the content is still guessable from the subject line: Since the subject is outside S/MIME’s scope of encryption, make sure your practice never puts sensitive information in the subject.
  3. STARTTLS is enabled, but a risk of eavesdropping on the content still remains: Check whether server certificate validation is being performed correctly, and whether countermeasures against downgrade attacks are in place.

Summary

Takeaways to Apply Today

  1. When you hear “this email is encrypted,” make it a habit to check which layer it’s actually referring to.
  2. When sending a genuinely sensitive email, avoid putting anything in the subject line that lets the content be guessed.

References

Comments

Feel free to leave thoughts, questions, or corrections below (sign in with a GitHub account to comment or react).