I mean Incoming MX server
https://netwinsite.com/surgemail/help/incoming.htm
Incoming messages must be checked with the Backend server before accepting. It should have both from and rcpt address, however from in data command might be different with from in command but I think if there is some internal checking process between 2 servers it can create X-IsFriend at the Incoming MX server.
James