Do the IP addresses in an email header include information from the device from which the mail is being sent, or from the mail server?
|
Usually, each machine on which the mail transits:
Here is an example in one of the 100+ spams that I daily receive:
Header lines are added in "reverse order": each mail server adds its line at the beginning of the header. So here my mail server (arges.bolet.org) received a connection for a mail which, at the SMTP level, was destined to me (over the connection, the other machine sent: This first (Spamassassin rated that specific spam with a whooping 20.5 score, and I automatically zap incoming emails with a score of 5.0 or more.) |
|||
|
|
|
It will include the ip address of your device (more particularly, the address of the router that forwards packets from your work station), and all the mail servers through which it is forwarded from. |
|||
|
|
|
It is common that every mail servers in the delivery chain add a line similar to
The format is not specified and varies. Exposing the previous mail server during transit is common because it helps a lot in fighting spam. But exposing the very first sender is often undesirable for privacy and security reasons. Some mail provider therefore omit it from the header and other mail providers treat the original sender just like any other source. As a side note: "Received" headers can be forged, so you always have to start reading them from the top and carefully validate them. |
|||||
|
|
That choice is completely up to the server the device talks to. It could include a Logically speaking, it depends on whether you consider the device or the server to have originated the email. For example, web-based services such as GMail generally consider the server to have originated the email, so no information to identify the device is included. More traditional email services accessed by IMAP and POP often do consider the end device to have originated the email. |
|||
|
|
