Because I needed something last week to do this and couldn't find any other addins to do this I created a pretty simple Outlook addin that
- Gets the
headers from a Message using the REST API in Office365
a RegEx toget all the IPAddresses from that header
- Then I used one of the many free GeoIP web services out there to query each of the returned IPAddresses from the Regex matches and finally display the result in a table but to Outlook
I've hosted the code up on GitHub here https://github.com/gscales/gscales.github.io/tree/master/MailGeoRoutes so the addin can be added straight from the Repo if you want to try it using (MyAddins - Custom Addins) and
This uses REST to get the header so will only work on Office365 but the same thing could also be done using EWS for OnPrem servers from Exchange 2013 onward.