How to Enable SPF for Domain/Email
Knowledge Base // Email
Enable Sender Policy Framework (SPF) for your Domain/Email
The Sender Policy Framework SPF is a framework to prevent sender address
forgery. In easy words (simplified):
"SPF is used to describe what mail server is allowed to send messages for a domain".
The recipient's mail exchanger queries the DNS record of the sender domain
to get information about the hosts (or IP addresses) authorized to send emails
for the domain. It ensures that the sender envelope (From: header-line) cannot
Click here for more Information about the Sender Policy Framework (SPF) by OpenSPF.org
Update the DNS configuration of your domain and add a "TXT" record to your DNS to enable SPF.
- Domain: yourdomain.tld
- Type: TXT
- Record: v=spf1 a mx -all
v=spf1 ... specifies the protocol
a ... all A and AAAA records are allowed
mx ... all MX records are allowed
-all ... all other hosts are NOT allowed
The above sample shows a typical configuration.
A detailed list of configuration options can be found here (@OpenSPF.org SPF Record Syntax).