How can I know from which IP an email (for which I have the Job ID) was sent?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
if you want to just test your SAP configuration, all you need is to have an email sent to your inbox, you can see the sender IP in the message header. It depends on your email client how you get there, just google for how your email tool lets you view the email source code.
Look for a line like "designates xxx.yyy.zz.123 as permitted sender" in the message header to find the sender ip.
If you do NOT have the email in your inbox (yet), but want to investigate out about a past sendout, then do the following.
IP(s) is / are tied to the Delivery Profile.
Delivery Profile is tied to the Send Classification.
Send Classification can be found in the _Job data view for each sendout.
Find the jobid you're looking for in the sent emails overview.
With that jobid, write an SQL query:
SELECT jobid, SendClassification FROM _job WHERE jobid = 'your Job Id'
This gives you the name of the send classification that was used for that sendout. e.g. "Default Commercial"
You can find this classification in email studio, and see what delivery profile is referenced there.
Now using that send classification / delivery profile, send yourself an email, and go back to the beginning of this post.
There is a logical limit to this of course, you cannot determine if somebody has changed the delivery profile or send classification SINCE the sendout. But since those changes usually are not happening too often, it's a good enough approach in most cases that are not a criminal investigation. :)