How SPF is checked
SPF looks at the server that delivered the message and the domain in the envelope sender (the Return-Path), not the From address people see. That is why SPF alone does not stop look-alike From addresses, and why DMARC checks that the domains line up.

