Every server that handles an email adds a Received header at the top of the message. Together these lines form a travel log: where the message entered the mail system, which servers relayed it, when each step happened and how it was transported. When a message arrives hours late, when a colleague wonders whether a note really came from where it claims, or when you must find out whether your own gateway or the recipient provider introduced a delay, the Received headers are the primary evidence. They are also the part of a message most often misread, because they are written in reverse order, use inconsistent wording and can be forged below the first trusted hop. This guide explains how to read them, how to measure delay, how to judge trust and how to apply the results. It complements reading email headers, Authentication-Results and tracing messages.
Anatomy of one line
Received: from mail-out.example.net (mail-out.example.net [203.0.113.25])
by mx.receiver.example (Postfix) with ESMTPS id 4F1A2C0B7E
for <[email protected]>; Sun, 23 Mar 2025 10:02:14 +0000 (UTC)| Part | Meaning | Notes |
|---|---|---|
| from | The name the sending side gave in HELO or EHLO, followed in parentheses by the reverse DNS name and IP address as seen by the receiver | The HELO name is claimed by the sender; the bracketed IP is recorded by the receiver and is more trustworthy |
| by | The server that received the message and wrote this header | This is the server whose line you can trust, if you trust the server |
| with | The protocol: SMTP, ESMTP, ESMTPS (with TLS), ESMTPA (authenticated), ESMTPSA (both), LMTP, HTTP or local | ESMTPS shows that TLS was used on that hop |
| id | The queue or message ID on the receiving server | Use it to find the matching line in that server's log. See mail logs |
| for | The recipient the server was delivering to; optional | Often omitted for privacy or when several recipients exist |
| Timestamp | Date and time after the semicolon, with a zone | Servers have their own clocks; small differences are normal |
Reading order
Because each server inserts its line above the previous ones, the bottom Received header is the first hop and the top one is the last. Read upward:
Received: by mailbox.receiver.example with LMTP id aB12; Sun, 23 Mar 2025 10:02:16 +0000 <- 4 (delivery)
Received: from mx.receiver.example (mx.receiver.example [198.51.100.9])
by mailbox.receiver.example with ESMTPS; Sun, 23 Mar 2025 10:02:15 +0000 <- 3
Received: from mail-out.example.net (mail-out.example.net [203.0.113.25])
by mx.receiver.example (Postfix) with ESMTPS id 4F1A2C0B7E; Sun, 23 Mar 2025 10:02:14 +0000 <- 2
Received: from app1.example.net (app1.example.net [10.0.0.12])
by mail-out.example.net with ESMTPSA id 77c1; Sun, 23 Mar 2025 10:02:12 +0000 <- 1 (submission)The story: an application at 10.0.0.12 authenticated and submitted the message to the sender's outbound server at 10:02:12; that server handed it to the recipient's MX at 10:02:14; the MX passed it to the mailbox store at 10:02:15, and delivery completed at 10:02:16. Total transit: four seconds.
Measuring delay
- List the timestamps from bottom to top and convert them to UTC if the zones differ.
- Subtract each timestamp from the one above it. The result is the time the message spent between those two events, usually waiting in the queue of the lower server.
- Look for the largest gap. A gap between hop 1 and hop 2 means the sender's outbound server delayed the message; between hop 2 and hop 3 points to the receiving MX or its filters; later gaps suggest internal processing.
- Check clock skew. If a later hop shows an earlier time than the previous one, one of the clocks is off; compare with the Date header and the logs before blaming a hop.
- Match large gaps against explanations: greylisting (minutes), rate limiting, retry after a temporary failure (see retry schedules), antivirus or sandbox inspection, or a queue backlog.
- Ask the owner of the slow hop to look up the queue ID in the
idfield.
| Gap | Common explanation |
|---|---|
| Under 5 seconds | Normal transit |
| 5 to 30 seconds | Content scanning, sandboxing, busy queue |
| 1 to 15 minutes | Greylisting or first retry after a temporary error |
| Hours | Prolonged deferral, rate limiting or an outage at the receiving side. See the mail queue |
| Days | Long outage, a quarantine release or a held message |
Trust and forgery
Anyone who controls a sending program can add fake Received lines at the bottom before the message enters the network. Spammers do this to make a message look like it came from a reputable place. The rule is simple: trust a Received line only if the server that wrote it is one you trust. In practice:
- Start from your own receiving server's line (the top one) and look at the
frompart. That IP is what your server actually saw, so it is reliable. - The next line down was written by the previous server. Trust it only if you trust that server (for example your gateway or a well-known provider).
- Anything beyond the last trusted hop is claimed information. Check it for consistency: dates that go backwards, IP addresses in reserved ranges, host names that do not match their IPs and implausible protocols are signs of forgery.
- Compare the IP in the first untrusted hop with the SPF result and the sending domain. See authentication results where relevant.
- Use the Authentication-Results header written by your own server for the verdicts, rather than trying to infer them from Received lines.
Special cases
| Case | What you see | How to read it |
|---|---|---|
| Web interfaces and APIs | with HTTP or HTTPS, a client IP in brackets | Message submitted through a web page or API, not SMTP. See the email API |
| Internal relays and gateways | Private IP ranges (10.x, 172.16-31.x, 192.168.x) | Internal hops; their addresses are not reachable from outside |
| Large providers | Many internal hops with their own naming and X-Received lines | Count total time at the provider; internal hops are usually quick |
| Forwarding | A new first hop appears when the forwarder re-sends the message | SPF is evaluated against the forwarder IP. See forwarding |
| Mailing lists | Hops through the list server before final delivery | The list may modify the message and add its own headers. See List-Id |
| IPv6 | Addresses like [2001:db8::25] | Same logic, longer addresses |
| Missing Received lines | Fewer hops than expected | Some systems strip or hide internal hops for privacy |
Why the totals can mislead
A long total transit time does not always mean a problem. Messages to groups are expanded by list servers, messages with large attachments take longer to scan, and a recipient who uses a forwarding rule adds hops of their own. Equally, a short total can hide a delay that happened before the first Received line, for example while the sender's application queued the message internally or the user left the draft unsent in an outbox. Compare the Date header, which the sending client sets, with the first Received timestamp: a large gap there means the delay occurred on the sender's device or application, not in the mail network.
A short workflow
- Get the full source of the message from the recipient mailbox ("show original" or "view source").
- Number the Received lines from the bottom.
- Identify the first hop you can trust and write down its IP and time.
- Compute the gaps and find the largest.
- Find the queue ID of the slow hop and look it up in that server's log, or ask its operator.
- Check authentication results and the envelope sender. See envelope From.
- Write the conclusion in one sentence: which hop, how long, probable cause.
Received headers turn "where did my email go?" into a measurable question. Read them from the bottom, trust only what you can verify, measure the gaps and let the queue IDs lead you to the logs that explain them.
Check the sending domain Verify authentication for the domain in a suspicious message.
References and further reading
Frequently asked questions
In which order should I read Received headers?
From the bottom up, because each server adds its line on top of the earlier ones.
How do I find where an email was delayed?
Subtract the timestamps of consecutive Received lines and look for the largest gap, then check the log of the slower server.
Can Received headers be forged?
Yes, lines below the last server you trust can be invented; only lines added by trusted servers are reliable.
What does ESMTPS mean in a Received line?
The hop used extended SMTP with TLS encryption.
What is the id field for?
It is the queue ID on that server, which you can search for in its mail log.