---
title: "How To Create An SPF Record: Crucial Points To Keep In Mind Creating & Publishing SPF Records For Your Domain | DuoCircle"
description: "Join the thousands of organizations that use DuoCircle Find out how affordable it is for your organization today and be pleasantly surprised.Interested in"
image: "https://www.duocircle.com/images/og-default.png"
canonical: "https://www.duocircle.com/content/sender-policy-framework/how-to-create-spf-record/"
---

Content 

#  How To Create An SPF Record: Crucial Points To Keep In Mind Creating & Publishing SPF Records For Your Domain 

 Join the thousands of organizations that use DuoCircle Find out how affordable it is for your organization today and be pleasantly surprised.Interested in 

[ Talk to an Expert → ](/contact/) [ See what we make ](/products/) 

## How To Create An SPF Record: Crucial Points To Keep In Mind Creating & Publishing SPF Records For Your Domain

[Fix Your SPF Errors Now](/email/spf-record-check)

With increased mobility and the general rise of technology in every sphere of our lives, privacy has become a mythical commodity. _Organizations, too, face similar threats from individuals with malicious intent_. They invest a considerable amount of resources to create a **secure infrastructure** that enables them to challenge such actions and build firewalls around key points deemed critical for business continuity.

The rapid growth of information flow through emails would mean that the latest techniques, like [Sender Policy Framework](/content/sender-policy-framework), will have to be employed to defeat the state of the art cyber-attacks.

One of the surest ways to prevent mischievous intent is to create a list of mailers who would be allowed to send emails to you, thereby eradicating the possibility of anonymous mailers.

