How to Trace an Email: Full Header Guide
In this article
Tracing an email means looking at its full header to find the sender's IP address, the mail servers it passed through, and the rough geographic location of where it was sent. You don't need special software — every email client can show you the full header, and free online header analyzers do the decoding for you. This guide works for Gmail, Outlook, Yahoo, and Apple Mail.
What You'll Need
- The email you want to trace (open it in your email client)
- Access to the email's full header (steps below for each client)
- A web browser for the header analyzer (or you can read the header manually)
- Optional: a geolocation service like iplocation.net or whatismyipaddress.com to look up the IP address
Step-by-Step
Step 1: Open the Full Email Header
The full header contains routing information that is normally hidden. Here's how to reveal it in the most common clients:
- Gmail (web): Open the email, click the three-dot menu (⋮) in the top-right corner, and select Show original. A new tab opens with the full header.
- Outlook.com (web): Open the email, click the three-dot menu (⋯) next to Reply, and select View > View message source.
- Outlook desktop (Windows/Mac): Double-click the email to open it in a new window, then go to File > Properties. The header appears in the Internet headers box.
- Yahoo Mail (web): Open the email, click the three-dot menu (⋯) at the top, and select View raw message.
- Apple Mail (Mac): Open the email, then go to View > Message > Raw Source (or press Shift+Command+H).
- iPhone/iPad Mail: Open the email, tap the sender's name at the top, then tap Forward — the full header is included in the forwarded message. Alternatively, tap the sender's name and look for Header in some versions, but forwarding is the most reliable method.
Note: Menu labels can vary slightly by version and device, but the option is usually called "Show original," "View source," or "Raw message."
Step 2: Copy the Full Header
Once you have the header displayed, select all the text (Ctrl+A or Cmd+A) and copy it (Ctrl+C or Cmd+C). Make sure you copy the entire block — it may look like a jumble of lines with "Received:" and "Authentication-Results" and other fields. Don't worry about understanding it yet.
Step 3: Use a Header Analyzer
Go to a free header analyzer website. Popular ones include:
- Google Admin Toolbox (toolbox.googleapps.com/apps/messageheader/)
- MXToolbox (mxtoolbox.com/EmailHeaders.aspx)
- MailHeader.org
Paste the header into the text box and click the analyze button. The tool will parse the header and show you a readable list of hops (each server the email passed through) with IP addresses and timestamps.
Step 4: Identify the Sender's IP Address
Look for the first "Received" line in the header — that is the closest to the sender. The IP address in that line is typically the sender's IP (or the IP of their mail server, which is often the same). In the analyzer output, it will be labeled as the originating IP or the first hop.
Step 5: Look Up the IP Location (Optional)
Copy the IP address and paste it into a geolocation service like iplocation.net or whatismyipaddress.com. This will give you the approximate city, region, and ISP. Keep in mind that this is only an approximation — it may show the location of the ISP's server, not the sender's exact street address.
Step 6: Read the Authentication Results (for Gmail/Outlook)
For Gmail and Outlook, the header includes "Authentication-Results" lines that show SPF, DKIM, and DMARC results. These tell you whether the email passed or failed authentication. If SPF or DKIM fail, the email is likely spoofed or from a suspicious source. This is useful for tracing the true origin.
Common Mistakes
- Looking at the wrong "Received" line: The bottom-most "Received" line is the first server, but some emails have multiple "Received" lines. Always start from the bottom and work upward.
- Assuming the IP is the sender's computer: If the sender uses a webmail service (Gmail, Yahoo), the IP in the header is often the IP of the webmail server, not the sender's home IP. This is especially true for Gmail — the originating IP is usually Google's server.
- Ignoring the timestamp: The timestamps in the header are in UTC (or GMT) unless otherwise noted. If you're in a different timezone, adjust accordingly.
- Copying only part of the header: Some clients truncate the header when you copy. Make sure you copy the entire block, from the top line to the bottom.
Tips
- Use a header analyzer for readability: Manual reading is possible, but analyzers save time and highlight the key IPs.
- Check the "Reply-To" field: If the email is from a scammer, the "Reply-To" may be different from the "From" address. That can help you trace the intended recipient of replies.
- Look for the X-Originating-IP field: Some older email systems (like Yahoo) include this field, which directly shows the sender's IP.
- Be cautious with geolocation: The location shown is often the ISP's central office, not the sender's exact location. Use it as a general clue, not evidence.
- Save the header: If you need to report abuse or spam, save the full header as a text file — it's the most important evidence.
Troubleshooting
The header analyzer says "No IP found" or "Invalid header"
Make sure you copied the entire header, including the first line. Some analyzers require the header to start with "Received:" or "Return-Path:". Try a different analyzer (e.g., MailHeader.org) — some are more forgiving.
The IP address is private (starts with 10., 172.16-31., or 192.168.)
This means the sender is on a local network (e.g., home router). The public IP is usually in the next "Received" line above. Look for the first public IP (one that doesn't start with those private ranges).
The email appears to come from Gmail, but you want the sender's real IP
Gmail and other major webmail providers hide the sender's IP. You cannot get the sender's IP from the header if they used Gmail's web interface. The only way is if they used an email client (like Outlook) with Gmail's SMTP — then the header may include the sender's IP. If it's not there, you cannot trace it further.
The header is in a foreign language or uses odd characters
Headers are often encoded (MIME). The analyzer should decode them. If not, look for the "Received" lines — they are usually in English even if the email content is not.
You cannot find the "Show original" option in Gmail
Make sure you're viewing the email in the web version (not the mobile app). In the Gmail mobile app, tap the three-dot menu and select "Show original" — it's there, but sometimes hidden under "More" or "View details." If you still can't find it, forward the email to yourself and open it on a computer.
Frequently Asked Questions
Can I trace an email to get the sender's exact location?
No. The IP address gives you the approximate location of the sender's internet service provider (ISP), which is often in a different city or even country. You cannot get a street address or exact GPS location from an email header.
Can I trace an email sent from Gmail to find the sender's IP?
Usually not. Gmail's web interface does not include the sender's IP in the header — it shows Google's server IP instead. If the sender used an email client (like Outlook or Thunderbird) with Gmail's SMTP, the header may include the sender's IP, but it's not guaranteed.
Is tracing an email legal?
Yes, tracing an email you received is legal — it's your own email. However, using that information to harass or stalk someone is illegal. If you're tracing for a legal dispute, you should contact law enforcement or a lawyer.
What does "Received: from" mean in the header?
Each "Received" line represents a server that handled the email. The bottommost line is the first server (closest to the sender), and the topmost is the last server (your email provider). The "from" part shows the IP or hostname of the previous server.
Can I trace an email if I only have the sender's name?
No. You need the full email header, which is only available if you have the actual email in your inbox. If you only have a name, you cannot trace anything.
What if the email is spoofed — can I still trace it?
Yes, but the trace may lead to a compromised server or a fake IP. Spoofed emails often fail SPF/DKIM checks. The header may show a different sender than the actual origin. Tracing a spoofed email is more complex and may require help from your IT department or email provider.