Email header analyzer
An email carries a block of header lines that can record how it travelled and what the receiving system checked. Paste the raw headers below to see the Received hops in the order they were added, with the delay between dated hops, the SPF, DKIM and DMARC results the headers record, and where the From, Return-Path and Reply-To addresses point. The tool shows what the headers say; it does not judge whether a message is genuine.
0 characters
Where to find the raw headers
Look in your mail client's message menu or options for a way to show the original message, its source or its full headers. The name and location depend on the client, so check its help if you cannot find it. Copy the header block and paste it into the box above. Under RFC 5322 §3.5, a message is its header fields optionally followed by a body, and the tool stops reading at the first empty line, so pasting the whole message works too.
What each section shows
- Summary. The From, Return-Path, Reply-To and Sender addresses with the domain after the @ sign, and the domain in the Message-ID. If the From domain differs from the Return-Path or Reply-To domain, the tool says so as a plain statement. X-Originating-IP (or, if that is absent, X-Sender-IP), when present, is copied as written; the tool does not look up or locate the address. Both headers also appear in the All headers list.
- Authentication. Each result in an Authentication-Results header (RFC 8601) with the properties it reports. For SPF the property is either
smtp.mailfromorsmtp.helo, for DKIMheader.dis the signing domain from thed=tag (RFC 6376 §3.5), and for DMARCheader.fromis the domain of the From field (RFC 7489 §11.1). Any other method is listed by name, in lower case. - Hop timeline. Each SMTP server that handles a message must add a Received line at the beginning of it, so the bottom one is the earliest (RFC 5321 §4.4). The tool lists them earliest first and subtracts one dated hop from the next. RFC 5321 §4.4 notes that the comparability of Received header fields is important for detecting problems, especially slow relays. A negative gap means a hop is dated earlier than the one before it; the tool marks it as out of order and shows the negative gap instead of hiding it, and it cannot tell you why.
- All headers. Every header line in order, with folded lines joined as described in RFC 5322 §2.2.3.
What the headers cannot tell you
Received lines are written by whichever server handled the message, and the standards that govern them bind servers that follow the rules. The lines your own provider added, at the top, are the ones closest to you. Likewise, an Authentication-Results header is only as reliable as the system that added it. The questions "Can I trust the Received lines?" and "Can I trust an Authentication-Results header?" below give the sources.
Frequently asked questions
Is anything I paste sent to a server?
No. The parsing is JavaScript that runs in your browser tab. The tool contains no network calls and does not save what you paste, so pasting text and clicking Analyse does not trigger a request. You can confirm this in your browser's network tab. Headers can contain email addresses and IP addresses, so consider who you show the results to.
Can I trust the Received lines?
Only partly. RFC 5321 §4.4 requires an SMTP server to add its Received line at the beginning of the message and not to change or delete Received lines already there, but that binds servers that follow the rules. RFC 5321 §7.1 says it is feasible for even fairly casual users to talk directly to SMTP servers and create messages that will trick a naive recipient into believing they came from somewhere else. The lines at the top were added last, closest to you. Lines further down were written by earlier servers, and the tool cannot tell you which of them are accurate.
What do the SPF, DKIM and DMARC results mean?
SPF (RFC 7208) checks the sending host against the domain in the SMTP MAIL FROM (or HELO) identity. A pass is an explicit statement that the client is authorized to inject mail with that identity, a fail says it is not authorized, a softfail is a weak statement that the host is probably not authorized, and neutral means the domain's administrator has explicitly said it is not asserting whether the host is authorized. DKIM (RFC 6376) adds a signature whose d= tag names the signing domain that claims responsibility for introducing the message into the mail stream. In Authentication-Results, a DKIM pass means the message was signed, the signature was acceptable to the receiving system and it passed verification; fail means it was signed and acceptable but failed verification; none means the message was not signed (RFC 8601 §2.7.1). DMARC (RFC 7489) authenticates use of the From domain by requiring it to match, be aligned with, a domain that SPF or DKIM authenticated.
Why can the From, Return-Path and Reply-To domains differ?
They have different jobs. The Return-Path line preserves the reverse-path from the SMTP MAIL command, which is where delivery-failure notices go. RFC 5321 §4.4 says it can differ from the sender's mailbox, for example when error responses are sent to a special error-handling mailbox, and that with mailing lists this arrangement is common and useful. Reply-To is the address the author suggests replies be sent to (RFC 5322 §3.6.2). The tool reports when the domains differ as a fact about the text in the headers; it does not draw a conclusion from it.
Can I trust an Authentication-Results header?
Only if it was added by a system you trust, normally your own receiving provider. RFC 8601 §1.6 says the field often contains no integrity or validation mechanism of its own, so its presence must be trusted implicitly, and section 7.1 describes how a malicious sender could forge one claiming the message was properly authenticated if the receiving server does not remove it. Section 5 requires a conforming mail server to delete such a header if it claims to come from inside its own trust boundary but did not come directly from a trusted server. The first word of the header, the authserv-id, names the authentication service that claims to have added it (the RFC says it is machine-readable and not necessarily meaningful to people); the tool shows it in the Authentication table so you can check whether it looks like your own provider's name.
Does this tell me whether an email is phishing or genuine?
No. It shows what the headers record and gives no verdict. A pass applies to one identity and does not by itself vouch for the sender: RFC 7489 §3.1.1 notes that a message can bear a valid signature from any domain, including a bad actor's, and that merely bearing a valid signature is not enough to infer authenticity of the author domain. Read the results alongside the message itself, and see the ethics and law guide before investigating a message that was sent to someone else.
Email headers are one more kind of open-source data a message carries without anyone thinking about it. The EXIF and photo metadata viewer does the same job for photos, and the how findable are you? checklist covers the rest of your footprint. See ethics and law before looking into a message that was sent to someone else.