How an Email Actually Travels From Sender to Inbox

By the MailboxTemp Editorial Team · Published · Updated

An email travels from sender to inbox in a series of hops: your mail client hands the message to an outgoing SMTP server, which looks up the recipient domain's MX records, connects to the receiving server, and passes the message through spam and virus filters before it lands in a mailbox that IMAP or a web interface can read. Most of this happens in seconds, which is why a disposable inbox can show a verification code almost instantly after you request it.

The cast of characters: clients, servers and protocols

Before tracing the path, it helps to know who does what. An email journey involves four main players:

Two protocols tie these together: SMTP (Simple Mail Transfer Protocol) for sending and relaying, and IMAP or POP3 for retrieving. Webmail hides both behind a browser, but the same machinery runs underneath.

How does an email actually get from sender to inbox?

Here is the sequence in the order it happens. Each step is a place where delays or failures can creep in.

  1. Composition and submission. You write a message and press Send. Your client connects to the MSA over SMTP, usually with TLS encryption, and authenticates. The MSA checks that you are allowed to send from that address and may apply rate limits or content policies.
  2. DNS lookup for the recipient domain. The MSA extracts the domain from the recipient address (the part after the @) and queries DNS for its MX records (Mail Exchanger records). These records list the hostnames of servers willing to accept mail for that domain, in priority order. If no MX records exist, the sender may fall back to the domain's A or AAAA record, but that is a legacy behaviour and many servers now refuse it.
  3. Connection to the receiving MTA. The sending server opens an SMTP connection to the highest-priority MX host. It introduces itself with EHLO, negotiates TLS, and announces the sender and recipient addresses. The receiving server can reject the message at this stage — for example, if the recipient does not exist or the sender's IP is on a blocklist.
  4. Relaying between MTAs. Large providers often have several internal relays. A message from a small sender to a big mailbox provider might pass through two or three MTAs before reaching the final destination. Each one adds a Received: header, which is why email headers can be read like a flight log.
  5. Filtering and policy checks. The receiving organisation runs spam filters, virus scanners, authentication checks (SPF, DKIM and DMARC) and possibly content rules. A message can be accepted, quarantined, tagged as spam, or rejected outright.
  6. Delivery to the mailbox. The MDA writes the message into the recipient's mail store. For a temporary inbox, this store is typically a database row or a short-lived queue with an expiry timestamp attached.
  7. Retrieval. The recipient's client fetches the message via IMAP, POP3 or a web API. In a webmail or temp-mail interface, the page polls or uses a push channel to show new mail.

Where do delays, bounces and filtering happen?

Most email arrives quickly, but the path has several natural bottlenecks. Knowing them helps you diagnose a missing verification code instead of guessing.

Delays

Bounces

A bounce is a delivery failure report. It can be immediate (a synchronous SMTP rejection) or asynchronous (a non-delivery report generated later). Common causes include a non-existent recipient, a full mailbox, a policy rejection, or a sending IP with a poor reputation. The SMTP status code in the bounce — 5xx for permanent failure, 4xx for temporary — tells you whether retrying is worthwhile. If you are debugging a signup flow, our guide to verification email not arriving walks through the checks in order.

Filtering

Filtering can happen at several points: on the sending side (outbound spam checks), on the receiving MTA (connection-level blocklists, SPF/DKIM/DMARC evaluation), and in the mailbox (user rules, spam folder sorting). Authentication results are recorded in the Authentication-Results header, which is one reason reading email headers is useful when a message goes missing.

Why does a temp inbox receive mail in seconds?

A disposable email service is, from the network's point of view, just another mail domain. It publishes MX records, runs an SMTP server, and accepts messages for addresses in its domain. The difference is what happens after acceptance: instead of storing mail in a long-lived personal mailbox, it writes the message to a short-lived store keyed by the random address and makes it visible through a web interface or API.

Because the receiving server is purpose-built for this, there is often no greylisting, no complex user-level filtering, and no IMAP round trip. The message is accepted and displayed almost immediately. That is why one-time codes usually appear within seconds — the delay you see is more likely to be at the sender's end (their queue or their own verification pipeline) than in the temp-mail service itself. If a code does not appear, our article on temp mail not receiving emails covers the usual causes.

MailboxTemp follows this model: an inbox lives for 60 minutes by default, can be extended in 10-minute steps, and Pro inboxes last 24 hours. Addresses are random and receive-only, and one-time codes are detected automatically. The service exposes a public JSON API at /docs/ for developers who want to automate checks.

What does each protocol actually do?

It is easy to blur SMTP, IMAP and POP3 together. Here is a quick reference.

ProtocolPurposeTypical portWho uses it
SMTPSending and relaying mail between servers25 (relay), 587 (submission), 465 (implicit TLS)Mail clients, MTAs, MSAs
IMAPReading and synchronising mail on the server143 (STARTTLS), 993 (TLS)Mail clients, webmail backends
POP3Downloading mail to a single device110 (STARTTLS), 995 (TLS)Older clients, simple setups

Webmail and temporary inboxes often skip IMAP entirely and use an HTTP API to fetch messages. The underlying SMTP path is the same; only the retrieval step differs.

How can I trace a message myself?

If you need to know where a message went, the headers are the place to look. Every server that handles the message prepends a Received: header. Reading them from bottom to top gives you the path the message took, with timestamps and server names. Our guide to reading email headers explains the fields in detail. For developers testing signup flows, the same technique helps confirm whether a message left your application and where it stopped.

Two related topics are worth knowing. First, authentication records — SPF, DKIM and DMARC — are checked during the SMTP conversation and influence filtering; our plain-English explainer on SPF, DKIM and DMARC covers them. Second, the difference between a temporary address and an alias matters when you are choosing where mail should land; see email aliases vs disposable email.

Sources

In short

An email's journey is a chain of SMTP handoffs guided by MX records, with filtering and policy checks at each hop. Delays usually come from greylisting, queues or DNS; bounces carry status codes that tell you whether to retry; filtering happens on both sides of the connection. A temporary inbox receives mail quickly because it is a purpose-built receiving server with a short-lived store — the SMTP path is the same, but the retrieval step is simpler. If you want to see the whole thing in action, open a temporary address and watch a verification code arrive.

Frequently asked questions

How long does it take for an email to arrive?

Usually a few seconds, but it can take minutes if the sending server is queued, the receiving server uses greylisting, or DNS is slow. Delays beyond an hour often point to a temporary failure that will retry, or to a message that has been silently filtered.

What is an MX record and why does it matter?

An MX (Mail Exchanger) record is a DNS entry that tells sending servers which hostnames accept mail for a domain, in priority order. Without a correct MX record, mail cannot be routed to the right server, and the sender will usually bounce the message.

Why do some emails bounce while others are filtered silently?

A bounce means the receiving server rejected the message outright — for example, because the address does not exist or a policy was violated. Filtering happens after acceptance: the server takes the message but files it as spam or drops it, so the sender sees no bounce.

Does a temp inbox use a different email protocol?

No. A temp inbox receives mail over the same SMTP path as any other mailbox. The difference is on the retrieval side: instead of IMAP or POP3, it typically exposes messages through a web page or an HTTP API, and stores them for a limited time.

Can I trace where an email came from?

Yes, by reading the Received headers in the message source. Each server that handled the message adds one, so reading them from bottom to top shows the path. Our guide to reading email headers explains the fields and what to look for.

Get a free temporary inbox →