How Temp Mail Works: MX Records, Catch-All Inboxes and Expiry
How does temp mail work? A plain walk through MX records, SMTP delivery, catch-all inboxes and automatic expiry, and what each part means for your privacy.

Temp mail works because email delivery has never required a mailbox to be set up in advance. A domain publishes a record saying “send my mail to this server”, the server is configured to accept mail for any name at that domain, and a small program files each message under the address it was sent to. The website then shows you that pile, and deletes it on a timer. That is the whole trick. No account is needed because the address exists the moment a message arrives for it.
The rest of this article goes through each step properly: what an MX record is, what two mail servers say to each other, what a catch-all is, how the message gets from raw text to something readable, and how expiry is enforced. If you only want the practical overview, our introduction to what temp mail is is shorter. This one is for people who like to know what the machine is doing.
The thirty-second version
- You open a temp mail page. It invents an address such as
nova42@tempmailplus.proand shows it to you. - You paste that address into a sign-up form.
- The website’s mail server looks up the MX record for
tempmailplus.proto find out where to deliver. - It connects to that server and hands over the message using SMTP.
- The receiving server accepts mail for every name at the domain (a catch-all), reads the recipient address, and stores the message against it.
- Your browser, which has been asking “anything new?” every few seconds, shows the message.
- When the lifetime runs out, the address and its messages are deleted.
Each of those steps is ordinary email. Nothing in the chain is a hack or a loophole, which is why temp mail has worked in more or less the same way for about two decades.
Step one: the MX record tells senders where to deliver
Every domain that receives email publishes one or more MX (“mail exchanger”) records in DNS. An MX record is a signpost. It does not hold mail; it names the server that does.
If you have a terminal handy you can look one up yourself:
$ dig +short MX example.org
10 mx1.mailhost.example.
20 mx2.mailhost.example.
Two things are in each line. The hostname is where mail should go. The number is a priority: senders try the lowest number first and fall back to the next if it does not answer. A domain with one MX record has one front door; a domain with several has spares.
Two details matter for temp mail specifically.
The record is public. Anyone can look up which servers handle mail for any domain. This is how blocklists identify disposable email services: not by guessing, but by noticing that a few hundred different domains all point at the same mail servers. Our piece on why websites block disposable emails covers that side.
The record says nothing about individual addresses. DNS knows about example.org. It has no idea whether alice@example.org exists. That question is only answered later, by the receiving server, and it is exactly the gap temp mail lives in.
Step two: the SMTP conversation
Once the sender knows which server to contact, it opens a connection and speaks SMTP, the Simple Mail Transfer Protocol. The current definition is RFC 5321, but the shape of the conversation has barely changed since the early 1980s. It is plain text and almost readable:
S: 220 mx1.mailhost.example ready
C: EHLO mail.shop.example
S: 250 mx1.mailhost.example
C: MAIL FROM:<no-reply@shop.example>
S: 250 OK
C: RCPT TO:<nova42@tempmailplus.pro>
S: 250 OK
C: DATA
S: 354 Go ahead
C: (headers, blank line, body)
C: .
S: 250 Message accepted
S is the receiving server, C is the sender. The interesting line is RCPT TO. That is the moment the sender names the recipient, and the moment the receiver decides whether to take the message. It can answer 250 (fine) or a 5xx code (no such user, go away).
A normal mail provider checks its user database here. If nobody has registered that name, the answer is 550 and the sender generates a bounce. A temp mail server makes a different decision, which is step three.
Notice also what is not in the conversation: there is no password and no proof that the sender is who they say they are. SMTP was designed for a small, trusting network. Authentication was bolted on later through separate checks, and it is the reason forged sender addresses are still possible. Temp mail does not make that better or worse; it simply inherits it.
Step three: the catch-all
A catch-all is a rule on the receiving side that says: accept mail for any local part at this domain. The “local part” is everything before the @. With a catch-all in place, anything@domain, x7q@domain and this.address.was.invented.ten.seconds.ago@domain are all deliverable.
This is the piece that removes the sign-up. There is nothing to register because the server is not consulting a list of registered names in the first place.
Services differ in how literally they apply it:
- Pure catch-all. Every message for every name is stored. You can make up an address in your head, give it out, and visit the site later to read what arrived. Simple, but it means the service stores mail for addresses nobody is watching, and anyone who types the same name sees the same messages.
- Catch-all at the door, list at the desk. The mail server accepts the connection for any name, but the program behind it checks whether someone actually created that address recently. If nobody did, or the address has expired, the message is refused. This is the approach we use at TempMail Plus. It keeps storage small and means an address that was never issued does not quietly collect mail.
From the outside both behave the same for the address you were given. The difference shows up in privacy and in what happens to mail for names nobody asked for.
Step four: from raw text to a readable message
What arrives over SMTP is a single block of text: headers, a blank line, then the body. Modern messages are wrapped in MIME, a format that lets one email carry several parts, typically a plain-text version, an HTML version, and sometimes attachments, each separated by a boundary string and often encoded in base64.
The receiving program has to take that apart. In rough order it will:
- Read the headers to get the sender, subject and date.
- Pick a body. If there is an HTML part, that is usually what people expect to see. If not, the plain-text part is used.
- Decide what to do with attachments. Storing arbitrary files from strangers is the riskiest thing a public mail service can do. TempMail Plus lists attachment names and sizes but does not keep the files.
- Extract anything useful. A verification code in the subject or first lines can be detected with pattern matching and shown with a copy button, so you do not have to open the message at all.
- Write one row to a database keyed by the recipient address.
Then comes display, which is where careless services cause trouble. An HTML email is a small web page written by a stranger. Shown naively, it could run scripts on the temp mail site itself or load remote images that report your IP address back to the sender. The safe pattern is to render each message inside an isolated frame with scripts switched off and to block remote images until the reader asks for them. If you want the detail on the image problem, see email tracking pixels explained.
How the page knows the inbox is yours
There are two designs, and the difference is larger than it sounds.
In the classic design the address is the key. The page asks the server “what has arrived for nova42?” and the server answers anyone who asks. It is convenient: you can open the same inbox on another device by typing the name. It is also a public noticeboard. Anyone who guesses or glimpses the address can read along, and on services where people choose short, obvious names, guessing is not hard.
In the keyed design, the server generates a random secret when the address is created and gives it to your browser once. Every later request has to present that secret. The server keeps only a hash of it, in the same way a well-built site stores a hash of your password rather than the password. Knowing the address gets an outsider nothing. The trade-off is that the inbox lives in the browser that created it; clear that browser’s storage and the inbox is gone for you too.
TempMail Plus uses the keyed design. For a longer comparison of what that does and does not protect, see is temp mail safe.
How new mail reaches the page
Nothing clever here. Your browser asks the server for new messages on a schedule, a technique called polling. A sensible implementation polls quickly at first, when you have just pasted the address somewhere and are waiting for a code, then slows down, and stops entirely when the tab is in the background. That keeps the page responsive without hammering the server on behalf of tabs nobody is looking at.
If a message seems slow, the delay is almost always on the sending side. Many senders queue outgoing mail and release it in batches, and some retry on a timer if the first attempt is deferred. A minute is normal. Five is not unusual for a busy marketing platform.
Expiry: what “self-destructing” means in practice
Each address is stored with an expiry time. Two mechanisms enforce it:
- At read time. Every request checks whether the address has passed its expiry. If it has, the server behaves as though the inbox does not exist, even if the rows have not been physically removed yet.
- At clean-up time. A scheduled job runs periodically and deletes expired addresses along with their messages.
The first makes expiry immediate from your point of view. The second makes it real on disk. Between them, an expired address is unreachable straight away and gone shortly after.
On TempMail Plus you choose a lifetime of 10 minutes, 1 hour or 24 hours, can extend it while it is still alive, and can delete the inbox yourself at any time. Messages are never kept longer than 24 hours. The short option is the same idea as classic 10 minute mail: the less time an address exists, the less there is to expose.
One consequence is worth stating plainly. After expiry, mail to that address is refused. A password-reset link sent next month goes nowhere. This is the feature, and it is also the reason not to use a temporary address for any account you would be upset to lose.
Why temp mail is receive-only
Receiving is cheap and low-risk. Sending is neither. A service that let anonymous visitors send email from its domain would be used for spam and phishing within hours, its domain would be blocklisted everywhere, and inbound delivery would suffer too. Sending also requires its own reputation management: authentication records, complaint handling, volume limits.
So almost every temp mail service, ours included, only receives. You can read a confirmation email and click the link in it. You cannot reply, and you cannot start a conversation.
What each part means for you
| Piece of the system | What it does | Practical consequence |
|---|---|---|
| MX record | Publicly names the mail server for a domain | Websites can recognise and block disposable domains |
| SMTP | Hands the message from sender to receiver | No encryption guarantee end to end; delivery can lag by a minute or more |
| Catch-all | Accepts any name at the domain | No registration needed |
| Inbox key | Proves the browser created the address | Others cannot read your inbox, but neither can you from a different browser |
| Sandboxed display | Shows HTML with scripts off and images blocked | Opening a message does not tip off the sender |
| Expiry | Deletes address and mail on a timer | Nothing lingers, and nothing can be recovered |
Quick answers
Does a temp mail address exist before I use it?
In the catch-all sense, yes: the domain will accept mail for any name. In the practical sense it depends on the service. Some store mail for any name whether or not anyone asked for it. Others, including ours, only accept mail for addresses that were actually issued and have not yet expired.
Can the temp mail service read my messages?
Yes. Standard email is readable by every server that handles it, and the receiving server has to read the message to show it to you. Encryption in transit protects the hop between servers, not the content at rest. Do not have anything confidential sent to a temporary inbox.
Why did my verification email not arrive?
Usually one of three things: the sender is slow, the website silently rejects disposable domains, or the address expired before the message was sent. Generating a fresh address and trying once more separates the first cause from the other two.
Could two people get the same address?
With random names and a number suffix the odds are tiny, and a properly built service refuses to issue a name that is currently live. On open services where you pick your own name, collisions are the normal case for common words, which is one more reason to prefer a random address.
- temp mail
- email basics
- privacy


