Below is the syntax for SPF record :
Example: v=spf1 a mx ip4:192.168.0.1 include:spf.example.com -all
|The SPF record version
|Match if IP has a DNS ‘A’ record in given domain .
|Match if IP is one of the MX hosts for given domain name
|Match IP address
|The specified domain is searched for an ‘allow’
|Always matches. It goes at the end of your record
having a valid and accurate SPF record will lead to improved authentication coverage, deliverability and help promote your desired level of security for your domains.
Mechanisms can be used to describe the set of hosts which are designated outbound mailers for the domain and can be prefixed with one of four qualifiers:
The default qualifier is ‘+’, i.e. ‘Pass’.Mechanisms are evaluated in order. If no mechanism or modifier matches, the default result is “Neutral”.If a domain has no SPF record at all, the result is ‘None’. If a domain has a temporary error during DNS processing, you get the result ‘TempError’. If syntax or evaluation error occurs (eg. the domain specifies an unrecognized mechanism) the result is ‘PermError’.
Evaluation of an SPF record can return any of these results:
|The SPF record designates the host to be allowed to send
|The SPF record has designated the host as NOT being allowed to send
|The SPF record has designated the host as NOT being allowed to send but is in transition
|accept but mark
|The SPF record specifies explicitly that nothing can be said about validity
|The domain does not have an SPF record, or the SPF record does not evaluate to a result
|A permanent error has occurred (eg. badly formatted SPF record)
|A transient error has occurred
|accept or reject