what addresses are in the first "received:" entry in email header

ne flag

I am trying to figure out whether an email header contains the IP address of the host who sent the email.

The header is supposed to have a number of received: fields, which list that one mail server has received this email from another.

What exactly does the first received: header contain? IP of the host, who sent email or IP of the email sender's mail server?

au flag

Short answer is it depends. The headers are added by each server that handles the message along the chain and shows its own hostname/address, and who it got the message from.

If a client simply uses something like POP3/IMAP in Outlook, and sends to their ISP via SMTP, the ISP's SMTP server will add a header containing their own host name, showing that it was received from the IP address of the user.

If they're using something like Gmail or Exchange, then chances are the message will effectively come directly from the Gmail or Exchange transport servers, so you won't see the actual sender's address in the headers.


Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.