Back to Field Notes
Backend & Systems•April 14, 2025•5 min read

Architecting a 28KB Disposable Email Platform: DNS MX Routing & Real-Time Ingress

Building temp.subsdrop.com with zero runtime bloat, catchmail.io DNS MX configuration, and non-blocking background mailbox synchronization.

By Abdullah Al Mamun • Systems Architect & Founder
Title card for the TempMail architecture article — a 28KB disposable email platform with DNS MX routing and real-time ingress

A technical walkthrough of our open-source disposable email utility (temp.subsdrop.com) engineered with zero framework overhead, custom domain MX record routing, and non-blocking polling.

Table of Contents (3 sections)▼

1. Zero Framework Bloat (<28KB Production Bundle)

Most modern web utilities are burdened with heavy JavaScript bundles that delay initial page load. For temp.subsdrop.com, we engineered a blazing fast utility using Vite 8 with pure Vanilla JavaScript.

The complete bundled JavaScript payload is under 28KB gzip, allowing the mailbox interface to render instantly on low-bandwidth mobile connections across South Asia.

2. DNS MX Configuration & Ingress

To allow custom user-defined domains to receive incoming emails, our ingress service routes mail via programmatic DNS MX records pointing to smtp.catchmail.io (Priority 10).

A non-blocking client-side polling engine checks for incoming verification emails every 5 seconds with automatic 429 rate-limit backoff.

Production Implementation

Review the verified telemetry in the TempMail Ingress Architecture Case Study.

Frequently Asked Questions

How does a disposable email service work?
A disposable email service creates temporary inboxes by configuring DNS MX records to route incoming mail to a catch-all SMTP server. Users receive a random email address, and a polling mechanism checks for new messages every few seconds. Emails are automatically deleted after a set period, protecting user privacy.
Why is a 28KB bundle size important for web apps?
A sub-30KB JavaScript bundle ensures the application loads instantly even on 2G/3G mobile connections common in South Asia. By using Vanilla JavaScript instead of React or Vue frameworks, the disposable email interface renders in under 95ms on cold load, providing a native-app-like experience without runtime overhead.
Tags:#DNS MX#Vanilla JS#Vite 8#Open Source#TempMail#Fast Web
Abdullah Al Mamun

Systems Architect & Founder of SubsDrop, QuickMation, and MoneTrix.

Discuss Systems