Skip to main workspace
· 5 min read

Why Disposable Email Needs Bearer Isolation and Raw MIME Purging

An architectural look at how InboxFlick V2 protects temporary inboxes with SHA-256 token hashing, raw RFC 5322 wiping, and zero-script iframes.

Many legacy disposable email sites expose any inbox to whoever types its local-part into a URL bar. That design turns every predictable address into a public bulletin board—leaking verification links and account reset codes.

InboxFlick V2 enforces strict possession-based isolation from SMTP edge to browser rendering.

Address Knowledge Never Grants Read Access

When POST /v1/mailboxes creates an inbox, it generates 32 bytes of cryptographic randomness encoded as a URL-safe Bearer token. The plaintext token is returned once in the creation response; PostgreSQL stores only its 32-byte SHA-256 digest (token_hash).

Ephemeral Raw MIME Processing

During SMTP ingestion, the raw RFC 5322 message is held only long enough for a background worker to extract text/plain and text/html parts, discard attachments, and sanitize markup with bluemonday. In the exact same database update that marks the message ready, raw_message is overwritten with empty bytes.

Defense-in-Depth HTML Sandboxing

Even after server-side HTML allowlist sanitization, the web client renders HTML bodies inside an isolated <iframe sandbox="allow-popups allow-popups-to-escape-sandbox" referrerpolicy="no-referrer">, ensuring scripts cannot execute and outbound links never leak your page URL.