Sender Policy Framework

Overview#

Sender Policy Framework (SPF) is an email authentication protocol designed to detect forging sender addresses during the delivery of the email and is defined in RFC 7208Sender Policy Framework alone though is limited only to detect a forged sender claimed in the envelope of the email which is used when the mail gets bounced. Only in combination with DMARC it can be used to detect forging of the visible sender in emails (email spoofing), a technique often used in phishing and email spam.

SPF allows the receiving mail server to check during email delivery that a email claiming to come from a specific domain is submitted by an IP Address authorized by that DNS Domain's administrators. The list of authorized sending hosts and IP addresses for a domain is published in the DNS Resource Records for that DNS Domain.

Sender Policy Framework Implementation#

Compliance with SPF consists of three loosely related tasks: Thus, the key issue in SPF is the specification for the new DNS information that domains set and receivers use. The records laid out below are in typical DNS syntax, for example:
"v=spf1 ip4:192.0.2.0/24 ip4:198.51.100.123 a -all"
"v=" defines the version of SPF used. The following words provide mechanisms to use to determine if a domain is eligible to send mail. The "ip4" and "a" specify the systems permitted to send messages for the given domain. The "-all" at the end specifies that, if the previous mechanisms did not match, the message should be rejected.

More Information#

There might be more information for this subject on one of the following: