Information Security Stack Exchange is a question and answer site for information security professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

How I get Real IP of an email sender using Message ID of the said mail?

share|improve this question

marked as duplicate by Terry Chia, Rory Alsop Apr 21 '13 at 15:29

This question was marked as an exact duplicate of an existing question.

There is no sure way to do that. Some email routines use the name or IP of the source computer when generating the message id, some don't. And those which do, don't necessarily do that in Ryde same manner. That being said, are you talking about specific message ids? – mkl Apr 21 '13 at 14:24

The Message-ID header can be chosen arbitrarily by the client, so you cannot reliably expect to find the client IP address (if any) encoded in it.

This page lists known behaviour of many email sending softwares; some (e.g. mutt) will encode the full name of the sending machine in the Message-ID, but this is the name as the machine knows it, so it can be "localhost", which is not very informative. Moreover, even if the sending software encoded its known IP address in the header, it would often be a local-only address such as because of the high prevalence of NAT. Finally, many emails nowadays are sent through big Webmail platforms like Gmail, so if you find an IP address in it, it will be the address of a Gmail server, not the address of the client.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.