How to read email headers to debug delivery problems
When a message goes to spam or gets rejected, the full headers tell you why. Most mail clients have a “Show original” or “View source” option.
Authentication-Results
The receiving server records what it checked. Look for a line like this:
Authentication-Results: mx.example.net;
spf=pass smtp.mailfrom=sender.com;
dkim=pass header.d=sender.com;
dmarc=pass header.from=sender.com
pass: the check succeeded.fail/softfail: the sender is not authorised, or the signature is invalid.none: no record was found.neutral,temperror,permerror: the record is ambiguous, or DNS or syntax problems got in the way.
Alignment matters
spf=pass alone is not enough for DMARC. The domain that passed SPF (smtp.mailfrom) or DKIM
(header.d) must match the domain in the visible From: header. A common cause of dmarc=fail
with spf=pass is a third-party service sending with its own bounce domain.
Received headers
Each server that handled the message adds a Received: header on top, so read them from bottom to top
to follow the path. Delays between timestamps show where a message was held up.
Quick checklist
- Does
dmarc=saypass? If not, which of SPF or DKIM failed alignment? - Is the sending service listed in your SPF record and signing with DKIM?
- Is the
From:domain the one you expect? - Do the timestamps in
Received:show a long delay?