Animated scene: envelopes travel between two mail servers across the internet INTERNET SENDER RECEIVER
An interactive explainer

How Email Works

From the moment you hit send to the second it lands in the inbox: a journey through SMTP, DNS, authentication, bounces and the quirks of email clients.

Start the journey
CHAPTER 01

The email is composed

From a friendly UI to the raw RFC 5322 message format

New message
What actually gets sent
Lunch tomorrow?
Hey Bob, want to grab lunch at noon? Alice

Every email follows RFC 5322: a plain-text format with headers, a blank line, then the body. Even attachments and HTML are just text, encoded with MIME and separated by boundary strings.

CHAPTER 02

Anatomy of an email

An envelope, headers and a body: three layers most people never see

The envelope sender and the visible From header can differ. That is how legitimate forwarding works, and also how phishing tries to fool you. SPF, DKIM and DMARC exist to keep these honest.

CHAPTER 03

Transport: two ways to send

Direct SMTP gives you control. Amazon SES handles the hard parts.

SMTP conversation
  1. Client → Your MTA EHLO mail.example.com Greet the server and negotiate TLS and authentication
  2. Your MTA → DNS MX acme.io ? Look up the mail server responsible for the recipient domain
  3. DNS → Your MTA → mx1.acme.io (priority 10) DNS responds with the MX records
  4. Your MTA → Receiver MTA MAIL FROM: <[email protected]> Set the envelope sender
  5. Your MTA → Receiver MTA RCPT TO: <[email protected]> Set the envelope recipient
  6. Your MTA → Receiver MTA DATA … <message> . Stream the message, terminated by a single dot on its own line
  7. Receiver MTA → Your MTA 250 OK queued as A1B2C3 Accepted into the receiving queue

With direct SMTP you operate your own MTA such as Postfix, Exim or Haraka. You are responsible for IP reputation, warm-up, retries, bounce handling, DKIM keys and TLS. Maximum control, maximum maintenance.

CHAPTER 04

Authentication

Three DNS-based checks that prove an email really comes from who it claims

SPF: Sender Policy Framework

The receiving server asks: is this connecting IP allowed to send for this domain? SPF lists the authorized IPs and services in DNS. Pass means the IP is authorized.

# DNS lookup $ dig TXT example.com v=spf1 include:_spf.google.com include:amazonses.com ~all

Receiving server check

  • Connection from an authorized IP ok
  • Signature verifies against the public key ok
  • From domain aligns with the authenticated domain ok
  • DMARC policy: pass ok
PASS
Authentication-Results header added by the receiver

Together, SPF, DKIM and DMARC are the modern minimum to reach the inbox. Gmail, Yahoo and Apple now require them for bulk senders. Skip them and your mail bounces or lands in spam.

CHAPTER 05

When delivery fails: bounces

The receiver could not accept the message. Here is why, and what to do about it.

Anatomy of a bounce

Diagram: a rejected message returns to the sender as a delivery status notification Sender your-app message Receiver MTA mx1.acme.io 5xx: rejected DSN (Delivery Status Notification) "mailer-daemon@…" bounce notification for your suppression list

Common SMTP responses

550 5.1.1 User unknown, mailbox does not exist
550 5.1.2 Domain does not exist (NXDOMAIN)
550 5.7.1 Recipient address rejected or blocked
554 5.7.1 Sender blocked or listed on an RBL

Why bounces hurt

  • A high bounce rate tanks your sender reputation with mailbox providers.
  • Amazon SES puts accounts under review above a 5% bounce rate and pauses sending around 10%.
  • Bounces count as spam signals, so even your good emails start landing in junk.
  • Repeated bounces to the same addresses can get your sending domain blocklisted.

What to do about it

  • Suppression list: Never send to a hard-bounced address again. SES maintains one per account automatically.
  • Double opt-in: Confirm new addresses with a click before adding them to your list. This kills typos and spam traps.
  • List hygiene: Remove addresses without engagement after 6 to 12 months and re-validate with a verification service.
  • Warm-up: Ramp volume up slowly over weeks so receivers learn to trust your IP and domain.
  • Authenticate: SPF, DKIM and DMARC, properly aligned. Skipping them is the top cause of reputation blocks.
  • Listen to events: On SES, subscribe to the bounce and complaint topics and process them in real time.

