Gmail 00:00:01 The receiving server takes responsibility A local mail service accepts a message for Noor. In a Gmail-style design exercise, inbound SMTP, durable storage, mailbox placement, search and phone notifications have different completion times. Their server opens a connection to one of our MX hosts. DNS sent it here. After DATA we have the headers, so the signature and the visible From can be checked. DMARC needs the From header. A small entry: mailbox, pointer, score. the log is the list of work we owe. Text goes to the index a little later, and devices get a hint. both can be late or lost. Check message eligibility and authentication, preserve the durable message and track the work still owed. A message can already be accepted even while its search entry or mobile notification is pending. 00:00:57 One message has two delivery outcomes Asha presses Send with two recipients. The service can accept the submission from her browser and queue it before either remote mailbox answers. Track delivery per recipient. Attachments were uploaded first and drafts saved along the way. The request carries an idempotency key. a second click must not send twice. The message shows in Sent as pending, an entry is in the log, and the app gets 202. Asha may close the app. A worker adds the DKIM signature and groups recipients by domain. Bcc is removed from the headers. one conversation can serve many people at one domain. 250 for one person, 452 for the other, whose mailbox is full. state is kept for each recipient. A temporary refusal for one recipient should not resend to another who already accepted. Give attempts stable identities and define how the sender sees pending, delivered and permanently failed states. 00:01:59 Follow an SMTP handoff The sending system finds the destination's mail exchanger through DNS. It negotiates the connection and addresses the intended recipients before transferring the body. One successful protocol exchange has a specific next-hop meaning. Which servers take mail for example.com? The example negotiates STARTTLS and performs the required TLS and subsequent SMTP negotiation before transmitting the message content. The sending server offers each envelope recipient separately and records the response for each one. Or reuse the connection for the next message to this domain. An accepted message is the receiving server's responsibility under the SMTP contract. It does not prove a human saw the message, nor does a transport interruption prove the remote side stored nothing. 00:02:50 Thread messages using evidence A mailbox groups replies into a conversation. Structured reply headers give stronger evidence than a reused subject line, while older clients may supply less information. No reply headers, nothing similar: thread 1. In-Reply-To names A, and the subject is the same without Re:. In this exercise the changed subject and other evidence cause the message to begin a different conversation. A production product can choose a different threading policy. An old program sent it. Same plain subject with Re:, same people, this week: thread 1. Threading is a mailbox presentation decision, not a change to the original message. Keep message identity and recipient permissions independent of how the UI groups a conversation. 00:03:45 The final acceptance reply disappears The destination durably stores a message and sends its acceptance. The network drops that response. The sender now faces uncertainty and can retry after its retry interval. The raw message and its log entry are durable. The sender did not receive confirmation and therefore cannot tell whether the remote server accepted the message. Half an hour later the same message is sent, stored and answered. Within this controlled mailbox workflow, a durable conditional filing rule recognizes the repeated delivery under its chosen identity policy. SMTP across independent systems does not promise global exactly-once delivery. Receiver-side deduplication must be conservative enough to preserve two intentionally distinct messages that happen to look alike.