Let's say I have:
- public IP address A: sending host
- public IP address B: mail relay for A
- public IP address C: receiver MX
What IP does C look at?
Does he try to find the IP of A in the "Received" headers (e.g. by trying to find the first non-private IP)? Or does he use the source IP address of the connection established in this case from B?
I see that for example googlemail seems to do the latter. While it looks like one of our local providers seems to do the former.
https://www.rfc-editor.org/rfc/rfc7208 does not really enlighten me concerning this basic point. I did find the circumstantial phrase
Because SPF evaluation is based on the IP address of the "last" sending SMTP server
in section 10.3. but I guess there needs to be a clearer definition somewhere.