Email

How Email Gets From Sender to Inbox

Follow an email from the send button to the recipient inbox, covering SMTP, DNS MX records, mail servers, IMAP and the checks that block spam.

On this page
  1. The Cast of Characters
  2. Step 1: You Send the Message
  3. Step 2: Finding the Recipient's Mail Server
  4. Step 3: Server to Server Transfer
  5. Step 4: Checks Against Spam and Forgery
  6. Step 5: Delivery to the Mailbox
  7. Step 6: The Recipient Reads It
  8. Why Messages Sometimes Go Wrong
  9. Security and Privacy Notes
  10. Frequently Asked Questions

You write a message, press Send, and a moment later it appears in someone else's inbox, maybe on another continent. It feels as direct as a text, but email actually passes through several systems, each following open standards that have worked together for decades.

Knowing the path makes problems easier to understand: why a message bounces, why it lands in spam, and why some emails arrive late. Here is the journey step by step.

The Cast of Characters

Email involves a few types of software.

  • Mail user agent (MUA): the app you read and write in, such as a desktop program, a phone app or a web interface.
  • Mail submission or transfer agent (MTA): a server that accepts messages and passes them along.
  • Mail delivery agent (MDA): the part that places a message into the recipient's mailbox.
  • Mailbox access servers: services that let the recipient's app read stored mail.

An email address has two sides separated by an at sign: the mailbox name on the left and the domain on the right. The domain tells the system where to deliver.

Step 1: You Send the Message

When you hit Send, your mail app connects to your provider's outgoing server and hands over the message using SMTP, the Simple Mail Transfer Protocol. This connection is normally protected with encryption and requires you to log in, so that strangers cannot send mail through your server.

The message consists of headers and a body. Headers hold the sender, recipients, subject, date and a unique identifier. As the message travels, servers add more headers recording each stop, which is why you can trace a message's path later.

Step 2: Finding the Recipient's Mail Server

Your provider's server looks at the domain in the recipient's address and asks DNS a question: which server accepts mail for this domain? The answer lives in MX records (mail exchanger records).

An MX record lists one or more servers, each with a priority number. The sending server tries the lowest number first and falls back to others if it is unavailable. This is a key reason email is resilient: if one server is down, mail can wait or go to a backup.

Step 3: Server to Server Transfer

Your server connects to the recipient's server and again uses SMTP. A brief conversation takes place:

  1. The servers greet each other.
  2. The sender states who the message is from.
  3. The sender names the recipient.
  4. The receiver confirms whether it will accept mail for that address.
  5. The message content is transferred.

If the recipient does not exist, the receiving server rejects it, and you get a bounce message. If the server is temporarily unavailable, the sending server keeps the message in a queue and retries over hours or days before giving up.

Sometimes there are several hops, such as a filtering service or a forwarding system, between the first server and the final one.

Step 4: Checks Against Spam and Forgery

Because SMTP was designed in a more trusting era, it does not prove that the sender is who they claim. Modern systems add checks based on DNS records published by the sending domain.

  • SPF lists which servers may send mail for the domain.
  • DKIM adds a digital signature to the message that the receiver can verify against a public key in DNS.
  • DMARC tells receivers what to do when SPF and DKIM checks fail, and where to send reports.

Receiving servers also use reputation of the sending address, content analysis and user reports to decide whether a message is delivered, sent to the spam folder or rejected. Even legitimate mail can end up in spam if these checks are not set up properly.

Step 5: Delivery to the Mailbox

When the receiving server accepts the message, the delivery agent applies any rules, such as filters and labels, and stores it in the recipient's mailbox. At this point the sender's job is done.

Step 6: The Recipient Reads It

The recipient's mail app now retrieves the message using one of two protocols.

  • IMAP keeps messages on the server and synchronizes the state between devices. When you read or delete a message on your phone, it shows the same on your laptop.
  • POP3 downloads messages to one device and usually removes them from the server. It is simpler but less suited to using several devices.

Web based email skips this step, since the interface talks to the provider's system directly.

Why Messages Sometimes Go Wrong

  • Bounces happen when the address does not exist, the mailbox is full or the server rejects the message.
  • Delays occur when a server is busy or temporarily down, and the message waits in a queue.
  • Spam folder placement results from failed authentication, poor sender reputation or suspicious content.
  • Missing attachments may be caused by size limits, which vary by provider.

Looking at the full headers of a message shows each server it passed through and the results of authentication checks, which is a helpful way to diagnose delivery issues.

Security and Privacy Notes

Connections between mail apps and servers are normally encrypted. Server to server encryption is common but not universal, and ordinary email is not end to end encrypted unless you use an additional tool. Treat email as a postcard unless you take extra steps for sensitive content.

Frequently Asked Questions

What is the difference between SMTP and IMAP?

SMTP sends mail from your app to a server and from server to server. IMAP is used by your app to read mail stored on your own server. One handles outgoing and relay, the other handles retrieval.

Why did my email end up in spam?

Common reasons include missing or failing SPF, DKIM and DMARC records, a sender with a poor reputation, or content that resembles spam. Checking your domain's authentication and avoiding suspicious wording usually improves placement.

Can email be sent without any server?

Not in practice. Every email depends on at least one outgoing server and one receiving server. Even when both people use the same provider, the message passes through that provider's systems.