![spf records](https://media.mailhop.org/duocircle/images/2020/11/check-spf-record-1.png) 

### How To Create An SPF Record: Points You Must Keep In Mind

#### IP addresses

_Businesses and organizations use a diverse collection of IP addresses from where mails are sent_. Every IP address has to be gathered, of which a list is prepared. The mail servers used to send emails and are often **vulnerable to phishing** and spamming.

The Sender Policy Framework states that the [TXT record](https://docs.rackspace.com/support/how-to/create-an-spf-txt-record/) has to be added to the DNS record to use a custom domain. It is to **prevent spoofing**.

#### Domains

Like the earlier exercise, a list of all the domains used to send emails needs to be listed. _It must be noted that even the domains which are not used to send emails are to be listed_. It is because they are equally vulnerable to spoofing and **phishing attacks**.

#### Creating the SPF record

The easiest way to create an SPF record is by tagging the IP addresses which are authorized to send emails.

- For third party mailing systems, do not forget to use “include.”
- Once all the IP addresses have been added, end the statement with an \~all”.
- Hence, the [SPF record syntax](/content/sender-policy-framework/spf-record-syntax) needs to include either IP addresses or the name of the third party being used to send mails. It is a straight forward syntax that does not require much effort.
- A simple [SPF record example](/content/sender-policy-framework/spf-record-example) would be: TXT @ “v=SPF1 a include:\_SPF.yahoo.com \~all”

#### Publishing

By merely creating an SPF record will not help you resolve the issue. The server has to be provided with the list for it to identify the threats. Moreover, any improper configuration may lead to [rejecting for Sender Policy Framework](/content/sender-policy-framework/rejecting-for-sender-policy-framework).

Hence, the SPF record has to be published to the DNS.

One can test if the SPF record was published correctly using an [SPF checker](https://www.autospf.com/) after all the steps have been followed. A word of caution here. _The SPF record is not an entirely useful tool_. The reason is that not all mail providers will check for it. But it is still a valuable method to _prevent unwanted bounce backs and spams_.

Knowing how to create an [SPF record](/content/sender-policy-framework/spf-record) is an operative method to counter the numerous threats organizations face during email communication. Although it is not a fool-proof methodology, it still ensures a robust system for improved mail delivery and **reduced spoofing attacks**.

MORE – [Sender Policy Framework Office 365](/content/sender-policy-framework/sender-policy-framework-office-365)

##### Join the thousands of organizations that use DuoCircle

---

Find out how affordable it is for your organization today and be pleasantly surprised.

[Auto SPF - Sign Up FREE](/email/spf-record-check)Interested in our Partner Program for MSPs and VARs? Visit Our [MSP Partner Program](/msp-partner-program).

## Ready to talk?

Same-day response from someone technical. We tell you yes or no quickly. If yes, we get to work.

[Talk to an Expert→](/contact/)[See what we make](/products/)

```json
{"@context":"https://schema.org","@type":"Organization","name":"DuoCircle LLC","url":"https://www.duocircle.com","logo":{"@type":"ImageObject","url":"https://www.duocircle.com/images/duocircle-logo.png"},"description":"DuoCircle is a portfolio of specialized email products covering protection, authentication, delivery, and routing. We deliver about 90% of category-leader capability at roughly half the price, backed by experts who own the outcome. Trusted by 50,000+ organizations since 2014.","subOrganization":[{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138898167","name":"DMARC Report","url":"https://dmarcreport.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897474","name":"AutoSPF","url":"https://autospf.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897912","name":"Phish Protection","url":"https://www.phishprotection.com"}],"sameAs":["https://www.linkedin.com/company/duocircle","https://x.com/duocirclellc","https://www.facebook.com/duocirclellc","https://www.g2.com/products/phish-protection-by-duocircle/reviews","https://github.com/duocircle","https://www.crunchbase.com/organization/duocircle-llc"],"contactPoint":{"@type":"ContactPoint","contactType":"customer support","url":"https://support.duocircle.com"},"knowsAbout":["Email Security","Email Authentication","SPF","DKIM","DMARC","Phishing Protection","Spam Filtering","SMTP Relay","Email Deliverability","Email Forwarding"]}
```

```json
{"@context":"https://schema.org","@type":"WebSite","name":"DuoCircle LLC","url":"https://www.duocircle.com","description":"DuoCircle is a portfolio of specialized email products covering protection, authentication, delivery, and routing. We deliver about 90% of category-leader capability at roughly half the price, backed by experts who own the outcome. Trusted by 50,000+ organizations since 2014.","publisher":{"@type":"Organization","name":"DuoCircle LLC","url":"https://www.duocircle.com","logo":{"@type":"ImageObject","url":"https://www.duocircle.com/images/duocircle-logo.png"},"description":"DuoCircle is a portfolio of specialized email products covering protection, authentication, delivery, and routing. We deliver about 90% of category-leader capability at roughly half the price, backed by experts who own the outcome. Trusted by 50,000+ organizations since 2014.","subOrganization":[{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138898167","name":"DMARC Report","url":"https://dmarcreport.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897474","name":"AutoSPF","url":"https://autospf.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897912","name":"Phish Protection","url":"https://www.phishprotection.com"}]}}
```

```json
[{"@context":"https://schema.org","@type":"WebPage","name":"How To Create An SPF Record: Crucial Points To Keep In Mind Creating & Publishing SPF Records For Your Domain","description":"Join the thousands of organizations that use DuoCircle Find out how affordable it is for your organization today and be pleasantly surprised.Interested in ","url":"https://www.duocircle.com/content/sender-policy-framework/how-to-create-spf-record/","speakable":{"@type":"SpeakableSpecification","cssSelector":[".page-answer",".duo-rich-text p:first-of-type"]},"dateModified":"2023-07-29T11:18:05.000Z","datePublished":"2020-11-24T17:48:53.000Z"},{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"DuoCircle","item":"https://www.duocircle.com/"},{"@type":"ListItem","position":2,"name":"How To Create An SPF Record: Crucial Points To Keep In Mind Creating & Publishing SPF Records For Your Domain","item":"https://www.duocircle.com/content/sender-policy-framework/how-to-create-spf-record/"}]}]
```
