views:

31

answers:

2

Hi

Is there away to know original email sender IP, I mean the client machine which is used to send the email not the smtp sever.

where in the header if any?

A: 

Sometimes it's included in the headers, but more often than not it is not.

So fortunately, no, there is no reliable way to tell the email sender's IP if it's not in the headers. I imagine it would be a big privacy issue if that wasn't the case.

quantumSoup
+1  A: 

The address will be in the last Received: header in the message headers.

Note, that if the user used some proxy (SOCKS or HTTPS), you'll see proxy's IP. Also the record can be forged by putting fake Received: headers to the bottom and making it look like the sender is just a *re*sender.

Eugene Mayevski 'EldoS Corp
Also, trivially spoofable -> commonly spoofed by spammers.
Piskvor
Also, good to know that some email providers like GMail tend to hide IP addresses of their clients.
sanmai