What you can actually learn from an email header

When you open an email's full header — the technical information hidden behind the message itself — you can see the path the email took from sender to your inbox. This path includes server names, timestamps, and sometimes an IP address, which is a numerical label that identifies a computer on the internet. That IP can tell you the general location (city or region) where the email originated, and sometimes who owns the server.

What you cannot do is when ready identify a person by their IP address alone. An IP address belongs to an internet service provider, a company, or a mail server — not directly to a human being. If the email came from Gmail, Yahoo, or Outlook, the IP will point to their data centers, not to the sender's home or office. If it came from a business email address, the IP might point to that company's mail server. Either way, you have learned something about the route, but not necessarily who sent it.

The header also shows you whether the email passed through multiple servers, whether it was encrypted in transit, and whether it passed basic authentication checks. These details matter if you are trying to figure out whether an email is forged, spoofed, or legitimately from the person it claims to be from.

Key Takeaways

  • Email headers contain server names, timestamps, and sometimes IP addresses that show the path an email took from sender to your inbox.
  • An IP address points to a server or internet provider, not directly to a person, so it gives you location and ownership information but not a name.
  • Gmail, Yahoo, and Outlook emails will show the IP of their data centers, not the sender's personal device, because those services handle the sending.
  • You can check whether an email is forged by looking for authentication markers like SPF, DKIM, and DMARC in the header.
  • If you need to identify a person behind an email, you will likely need help from law enforcement or the email provider, not just the header alone.

How to view the full email header in common email services

The steps differ slightly depending on which email service you use. In Gmail, open the email, click the three dots in the top right corner, and select "Show original." A new window opens with the full header and message source. You can copy this text and paste it into a text editor to read it more easily.

In Outlook (both web and desktop), open the email and look for "Message" at the top of the ribbon. Click the small arrow next to "Actions" and select "View Message Details" or "View Message Source," depending on your version. The header appears in a new window.

In Apple Mail on Mac, open the email and go to the menu bar: View > Message > All Headers. In Thunderbird, right-click the email in your inbox and select "View Message Source." On Yahoo Mail, click the three dots next to the email and select "View Raw Message."

Once you have the header open, look for lines that start with "Received:" — these show each server the email passed through, usually in reverse order (the last server listed is the first one that received it). Look also for "From:" which shows what the sender claimed their address was, and "Return-Path:" which shows where bounced emails would go.

Reading the IP address and what it tells you

In the "Received:" lines, you will see entries like "from mail.example.com (mail.example.com [192.0.2.1])" — the numbers in brackets are the IP address. The first "Received:" line at the bottom of the header is usually the most recent server, and the last one at the top is usually the originating server (though this order is not may provide).

To find out who owns an IP address, use a free IP lookup tool such as WHOIS (whois.arin.net for North American addresses), IP2Location, or MaxMind. Enter the IP address and the tool will return the organization that owns it, the country and city, and sometimes the internet service provider. If the IP belongs to Gmail or Microsoft, you have learned that the email was sent through their servers, which most legitimate emails are. If it belongs to a small business or individual ISP, you have learned more about where the connection originated.

Keep in mind that an IP address can be spoofed in the header itself — a forged email might contain a fake IP address. This is why authentication markers matter more than the IP alone.

Checking whether the email is forged or spoofed

A spoofed email is one where the sender has faked the "From:" address to make it look like it came from someone else. A forged header is when the technical details in the "Received:" lines are fabricated. To check whether an email is legitimate, look for three authentication standards in the header: SPF (Sender Policy Framework), DKIM (DomainKeys Identified Mail), and DMARC (Domain-based Message Authentication, Reporting, and Conformance).

Search the header for lines that say "SPF: pass" or "DKIM: pass" or "DMARC: pass." If these say "pass," the email passed the checks set up by the domain it claims to come from — a good sign it is legitimate. If they say "fail" or "neutral," the email did not pass those checks, which means either the sender is not who they claim to be, or something went wrong in transit. If these lines do not appear at all, the receiving email service did not check them, which is less common with major providers.

If an email claims to be from your bank or a company you know, but the SPF, DKIM, or DMARC checks failed, treat it as suspicious. Do not click links or read attachments. Instead, go directly to the company's website (by typing the address yourself, not by clicking a link) and contact them to ask whether they sent the email.

When you need help from the email provider or law enforcement

If you are being harassed, threatened, or defrauded through email, the header alone will not be enough to identify the person. Email providers keep logs that connect IP addresses to account creation dates, payment information, and sometimes phone numbers or recovery email addresses — but they will not share this information with you directly.

Report the email to the provider. In Gmail, click the three dots and select "Report phishing" or "Report spam." In Outlook, click "Junk" and then "Phishing." In Yahoo, click "Spam." These reports go to the provider's security team, who can investigate further and may take action against the account.

If the email involves a crime — threats, extortion, fraud, or harassment — report it to the FBI's Internet Crime Complaint Center (IC3) at ic3.gov, or to your local police department. Provide them with the full email header and any context about why you received it. Law enforcement can subpoena the email provider for account information that you cannot access yourself.

Why you should be cautious about what headers reveal

An email header can reveal the server infrastructure of a company, which is information that could be useful to someone trying to attack that company's network. For this reason, do not share full email headers publicly or on social media, especially if they come from a business email address. If you need to show someone a header for troubleshooting, remove or redact sensitive server names and IP addresses first.

Also be aware that headers can be misleading even when they are not forged. A legitimate email from a company might show an IP address in a different country because that company uses cloud servers hosted overseas. A delayed email might show multiple "Received:" lines because it bounced between servers or sat in a queue. The header tells you what happened, but not always why.

Frequently Asked Questions

Can I find out someone's home address or phone number from their email header?

No. The header shows you the server or internet provider, not the person. Even if you know the IP address, you would need a subpoena to get the provider to reveal who was using that IP at that time. If you need to identify someone for legal reasons, contact law enforcement.

What does it mean if an email has no "Received:" lines?

It usually means the email was sent locally within a network or organization, so it never traveled between external servers. It could also mean the header was stripped or altered. If you are suspicious about the email's origin, report it to your email provider.

If an email fails SPF or DKIM checks, is it definitely a scam?

Not always. Legitimate emails can fail these checks if they were forwarded, if the sender's domain is misconfigured, or if the email was delayed in transit. But a failed check is a red flag — do not click links or read attachments until you have confirmed the email is real by contacting the sender through a different method.

Can someone trace my email back to me using the same methods?

Yes, if you send an email from your personal email account, your IP address will appear in the header. If you want to hide your IP, you can use a VPN (virtual private network) before sending, or use an anonymous email service. Keep in mind that anonymous services have their own limitations and may not work with all email providers.

What is the difference between the "From:" and "Return-Path:" fields?

"From:" is what the sender put in the message — it is what you see in your inbox. "Return-Path:" is where the email system will send bounced messages or delivery failures. If these two addresses are different, it can be a sign the email was forwarded or that the sender is using a service that handles replies differently.