logo
Loading...

What is an SPF Record?

Sender Policy Framework, or SPF for short, is a kind of DNS record that identifies the mail servers that are permitted to send emails on behalf of a domain. This guarantees that emails sent from your domain originate from approved servers and helps prevent email spoofing.

How SPF Record Works?

  • You generate an SPF record for your domain that includes a list of approved mail servers' IP addresses or domain names.
  • The receiving server queries the DNS for your domain's SPF record and compares the sending server's IP address with the listed addresses or domain names.
  • If the IP address matches one in the SPF record, the email is accepted; otherwise, it may be flagged as suspicious or rejected based on the SPF policy.

Type

TXT

TTL

SPF

v=spf1 include:_spf.example.com ~all

5 minutes

  • v=spf1: Specifies the SPF version being used.
  • include:_spf.example.com: Authorizes mail servers listed in example SPF record to send emails for the domain.
  • ~all: Soft fails any emails from servers not listed, marking them as suspicious but not rejecting them outright.