Free trial The cheapest email marketing platform: try Moosend free for 30 days, no credit card. Don't miss your seat. The cheapest email marketing platform Start free trial →
BLACK FRIDAY 2026ONE-TIME OFFER Lifetime deal. Pay once. Credits refilled every year, for life. From $99. ENDS IN   Claim yours →

RFC 5751: Secure/Multipurpose Internet Mail Extensions (S/MIME) Version 3.2

RFC 5751 defined S/MIME 3.2. What it required, exactly what RFC 8551 (S/MIME 4.0) changed, why EFAIL made CBC encryption unsafe, and the S/MIME certificate rules since 2023.

Alaa Touil
Email infrastructure specialist, 8+ years in SMTP and deliverability
9 min read Updated Nov 9, 2026 173 views
RFC 5751 Secure/Multipurpose Internet Mail Extensions (S/MIME) Version 3.2 - SMTPedia reference
⚠ Obsoleted by RFC 8551 (S/MIME version 4.0). New implementations should reference RFC 8551.
RFC 5751
Secure/Multipurpose Internet Mail Extensions (S/MIME) Version 3.2

Obsoleted

Domain
Security / S/MIME
Published
January 2010
Obsoletes
RFC 3851
SMTP relevance
Medium

↗ Read on rfc-editor.org

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.

Quick Reference

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

AspectDetail
PurposeEnd-to-end email encryption and digital signatures
VersionS/MIME 3.2
Trust modelX.509 PKI (certificate authorities)
FormatCMS (RFC 5652), wrapped as application/pkcs7-mime or multipart/signed
Superseded byRFC 8551 (S/MIME 4.0, April 2019)
PublishedJanuary 2010
Alternative toPGP/OpenPGP (web-of-trust model)

S/MIME operations

OperationContent-TypeWhat it provides
Sign (opaque)application/pkcs7-mime; smime-type=signed-dataSignature; body wrapped in signed CMS envelope
Sign (clear)multipart/signed with application/pkcs7-signature partSignature separate from readable body
Encryptapplication/pkcs7-mime; smime-type=enveloped-dataConfidentiality; body encrypted to recipient’s certificate
Sign then encryptenveloped(signed) nested CMSConfidentiality + integrity + authentication
Encrypt then signsigned(enveloped) nested CMSLess 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”.

AspectS/MIME 3.2 (RFC 5751)S/MIME 4.0 (RFC 8551)
DigestMUST SHA-256; SHA-1 and MD5 at SHOULD-MUST SHA-256 and SHA-512; SHA-1 marked historic
SignaturesMUST 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 encryptionMUST RSA; RSAES-OAEP at SHOULD+MUST ECDH ephemeral-static (P-256 and X25519); RSA drops to MUST-; RSAES-OAEP still SHOULD+
Content encryptionMUST 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 structureEnvelopedData only (encryption without built-in integrity)Adds AuthEnvelopedData and the authEnveloped-data smime-type for authenticated encryption
Old mailNo guidanceAppendix B explains how to handle historic messages that use retired algorithms

S/MIME vs PGP/OpenPGP

AspectS/MIMEPGP/OpenPGP
Trust modelPKI: certificates issued by trusted CAsWeb of trust: users sign each other’s keys
Client supportWidely built into corporate mail clients (Outlook, Apple Mail); nativeAdd-on required for most clients (Mailvelope, GPG Suite); Thunderbird has built-in OpenPGP since version 78
DeploymentEnterprise, government, regulated industriesIndividual privacy-conscious users, journalism, activism
Key acquisitionEnterprise directory, LDAP, business card exchangeKeyserver upload, in-person verification
Message formatCMS-based (application/pkcs7-mime, multipart/signed)OpenPGP (multipart/encrypted, multipart/signed with application/pgp-signature)
InteroperabilityRequires trusted CA in receiver’s trust storeRequires sender’s public key in receiver’s keyring

Common S/MIME mistakes

Signing with SHA-1. RFC 5751 already put SHA-1 at SHOULD- and RFC 8551 marks it historic. SHA-1 collisions are practical, and many clients now warn on or refuse SHA-1 signatures. Sign with SHA-256 or SHA-512, the two digests RFC 8551 makes mandatory.
Encrypting with CBC when the peer supports GCM. The CBC mode used by S/MIME 3.2 has no built-in integrity, which is exactly what the EFAIL attacks of 2018 exploited (see below). RFC 8551 makes AES-GCM inside AuthEnvelopedData mandatory. Prefer it whenever the recipient’s client advertises support, and keep AES-128 CBC only for older recipients.
Encrypting without signing. Encryption alone provides confidentiality but not integrity: an attacker can send you a mangled ciphertext that decrypts to garbage. Sign-then-encrypt (or encrypt-then-sign, less common) provides both. Most S/MIME implementations sign and encrypt when both certificates are available.
Not verifying certificate chain. S/MIME depends on X.509 chain validation. An attacker can present any certificate; the receiver must verify the chain against trusted roots. Clients that display “signature valid” without proper chain validation are misleading users.
Ignoring certificate revocation. A revoked certificate should not produce valid signatures. Clients must check CRL (Certificate Revocation List) or OCSP (Online Certificate Status Protocol) to detect revocation. Implementations that skip revocation checking miss compromised certificates in use.

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.

VariantHow it worksWhat fixes it
Direct exfiltrationThe 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 serverClients that do not mix decrypted parts with other MIME parts, and that block remote content by default
CBC gadget attackBecause CBC has no integrity check, blocks of ciphertext can be rearranged to inject attacker-chosen HTML into the decrypted textAuthenticated 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.

S/MIME family RFCs

  • 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
Related standards

  • RFC 2045 to RFC 2049: MIME (S/MIME extends MIME)
  • RFC 1847: Security Multiparts (multipart/signed, multipart/encrypted structure)
  • OpenPGP (RFC 9580, which replaced RFC 4880 in 2024) (alternative security model)
SMTPedia companion guides

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 coffee

See SMTPedia first on Google

Add us as a preferred source in Top Stories.

Add as preferred source

About the Author

Alaa - SMTPedia 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.