How to Trace an IP Address from an Email Header
Step-by-step tutorial on analyzing RFC 5322 Received headers to find the true originating IP address of an email and avoid spoofing.
When investigating suspicious phishing messages, spoofed CEO fraud, or unexpected marketing spam, the visible From: address in your email client is easily forged.
However, the underlying email header contains an immutable chronological audit trail of every mail server that handled the message. By reading these headers, you can pinpoint the originating IP address.
Accessing Full Email Headers
To inspect the raw headers:
- Gmail / Google Workspace: Open the message → click the three vertical dots (
⋮) near the Reply arrow → select “Show original”. - Microsoft Outlook (Desktop): Double click the email to open in a window → File → Properties → examine “Internet headers”.
- Apple Mail: Select the email → press
Shift + Command + H(or View → Message → All Headers).
How to Read Received: Headers
Email delivery follows RFC 5322. Every Mail Transfer Agent (MTA) that accepts a message inserts a new Received: header line at the very top of the header block.
Because headers are prepended at each hop:
- The topmost
Received:line represents the final destination server delivering the message to your inbox. - The bottommost
Received:line usually represents the server that first introduced the email into the Internet.
Example Header Breakdown
Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com. [209.85.208.41])
by mx.yourcompany.com with ESMTPS id 48a29b48
for <[email protected]>; Sun, 01 Nov 2026 12:15:30 -0000
Received: from smtp-out.sender.com (smtp-out.sender.com. [198.51.100.84])
by mail-ed1-f41.google.com with ESMTPS id xyz987
for <[email protected]>; Sun, 01 Nov 2026 12:15:28 -0000
Received: from internal-client-pc (client-192-0-2-15.isp.net [192.0.2.15])
by smtp-out.sender.com with ESMTP id 12345
for <[email protected]>; Sun, 01 Nov 2026 12:15:20 -0000
Analyzing the Path:
- Originating Sender: The bottommost entry shows
[192.0.2.15]. This was the client device that composed or transmitted the message tosmtp-out.sender.com. - First Relay Server:
smtp-out.sender.comrunning on[198.51.100.84]. - Delivery to Inbox: Transferred to Google’s receiving MX servers
[209.85.208.41].
Copy the IP 198.51.100.84 or 192.0.2.15 and paste it into our IP Address Lookup tool to inspect who owns that server and which country it operates from.
Caveats and Modern Email Privacy
Webmail Clients (Gmail, Outlook.com, Fastmail)
If someone sends an email using Gmail’s web interface or official mobile app, Google strips the sender’s local residential IP address from the email header for user privacy. The earliest IP listed will be Google’s internal datacenter servers (209.85.x.x), not the sender’s home Wi-Fi IP.
Forged Internal Headers
Attackers can manually inject fake Received: headers inside the body text before sending. Always read upwards from the servers you know and trust (such as your own email provider’s initial receiving record) to establish a chain of custody.
Inspect the network profile for this article's featured IP
209.85.220.41