Blog · Email OSINT
How to trace an email to its sender: what the headers show
To trace an email, you read its full header. Every server that handled the message wrote a line in it, so the header tells you which machines carried it, whether the domain in the From field authorised it, which address a reply really goes to and, often, the IP address of the server that handed it over. What it does not give you is a person: a header leads to servers and networks, and from there to an organisation or a provider, not to a name or a home address.
That is still a lot. Most questions that start with "who sent me this?" are really "is this message what it claims to be?", and the header answers that one well. We checked the steps in Google's and Microsoft's help pages, and the standard that defines the header, on 3 December 2026.
Before you start: why
Good reasons to trace an email: a message that looks like phishing, an invoice whose bank details changed overnight, a supplier you have never met, a warning that seems to come from your bank. If what you have is a threat or harassment, keep the message with its full header and take it to the police: the provider holds the account data, and that is the route through which it can be disclosed.
Step 1: get the full header
The header is hidden by default. To see it:
- Gmail (in a browser): open the message, click More (the three dots) next to Reply and choose Show original. The full header opens in a new window, with the SPF, DKIM and DMARC results summarised at the top, and a Copy to clipboard button.
- New Outlook for Windows, Outlook on the web and Outlook.com: select More actions at the top of the message, then View > View message details.
- Classic Outlook for Windows: double-click the message to open it in its own window, then File > Properties. The header is in the Internet headers box.
In other mail clients, look for an option called something like "show original", "view source" or "all headers". Copy the whole thing: a header cut in half loses exactly the lines you need.
Pasting it into an analyser makes it easier to read. Google points to the Messageheader tool in its Google Admin Toolbox, and Microsoft publishes Message Header Analyzer as open source, as an Outlook add-in and as a standalone web page. We could not confirm whether either tool sends the header to a server, so for a sensitive message, read it by hand.
Step 2: read the Received lines from the top
The core of the header is its Received lines. The standard that governs email delivery, RFC 5321, says that a server receiving a message "MUST insert trace" information at the beginning of it, and that a mail program "MUST NOT change or delete a Received: line that was previously added". The result is a stack: the newest line on top, written by the last server, usually your own provider; the oldest at the bottom.
Each line follows roughly this pattern (the addresses below are documentation examples):
Received: from mail.example.net (mail.example.net [198.51.100.7])
by mx.yourprovider.example with ESMTPS id 4f2a...
for <you@yourprovider.example>; Tue, 1 Dec 2026 09:14:03 +0000
Read it in three parts:
- "from mail.example.net" is the name the sending server gave for itself. It can be anything.
- "[198.51.100.7]" is the IP address the receiving server saw on the connection. RFC 5321 recommends (with a SHOULD, not a MUST) that the line carry "an address literal containing the IP address of the source, determined from the TCP connection", so it can be missing. When it is there, it is the useful part, because it was observed, not declared. Many servers also add the name they found for it by reverse DNS.
- "by mx.yourprovider.example" is the server that wrote the line, with the date.
Now the rule that matters most: only trust the lines written by servers you trust. Start at the top and go down while the "by" servers belong to your provider. The first line where your provider received the message from an outside machine is the hand-off point, and the IP in its "from" part is the most reliable data point in the whole header. Everything below it was written before the message reached you, by servers you do not control, and a sender can add invented Received lines before sending.
Step 3: check that the sender is who they say
Spoofing the From line is trivial. Three checks, whose results your provider usually records in an Authentication-Results line near the top, tell you whether it was spoofed:
- SPF checks whether the IP that delivered the message is allowed to send mail for the domain in the envelope address (the one in Return-Path).
- DKIM checks a cryptographic signature added by a domain, shown as
d=in the signature. A valid signature means that domain signed the message and the signed parts were not altered on the way. - DMARC checks that the domain in the visible From line matches the domain that passed SPF or DKIM, and tells the receiver what to do when it does not, according to the policy the domain owner published.
A message that claims to come from your bank and fails DMARC is very likely forged. A pass is not a certificate of good faith either: it proves the message came from that domain, and fraudsters register their own. That is why the next lines matter as much:
- From, Reply-To and Return-Path. If Reply-To points to a different address, that is where your answer goes. If Return-Path is on an unrelated domain, ask why.
- Message-ID. It often ends in a name from the system that created the message: in Microsoft 365, according to Microsoft, the server's name after the @. A message that claims to come from one mail system and carries an ID from another deserves a second look.
- The dates. Each Received line carries a time. Big gaps or times out of order point to a delay, a queue or a forged line.
Step 4: what the sender's IP tells you, and what it does not
Take the IP from the hand-off line and ask four questions about it:
- Whose network is it? The registry data for an IP block names the organisation it is assigned to: an email provider, a hosting company, a home broadband operator, a company. We explain the lookup step by step in how to find the owner of an IP address.
- What is its reverse DNS name? A name like
mail.supplier.examplematches what you expected; a generic hosting name does not. We explain the two kinds of lookup in reverse IP lookup. - Is it a hosting server, a VPN or a Tor exit? A supplier's invoice that left through a VPN or a rented server deserves questions.
- Is it on abuse lists? An IP reported for spam or phishing is a signal worth weighing.
Two limits. First, with webmail the IP is usually the provider's: guides to header analysis agree that for mail written in Gmail's web interface or app, the IP you see belongs to a Google server, and we cover what that means in who owns a Gmail account. Second, geolocation is rough. MaxMind, which publishes the GeoIP geolocation databases, says its data "is never precise enough to identify or locate a specific household, individual, or street address", and that it cannot geolocate the person using an IP behind a VPN. A city on a map describes a network, not a person.
Step 5: look at the domain
If the message comes from a company domain, the domain is often the best lead of all. Find out when it was registered (a domain created last week sending invoices is a red flag), who it says owns it and where its mail is handled: we cover it in how to find who owns a domain. And compare it with the real one letter by letter: examp1e.com and example-billing.com are registered for exactly this kind of fraud. Tools like dnstwist generate those look-alikes and tell you which are registered, as we explain in how to use dnstwist.
If you are an admin: message trace in Exchange Online
"Trace an email" means something else to an IT admin: following a message through the organisation's own mail system. In Microsoft 365, that is message trace, and Microsoft documents it like this:
- Where: in the Exchange admin center, Mail flow > Message trace, then Start a trace.
- Who: membership in the Organization Management role group, or the Exchange Administrator or Global Administrator role (Microsoft recommends the role with the fewest permissions).
- How far back: the default is the last 2 days, and you can go up to 90. Up to 10 days, results arrive at once as a summary report; a range even slightly longer comes only as a downloadable CSV, prepared from archived data, that can take several hours.
- What to filter by: senders, recipients (wildcards such as
*@example.comwork), subject, delivery status, direction and the Message-ID from the header, written in full with its angle brackets. - What it tells you: whether the service received, rejected, deferred, quarantined or delivered the message, and the events in between. The detail includes the From IP for inbound mail; the original client IP appears only in the downloadable reports, and only for 10 days.
In PowerShell the cmdlet is now Get-MessageTraceV2, with version 3.7.0 or later of the Exchange Online module.
"To its owner": what the header cannot do
No header contains the name of the person behind an account. The registration data and access logs are with the email provider, and providers hand them to authorities through legal process: Google, for example, describes in its policy which requests need a subpoena, a court order or a search warrant. A service that promises to reveal who owns an address from its header alone is promising something the header does not contain.
What you can do is research the address itself in open sources: whether it has a public profile, which services it is registered with, which breaches it appears in and whether the part before the @ works as a username elsewhere. We explain the method in reverse email lookup with OSINT. And whatever you find is a lead: a name is only an identification when independent sources agree on it.
Pandora: the IP and the domain on one graph
Pandora does not read the header for you: you copy out the data points that matter and start from them. Type the IP from the hand-off line and Pandora shows its network and owner from RIPEstat, its reverse DNS, its approximate location from online services and local databases, Tor, VPN and hosting flags, and what abuse lists and open threat feeds such as AlienVault OTX, AbuseIPDB and abuse.ch say about it (VirusTotal too, with your own key). Type the sender's domain and you get its DNS, RDAP and WHOIS data, its subdomains from Certificate Transparency and, for the starting domain, its registered look-alikes in the style of dnstwist. Type the address and you get its profile (whether its domain receives mail, whether the provider is disposable, its Gravatar and its PGP keys), the services it is registered with and the breaches it appears in, without passwords.
Everything lands on the same graph, with the source of every finding, and the Dossier counts how many independent sources back each data point. A new account gets one trial search with the findings masked: you see what kind of findings there are and how many, not which ones. Plans are on the pricing page.
Tracing an email within the law
Reading the header of a message you received is reading your own mail. Researching the person behind it is processing personal data, and the GDPR (and the UK GDPR) asks for a lawful basis and a legitimate purpose, such as preventing fraud or checking a counterparty, and only the data that purpose needs. Pandora works with open sources and passive lookups: it does not scan the sender's systems, it is not a tool for locating or following anyone, and its acceptable use policy sets further limits. We cover it in is OSINT legal?.
Where to go next
- Reverse email lookup with OSINT: a six-step method, to research the address once you know the message is real.
- How to find out who owns a Gmail account, when the sender writes from Gmail.
- Reverse IP lookup, to see what else lives on the IP you found.
Frequently asked questions
Can you trace an email address to its owner?
Not from the email alone. The headers lead to servers and networks: which machines carried the message, whether the sending domain authorised it, and often the IP that handed it over. The account holder's identity sits with the email provider, which discloses it to authorities through legal process. What you can add is open-source research on the address itself, and anything it turns up is a lead to corroborate.
Can I find the IP address of an email sender?
Sometimes. Each receiving server records the IP it got the message from in a Received line. If the message came from a company mail server or a bulk-mail system, that IP is the sender's infrastructure. If it was written in Gmail's web interface or app, guides to header analysis agree that the IP shown belongs to a Google server, not to the person.
How do I trace an email in Office 365 or Exchange Online?
An admin opens the Exchange admin center, goes to Mail flow > Message trace and selects Start a trace. You need the Organization Management role group or the Exchange Administrator role. A range of up to 10 days comes back at once as a summary report; a longer one, up to 90 days, comes only as a downloadable CSV that can take several hours.
Can an anonymous email be traced?
The provider that runs the account holds its registration data and access logs, and that data reaches the police or a court, not a private person. On your own, you can see which provider sent it, whether the sender was spoofed and which addresses it really replies to. If an anonymous message threatens or harasses you, keep it with its full headers and report it to the police.
Does IP geolocation show where the sender is?
Only roughly. MaxMind, which publishes the GeoIP geolocation databases, says its data is never precise enough to identify or locate a specific household, individual or street address, and that it cannot geolocate the person using the IP, for example behind a VPN. Treat the city as a hint about the network, not the person.