The fastest way to find an email's origin

To trace an email, you need to read its email headers — the hidden technical information attached to every message that shows the path the email took from sender to your inbox. The headers contain IP addresses (the numerical identifiers of computers on the internet) and server names that reveal where the message originated and which servers handled it along the way.

The process takes about two minutes once you know where to look. You do not need special software or technical skills. Every email client — Gmail, Outlook, Apple Mail, Yahoo — stores headers the same way; the steps differ only in which menu you click.

What you will find in the headers is not always a person's home address or identity. An IP address tells you the internet service provider and approximate geographic region, but not a name. If someone used a free email account, a corporate email system, or a VPN (a tool that masks your real IP), the headers will show the server they used, not their personal computer. Still, headers are the only reliable starting point.

Key Takeaways

  • Email headers contain the IP address and server information that show where an email came from, and you can view them in any email client without installing anything.
  • The "Received" lines in headers show each server the email passed through, with the bottom line closest to the original sender.
  • An IP address alone does not reveal a person's name or street address, but it does show the internet service provider and approximate location.
  • If the email came from Gmail, Outlook, or another free service, the headers will show that company's server, not the sender's personal device.
  • Emails sent through a VPN or corporate network will show the VPN or company server's IP, not the sender's actual location.

How to view headers in Gmail

Open the email you want to trace. Click the three dots (more options) in the top right corner of the message. Select Show original from the menu.

A new window will open showing the full email source code. At the very top, you will see a section labeled Delivered-To, Received, and From. The "Received" lines are what you need. Each line represents one server the email passed through. Read them from bottom to top — the bottom "Received" line is closest to where the email started.

Look for a line that says something like Received: from mail.example.com (mail.example.com. [192.0.2.1]). The numbers in brackets are the IP address. Write down the IP address from the lowest "Received" line, as that is closest to the original sender.

How to view headers in Outlook (web and desktop)

In Outlook on the web: Open the email. Click the three dots in the top right. Select View message details or View message source. The headers will display in a new panel or window on the right side of your screen.

In Outlook desktop (Windows or Mac): Open the email. Go to the File menu at the top. Select Properties (Windows) or Get Info (Mac). A dialog box will open. Look for a section labeled Internet Headers or Message Headers and click to expand it. Copy the text and paste it into a text editor if you need to read it more clearly.

Once you have the headers open, find the "Received" lines at the top of the text. The first "Received" line (at the very top) is where your email server received it. The last "Received" line (further down) is where it came from originally. Extract the IP address from the last "Received" line.

How to view headers in Apple Mail and Yahoo Mail

In Apple Mail: Open the email. Go to the View menu at the top of your screen. Select Message, then All Headers. The full headers will now display above the email body. Scroll to the bottom of the headers section to find the earliest "Received" line and its IP address.

In Yahoo Mail: Open the email. Click the three dots (more options) in the top right. Select View full header or View raw message. A new window or panel will show the complete headers. Find the last "Received" line and note the IP address.

What the IP address tells you and what it does not

Once you have the IP address, you can search it on a free IP lookup tool such as WhatIsMyIPAddress.com, IPQualityScore.com, or MaxMind.com. These tools will show you the internet service provider (ISP) that owns the IP address, the country and city where it is registered, and sometimes the type of connection (residential, business, or data center).

This information is useful for spotting fraud. If an email claims to be from your bank but the IP address is in a different country, or if it comes from a data center known for hosting spam, that is a red flag. If a suspicious email came from a free email service like Gmail or Yahoo, the IP will show Gmail or Yahoo's servers, not the sender's location — but you can still report it to that company.

The IP address does not give you a person's name, home address, phone number, or identity. It does not tell you which specific person at a company sent the email. If the sender used a VPN (a privacy tool that masks their real IP), the IP address will belong to the VPN company, not the sender. If they sent it from a corporate network, the IP belongs to the company's server.

When headers do not show the real sender

Email headers can be forged or spoofed, especially in phishing emails designed to trick you. A scammer can make an email appear to come from your bank or a trusted company by faking the "From" line. However, the "Received" lines (which show the actual path through servers) are much harder to fake because they are added by real servers as the email travels.

If you suspect an email is fraudulent, report it to the company it claims to be from. Most banks, PayPal, Amazon, and other major services have a fraud or phishing email address. Do not click links or read attachments from suspicious emails, even if the headers look legitimate.

If you received a harassing or threatening email and need to report it to law enforcement, forward the full email with headers intact to the police or FBI's Internet Crime Complaint Center (IC3). They have tools and authority to trace emails further than a header lookup can go.

Frequently Asked Questions

Can I trace an email if the sender used a fake name?

The sender's name in the "From" line can be anything — it is not verified. The IP address in the headers is harder to fake, so it is more reliable. However, if the sender used a VPN or sent it from a corporate network, the IP will not lead to their personal device. For serious cases like threats or fraud, contact law enforcement.

What does it mean if the IP address is from a data center?

Data center IPs often belong to cloud hosting companies, VPN services, or email marketing platforms. If a suspicious email comes from a data center IP, it suggests the sender was trying to hide their real location. Legitimate businesses sometimes use data centers too, so this alone does not prove fraud, but it is worth investigating further.

Can I find out who owns an IP address?

You can find the internet service provider and geographic region, but not the individual person's name. The ISP has that information, but they only release it to law enforcement with a court order. If you need to identify someone, contact the police or the FBI's IC3 website.

Is it illegal to trace an email?

No. Reading your own email's headers and looking up an IP address is legal. You own the email in your inbox. However, hacking into someone else's email account or using technical tools to break into their systems is illegal. Stick to the header information that is already attached to the email.

What if the email came from a Gmail or Outlook account?

The headers will show Gmail or Outlook's servers, not the sender's personal computer. You will see an IP address belonging to Google or Microsoft. This does not mean you cannot report the email — you can report it to Gmail or Outlook as spam or phishing, and they can investigate the account. If it is a serious crime, law enforcement can subpoena the email company for the account holder's information.