macOS / binaries /

spfquery

/usr/bin/spfquery
Checks if a given set of e-mail parameters matches a domain's spf policy

spfquery checks if a given set of e-mail parameters (e.g., the SMTP sender's IP address) matches the responsible domain's Sender Policy Framework (SPF) policy.

source: man