A user says an email sent at 9 in the morning showed up just before noon. The sender swears they hit send on time, the recipient swears it was not in the inbox, and both blame the hosting. The message did arrive, so nothing is technically broken. It was just held somewhere. The quickest way to find out where is to open the raw message and read its Received headers, because every server that handled the message wrote down the time it accepted it.
How Received headers get stacked
When a mail transfer agent (MTA, the server software that moves mail, such as Postfix or Exim) accepts a message, it adds a Received header to the very top of the header block. It does not edit what is already there. It prepends. The next server does the same, and so on until the message lands in a mailbox.
That gives you a stack. The bottom Received header is the first hop, usually the server where the sender's mail client logged in. The top one is the last hop, usually the recipient's own mail system handing the message to the mailbox. To follow the message in order, you read from the bottom up.
Each header follows roughly the same shape: from (who connected and from which IP), by (which server accepted it), with (the protocol, such as ESMTP, ESMTPS for TLS, or ESMTPSA for an authenticated submission), often an id (the queue ID on that server), and finally a semicolon followed by a timestamp. The timestamp is the moment that server accepted the message, written in the server's own local time with a UTC offset.
Here is a trimmed chain in the order you would see it in the raw source.
Illustrative header format:
Received: from mx.example.net (mx.example.net [203.0.113.25])
by mailstore.example.net with LMTP; Sat, 07 Nov 2026 03:52:40 +0000
Received: from mail.example.com (mail.example.com [198.51.100.10])
by mx.example.net with ESMTPS id 4F2A1B; Sat, 07 Nov 2026 03:52:38 +0000
Received: from localhost (localhost [127.0.0.1])
by mail.example.com (Postfix) with ESMTP id 9C3D2E; Sat, 07 Nov 2026 09:14:05 +0800
Received: from [192.0.2.44] (unknown [192.0.2.44])
by mail.example.com (Postfix) with ESMTPSA id 7B1C0A; Sat, 07 Nov 2026 09:14:02 +0800
Date: Sat, 07 Nov 2026 09:13:58 +0800
Read it from the bottom. The Date header was written by the sender's mail client. The first Received shows the client at 192.0.2.44 submitting over an authenticated connection. The second shows the same server receiving the message again from localhost, which is typical when a content filter scans the message and hands it back. The third is the recipient's MX accepting it. The fourth is the recipient's system dropping it into the mailbox.
Normalize the timestamps before you subtract
The most common mistake is comparing the raw times. In the sample, the sending server reports 09:14:05 +0800 and the recipient MX reports 03:52:38 +0000. Taken at face value, that looks like the message traveled back in time.
Convert everything to UTC first. 09:14:05 +0800 is 01:14:05 UTC. Now the chain reads cleanly: client at 01:13:58, submission at 01:14:02, filter done at 01:14:05, recipient MX at 03:52:38, mailbox at 03:52:40. One gap stands out, roughly 2 hours 38 minutes between the sending server's last hop and the recipient's MX. Every other step took seconds.
If a hop shows a time earlier than the hop below it even after converting, suspect a clock problem on one of the servers rather than a real delay. On a server you control, timedatectl shows whether the system clock is synchronized. On a server you do not control, you cannot fix it, but you can note that its timestamps are not reliable.
A second caution: only trust the headers written by servers you control or by the recipient's own system. Anything below your border can be written by whoever sent the message, including spammers who add fake Received lines. For a normal delay complaint this rarely matters, but keep it in mind when the chain looks odd.
What each gap usually means
Once the times are lined up, the position of the gap tells you which part of the system to look at.
A gap between Date and the first Received header is on the sender's side, before any server got the message. The mail client may have queued it in an outbox while offline, a phone may have held it until it reconnected, or the user may have used scheduled send. The Date header is set by the client, so a wrong clock on the sender's device also shows up here. No server log will explain this gap, because no server had the message yet.
A gap between the authenticated submission hop and the localhost hop on the same server points to local processing. That is often a content filter, such as a spam or virus scanner, that the MTA passes mail to and receives it back from. A slow or overloaded scanner holds messages here. The queue ID changes across that hop, which is a useful clue when you go to the logs.
A gap between your server's last hop and the recipient's MX means your server held the message in its outbound queue. The two usual reasons are that your server could not connect to the recipient (DNS trouble, network issues, a port 25 block), or that the recipient's server answered with a temporary 4xx error. Greylisting works exactly this way: the receiving server rejects the first attempt with a temporary error and accepts the retry. How long the retry takes depends on your MTA's retry schedule, not on the recipient. Either way, the evidence is in your mail log.
A gap after the recipient's MX accepted the message, between their MX hop and their mailbox hop, is on their side. Their internal filtering, quarantine, or storage is slow. You cannot fix that, but the header chain is the proof you give them, because it shows their own server accepting the message hours before it reached the mailbox.
The same logic works in reverse for inbound complaints. If your users receive mail late, and the gap sits between the sender's last hop and your MX, either the sender's server was slow to retry or your own MX (for example through greylisting) told it to come back later. Your inbound log will show the earlier temporary rejections if that is the case.
Confirm it in the mail log
Headers tell you where. The log tells you why. Take the queue ID from the hop just before the gap. In the sample, that is 9C3D2E, the ID assigned after the filter reinjected the message, which is the ID that would be used for outbound delivery.
# Postfix: every log line for one queue ID
# (log path depends on distro, e.g. /var/log/mail.log or /var/log/maillog)
grep '9C3D2E' /var/log/mail.log
# Exim: exigrep collects all lines for matching messages
# (on cPanel the main log is usually /var/log/exim_mainlog)
exigrep 'user@example.net' /var/log/exim_mainlog
Both commands only read the logs, so they are safe on a live server. If the log has already rotated, search the rotated files too.
For Postfix, the line you are looking for usually has status=deferred followed by the reason in parentheses. Each attempt that failed shows up as its own line, and the final success shows status=sent.
Illustrative log format:
postfix/smtp[2211]: 9C3D2E: to=<user@example.net>, relay=mx.example.net[203.0.113.25]:25, delay=5, delays=0.01/0/0.5/4.5, dsn=4.7.1, status=deferred (host mx.example.net[203.0.113.25] said: 450 4.7.1 Try again later (in reply to RCPT TO command))
postfix/smtp[3874]: 9C3D2E: to=<user@example.net>, relay=mx.example.net[203.0.113.25]:25, delay=9513, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 4F2A1B)
The delay= field is the total time in seconds since Postfix received the message, which should roughly match the gap you calculated from the headers. The text after said: is what the recipient's server returned, and that is usually the answer. A 450 with a try-again message points to greylisting or rate limiting on their end. A connection timeout points to the network path or a blocked port. The queued as 4F2A1B at the end is the recipient's queue ID, which matches the id in their Received header and ties the two systems together.
In Exim, the markers are short: <= is the message arriving, => is a successful delivery, and == is a deferral with the reason on the same line. If your Exim logs include queue time fields, those depend on the log_selector setting, so they may or may not be present.
If the log shows many deferrals spaced far apart, look at the retry settings before blaming the recipient. On Postfix, postconf queue_run_delay minimal_backoff_time maximal_backoff_time prints the values your server is actually using. On Exim, retry behavior comes from the retry section of the configuration, and the way you view it depends on the control panel.
Practical takeaway
When someone reports late mail, ask for the full raw headers of one affected message before touching any setting. Convert every Received timestamp to UTC, read from the bottom up, and find the one hop where minutes turned into hours. If the gap sits before your server, it is the sender's client. If it sits between your hops, it is your filter. If it sits between your server and theirs, your log will name the reason. If it sits inside their system, the header chain is the evidence you send them. In most cases, that single comparison is enough to stop the back-and-forth over whose fault it is and to point at the right log.