Bounces are not bugs, they are feedback. A healthy sending program treats every bounce as a signal: clean the list, fix the authentication, slow down the ramp. The senders who reach the inbox are the ones who pay attention.

CHAPTER 06

Different clients, different worlds

The same email is interpreted very differently depending on who opens it

How it handles images

Loaded through the Google image proxy (googleusercontent.com).

What that means for tracking

Tracking pixels fire as soon as the email is opened, but the request comes from a Google IP, not from the reader. Images are cached, so the pixel fires once.

Privacy posture

Medium: the IP is hidden, but the open itself is still detectable.

Quirks every sender should know

  • Supports embedded CSS only partially; complex styles are best inlined
  • Clips messages over 102 KB behind a "view entire message" link
  • Auto-links URLs and may add its own unsubscribe link for bulk senders

The tracking pixel, three ways

Gmail (Web)
  1. Reader opens the email
  2. Google fetches the image once
  3. Caches it on the Google CDN
  4. Pixel fires from a Google IP
Outlook Classic (Desktop)
  1. Reader opens the email
  2. Images stay blocked
  3. Reader clicks "download images"
  4. Pixel fires from the reader's IP
Apple Mail (iOS / macOS)
  1. Email arrives on the device
  2. Apple pre-fetches via proxy
  3. Even if it is never opened
  4. Pixel fires from an Apple IP

The same tracking pixel behaves completely differently depending on the client. That is why the open rate has become an unreliable metric, and why click-based engagement is taking over.

CHAPTER 07

Calendar invitations: iMIP

When Outlook, Google Calendar and Apple Calendar agree on a meeting, they speak email

Scheduling across providers needs no central server: invitations, acceptances and cancellations travel as perfectly ordinary emails. Three standards split the work, and iMIP (RFC 6047) is the bottom layer: it wraps the scheduling message into a mail as a MIME part with Content-Type: text/calendar; method=…

RFC 5545
iCalendar

The data format: VEVENT, DTSTART, ATTENDEE, an event as structured text.

RFC 5546
iTIP

The choreography: who may do what, REQUEST, REPLY, COUNTER, CANCEL and the SEQUENCE rules.

RFC 6047
iMIP

The transport: the iTIP message travels as a text/calendar MIME part inside a regular email.

Alice's calendar, organizer view
Organizer · [email protected]
Project kickoff
Tue, Aug 11 · 15:00–15:45
SEQUENCE:0 STATUS:CANCELLED

You are Alice, planning a kickoff. Invite Bob, Carol and Dave: one email with METHOD:REQUEST to all three.

Messages in transit …

Dave counter-proposes 16:00. Only the Organizer may change the event: send an update with a bumped SEQUENCE, or cancel.

Everyone accepted. Same UID, SEQUENCE:1: every attendee's calendar now shows 16:00 automatically.

Cancelled. The CANCEL carries the same UID, so every client knows which event to remove.

Bob [email protected] NEEDS-ACTION
Carol [email protected] NEEDS-ACTION
Dave [email protected] NEEDS-ACTION
iMIP messages
Content-Type: text/calendar

Send an invitation and the raw text/calendar part of the latest message will show up here.

Because iMIP is just email, in principle anyone can drop events into anyone's calendar, which is exactly what calendar spam exploits. RFC 6047 therefore recommends signed messages (S/MIME), and modern clients only add events from unknown senders after asking first.

CHAPTER 08

The whole journey, at a glance

From composer to inbox in seconds, most of the time

  1. Compose
  2. MTA
  3. DNS / MX
  4. SPF/DKIM/DMARC
  5. Bounce?
  6. Mailbox
  7. Client renders
SMTP
RFC 5321

The transport protocol: EHLO, MAIL FROM, RCPT TO, DATA and the response codes.

Internet Message Format
RFC 5322

Headers, body and encoding rules: the shape of an email.

DKIM
RFC 6376

How cryptographic signatures are added and verified across mail hops.

iMIP
RFC 6047

Calendar invitations over email: REQUEST, REPLY, COUNTER and CANCEL as text/calendar.

Email is older than the web, and somehow still the most reliable communication protocol on the internet.

Built by Renick Digital Solutions. We develop software, and we know our way around email infrastructure. See what we build