Obsoleted
What this RFC defines
RFC 5751 defines S/MIME version 3.2, the standard for signing and encrypting email messages using X.509 public key certificates. S/MIME provides end-to-end authentication via signatures and confidentiality via encryption at the message level, independent of the transport layer.
Where you see it in practice
Corporate email environments that require digitally signed emails for compliance or legal purposes use S/MIME as defined by RFC 5751. When a bank or financial institution sends you a signed email that shows the sender’s verified identity in your email client, it is using an S/MIME certificate following this RFC. S/MIME requires both sender and recipient to have X.509 certificates, which limits its adoption outside enterprise environments.
S/MIME version 3.2
RFC 5751 defined S/MIME (Secure/Multipurpose Internet Mail Extensions) version 3.2 in January 2010, providing message-level signing and encryption using X.509 certificates. Unlike TLS, which encrypts the transport hop-by-hop, S/MIME encrypts the message itself, so the content remains protected at rest and across intermediaries. S/MIME uses CMS (Cryptographic Message Syntax, RFC 5652) for the underlying signature and encryption format, wrapped in MIME parts of type multipart/signed and application/pkcs7-mime.
Deployment reality
S/MIME sees significant use in enterprise environments where a central authority manages certificates for all users. Microsoft Outlook has built-in S/MIME support; enterprise Exchange deployments frequently use it. Consumer adoption is negligible because obtaining a personal S/MIME certificate requires manual enrollment, and mobile mail clients have inconsistent support. PGP, via OpenPGP (RFC 9580, which replaced RFC 4880 in 2024), is the alternative message-level encryption format, more common in technical and privacy-focused communities.
Superseded by RFC 8551
RFC 5751 was obsoleted by RFC 8551 in April 2019, which defined S/MIME 4.0. The updated version added modern algorithms (AES-GCM, ChaCha20-Poly1305, ECDSA and EdDSA signatures, ECDH key agreement), introduced authenticated encryption through AuthEnvelopedData, and marked SHA-1, DSA and Triple-DES as historic. If your application uses S/MIME 3.2, upgrading to 4.0 is recommended for improved cryptographic hygiene. The wire format changes are minor; the security improvements are significant.
RFC 5751 (January 2010) defines S/MIME (Secure/Multipurpose Internet Mail Extensions) version 3.2: end-to-end email encryption and signing using X.509 certificates and CMS (Cryptographic Message Syntax). Provides confidentiality (encrypt to recipient’s public key), integrity (digital signatures), authentication (identity via certificate), and non-repudiation. Obsoleted by RFC 8551 (S/MIME 4.0) in April 2019. Reference RFC 8551 for current specification. Widely deployed in enterprise, government, and regulated industries (healthcare, finance, defense).
RFC 5751 at a glance
| Aspect | Detail |
|---|---|
| Purpose | End-to-end email encryption and digital signatures |
| Version | S/MIME 3.2 |
| Trust model | X.509 PKI (certificate authorities) |
| Format | CMS (RFC 5652), wrapped as application/pkcs7-mime or multipart/signed |
| Superseded by | RFC 8551 (S/MIME 4.0, April 2019) |
| Published | January 2010 |
| Alternative to | PGP/OpenPGP (web-of-trust model) |
S/MIME operations
| Operation | Content-Type | What it provides |
|---|---|---|
| Sign (opaque) | application/pkcs7-mime; smime-type=signed-data | Signature; body wrapped in signed CMS envelope |
| Sign (clear) | multipart/signed with application/pkcs7-signature part | Signature separate from readable body |
| Encrypt | application/pkcs7-mime; smime-type=enveloped-data | Confidentiality; body encrypted to recipient’s certificate |
| Sign then encrypt | enveloped(signed) nested CMS | Confidentiality + integrity + authentication |
| Encrypt then sign | signed(enveloped) nested CMS | Less common; useful for gateway signing over encrypted content |
Changes from RFC 5751 (S/MIME 3.2) to RFC 8551 (S/MIME 4.0)
The requirement levels below come from section 2 of each RFC. MUST- means “required today, expected to be downgraded later”; SHOULD+ means “recommended today, expected to become required”.
| Aspect | S/MIME 3.2 (RFC 5751) | S/MIME 4.0 (RFC 8551) |
|---|---|---|
| Digest | MUST SHA-256; SHA-1 and MD5 at SHOULD- | MUST SHA-256 and SHA-512; SHA-1 marked historic |
| Signatures | MUST RSA with SHA-256; RSASSA-PSS at SHOULD+; DSA at SHOULD- | MUST ECDSA P-256 and EdDSA (Ed25519) on receive, at least one on send; RSA PKCS#1 v1.5 drops to MUST-; RSASSA-PSS at SHOULD; DSA historic |
| Key encryption | MUST RSA; RSAES-OAEP at SHOULD+ | MUST ECDH ephemeral-static (P-256 and X25519); RSA drops to MUST-; RSAES-OAEP still SHOULD+ |
| Content encryption | MUST AES-128 CBC; AES-192 and AES-256 CBC at SHOULD+; Triple-DES at SHOULD- | MUST AES-128 GCM and AES-256 GCM; AES-128 CBC drops to MUST-; ChaCha20-Poly1305 at SHOULD+; Triple-DES historic |
| Message structure | EnvelopedData only (encryption without built-in integrity) | Adds AuthEnvelopedData and the authEnveloped-data smime-type for authenticated encryption |
| Old mail | No guidance | Appendix B explains how to handle historic messages that use retired algorithms |
S/MIME vs PGP/OpenPGP
| Aspect | S/MIME | PGP/OpenPGP |
|---|---|---|
| Trust model | PKI: certificates issued by trusted CAs | Web of trust: users sign each other’s keys |
| Client support | Widely built into corporate mail clients (Outlook, Apple Mail); native | Add-on required for most clients (Mailvelope, GPG Suite); Thunderbird has built-in OpenPGP since version 78 |
| Deployment | Enterprise, government, regulated industries | Individual privacy-conscious users, journalism, activism |
| Key acquisition | Enterprise directory, LDAP, business card exchange | Keyserver upload, in-person verification |
| Message format | CMS-based (application/pkcs7-mime, multipart/signed) | OpenPGP (multipart/encrypted, multipart/signed with application/pgp-signature) |
| Interoperability | Requires trusted CA in receiver’s trust store | Requires sender’s public key in receiver’s keyring |
Common S/MIME mistakes
EFAIL: why S/MIME 3.2 encryption is not enough
In May 2018 a team of academic researchers published EFAIL, a set of attacks on encrypted email that hit both S/MIME and OpenPGP. The attacker needs a copy of an encrypted message (from a compromised mailbox, a backup or a network capture) and sends it back to the victim in a modified form.
| Variant | How it works | What fixes it |
|---|---|---|
| Direct exfiltration | The ciphertext is wrapped between HTML parts so that, once the client decrypts it, the plaintext ends up inside an image URL that is loaded from the attacker’s server | Clients that do not mix decrypted parts with other MIME parts, and that block remote content by default |
| CBC gadget attack | Because CBC has no integrity check, blocks of ciphertext can be rearranged to inject attacker-chosen HTML into the decrypted text | Authenticated encryption: AES-GCM in AuthEnvelopedData, which is what RFC 8551 made mandatory |
This is the practical reason to move from RFC 5751 to RFC 8551: a 3.2 client encrypting with AES-CBC is exposed to the gadget variant by design, whatever the key length.
S/MIME certificates since 2023
Since September 1, 2023, certificate authorities that issue publicly trusted S/MIME certificates must follow the CA/Browser Forum S/MIME Baseline Requirements. They define validation types (mailbox-validated, organization-validated, sponsor-validated and individual-validated), so the certificate states how much the CA checked: just control of the address, or also the organization or the person behind it. When you buy or deploy S/MIME certificates, the validation type matters more than the brand: a mailbox-validated certificate proves only that the signer controls the address, not who they are.
Related standards and further reading
- RFC 8551: S/MIME 4.0 (current standard, obsoletes RFC 5751)
- RFC 8550: S/MIME 4.0 certificate handling
- RFC 5652: CMS (Cryptographic Message Syntax, foundational)
- RFC 5750: S/MIME 3.2 certificate handling (obsoleted by RFC 8550)
- RFC 3369: CMS predecessor
- SSL/TLS Email Setup Guide: transport encryption vs S/MIME end-to-end
Frequently asked questions
Should I use S/MIME or wait for RFC 8551 S/MIME 4.0?
Deploy RFC 8551 (S/MIME 4.0) for new implementations. It supersedes RFC 5751 with modern crypto (SHA-256 and SHA-512, ECDSA and EdDSA signatures, ECDH key agreement, AES-GCM authenticated encryption). RFC 5751 remains functional but uses aging cryptographic primitives. If your application uses S/MIME 3.2, upgrading to 4.0 is straightforward: wire format is nearly identical.
What is the difference between opaque and clear signing?
Opaque signing (application/pkcs7-mime; smime-type=signed-data) wraps the entire message in a signed CMS envelope; recipients without S/MIME capability see an unreadable attachment. Clear signing (multipart/signed with a separate signature part) keeps the readable body accessible; recipients without S/MIME see the body but not verify the signature. Prefer clear signing for wider readability, opaque for strict envelope preservation.
How does S/MIME compare to TLS transport encryption?
Different scope. TLS (RFC 3207) encrypts hop-by-hop transit; intermediaries see plaintext. S/MIME encrypts end-to-end from sender’s client to recipient’s client; intermediaries never see plaintext. TLS is universal; S/MIME requires certificates on both ends. Complementary: TLS for baseline transport security, S/MIME when end-to-end confidentiality is required (regulated data, legal privilege, sensitive personal information).
Do web-based mail services support S/MIME?
Enterprise offerings (Microsoft 365 Enterprise, Google Workspace with S/MIME setup) yes. Consumer webmail (Gmail personal, Yahoo, Outlook.com personal) generally no; end-to-end encryption from a webmail interface requires client-side crypto that consumer services do not typically provide. Users needing S/MIME on personal mail typically use desktop or mobile clients (Apple Mail, Outlook, Thunderbird, which supports S/MIME natively).
What replaces S/MIME 3.2 for regulated industries?
S/MIME 4.0 (RFC 8551) is the natural upgrade path with modern crypto. Some regulated environments have specific certificate authority requirements (government-issued CAs, DoD PKI). The 4.0 upgrade is generally straightforward, with wire compatibility preserved for message format while cryptographic primitives are strengthened. Consult regulatory guidance for your industry for specific requirements.
Did this guide save you time?
SMTPedia is free and independent. A coffee helps keep every guide accurate.
Buy SMTPedia a coffeeAbout the Author

Alaa · LinkedIn
Email infrastructure specialist with 8+ years of hands-on experience in SMTP, deliverability, and email verification. I’ve configured and troubleshot mail systems across Postfix, Exchange, and cloud relays, managed IP reputation and warmup campaigns, and built verification pipelines processing millions of addresses. My work spans DNS authentication (SPF, DKIM, DMARC, BIMI), bounce handling, blocklist monitoring, and compliance frameworks including CAN-SPAM and GDPR. I write every article on SMTPedia to give email professionals, developers, and marketers the accurate, RFC-grounded reference they need.
About SMTPedia
SMTPedia is an independent email industry reference covering SMTP, IMAP, POP3, email deliverability, marketing platforms, DNS authentication, and email verification. Every article is researched from official provider documentation, IETF RFCs, and industry best practices. Settings and configurations are verified quarterly.
We are cited as a source by ChatGPT, Microsoft Copilot, and thousands of email professionals worldwide. Learn more about our editorial process.