Summary

  • RFC 3923 (October 2004) protected a CPIM message object with S/MIME and carried it inside an XMPP <e2e/> element whose namespace supplied no message semantics of its own.
  • An XMPP-CPIM gateway could strip one service's wrapper and bolt on another's, but the signed or encrypted object inside had to pass through unchanged.

The one edit a gateway was allowed to make

A translator is a useful thing to have around and a dangerous thing to trust. In October 2004, the people wiring Jabber — the open messaging protocol the IETF would soon standardise as XMPP — met that problem in its most literal form: if a gateway is going to repackage your message on the way to another service, what exactly is left of your signature when it arrives at the far end?

RFC 3923, a Standards Track specification edited by Joe Hildebrand, answered with a rule small enough to fit on a sticky note. The gateway may change the envelope. It may never touch the letter. An XMPP-CPIM gateway could take off one service's wrapper and put on another's; it could not alter the signed or encrypted S/MIME object inside.

That single distinction made end-to-end protection compatible, at least at the protocol boundary, with an intermediary that understood both services. RFC 3923 did not promote the gateway to cryptographic endpoint. It told the gateway to carry the protected object as an opaque payload and keep its hands off. Interoperability work and the work of signing, encrypting, and interpreting content were thereby separated — a division of labour that sounds obvious until you notice how rarely anyone honours it.

A protected object inside an XMPP stanza

The sender first builds a Message/CPIM object. That object holds the message headers as well as its content, and RFC 3923 requires both to be covered by the S/MIME signature or encryption operation. The finished object is then placed in an XML CDATA section inside an <e2e/> child of an XMPP message or presence stanza. For some uses, the enclosed object may instead be a PIDF presence document or an XMPP XML object.

The <e2e/> element is a carrier, not an interpreter. RFC 3923 states plainly that its namespace has no inherent semantics: the format-specific standards for CPIM, PIDF, or XMPP define what is inside. The payoff is that an intermediary never has to understand protected content merely because it can parse the stanza hauling it along.

The gateway rule falls straight out of that division. For traffic leaving XMPP, the gateway removes the XMPP wrapper — including the <e2e> tags — to reveal and route the multipart S/MIME object, adding the non-XMPP service's wrapper if needed. In the reverse direction, it removes any non-XMPP wrapper, places the same object inside an XMPP wrapper, and routes the stanza. RFC 3923 is explicit that the wrapped S/MIME object must be immutable and must not be modified by the gateway.

A boundary, not a complete security system

Immutability is a strong protocol instruction. It is not proof that a deployed gateway obeyed it, and the wrapper does not make every surrounding fact trustworthy. The recipient still needs certificates, still has to validate them, and still has to decide what a signature actually establishes about the sender. RFC 3923 leaves certificate enrollment outside its scope and calls for a certificate-retrieval mechanism at the receiving agent. Its security claim is therefore narrow and honest: a protected object survives a particular interoperability path. Identity, key distribution, and user-interface problems remain somebody else's homework.

The specification also leaves an operational trade-off in plain view. Opaque transport helps an intermediary carry content it cannot safely rewrite, and it caps that intermediary's ability to transform or inspect the same content. If a service needs conversion, the conversion point and its effect on signatures become consequential, because changing a covered object is not neutral translation — it is authorship. The design pushes that decision out to the endpoints instead of disguising it as routine gateway housekeeping.

RFC 7165, written a decade later, recorded that the S/MIME approach had failed to gain widespread deployment, citing key-management challenges and the difficulty of processing S/MIME objects. That is a 2014 standards document's own account, not a present-day deployment census and not a single-cause verdict. It sharpens the historical lesson anyway: a clean boundary can preserve cryptographic meaning while leaving the surrounding product and key-management work genuinely hard.

RFC 3923's lasting move was never that gateways became trustworthy. It was that interoperability did not require them to rewrite what the endpoints had already protected. The industry has been rediscovering that distinction ever since, usually the hard way.

Sources