Description
Mail servers can check whether a sender is authorized by SPF records before accepting or classifying email.
This library implements the Sender Policy Framework used in SMTP workflows. It is useful for mail filters, MTAs, and security tools that need to evaluate DNS-based sender authorization and reduce spoofed email.
It does not secure mail alone. Correct DNS records, mail-server configuration, logging, and policy decisions determine how SPF results are used.