Technical setup

How to Set Up an SPF Record for Office 365 - Step-by-Step Guide

Noel
LAST UPDATED
January 16, 2025
READING TIME
7 min.

Email authentication is critical in keeping your emails away from the spam folder.

It lets email providers know that you are who you claim to be and not some cyber criminal sending unauthorized emails. This helps increase your open rates.

The SPF email authentication method allows you to decide which servers are permitted to send emails from your domain.

If an email comes from a server not included in your SPF record, it will fail authentication and potentially not be delivered at all.

Today we’re showing you how to set up an SPF record for Office 365.

What is an SPF record?

SPF stands for Sender Policy Framework. It’s an email authentication mechanism used by email servers to verify the authenticity of emails coming from a specific domain.

Its goal is to prevent phishing attempts and deter scammers from sending fraudulent emails that falsely claim to be coming from a domain when they really are not.

Setting up an SPF record is not mandatory; however the extra layer of security increases the trustworthiness of your domain in the eyes of internet service providers.

Additionally, having an SPF record in place increases the likelihood of your emails bypassing spam filters and reaching your audience’s inbox.

Setting Up a SPF Record for Office 365 📝

To set up an SPF for Office 365, you must add a DNS TXT record to your domain’s DNS settings, covering both your primary domain and any associated subdomains.

Your domain’s DNS settings can be found in your domain provider’s account. This could be GoDaddy or Namecheap, or if your name servers point elsewhere, it could be your hosting company.

Once you’re inside your DNS settings, locate your existing SPF record, if there is any.

You don’t want to have multiple SPF records as this could lead to complications. An SPF record is designed to allow you to add multiple senders and IP addresses to it.

For the examples below, if you already have an SPF record, you only need to add include:spf.protection.outlook.com to the value field.

So, if this is your SPF record:

v=spf1 include:spf.protection.somesendingdomain.com -all

Change it to:

v=spf1 include:spf.protection.somesendingdomain.com include:spf.protection.outlook.com -all

Setting Up an Office 365 SPF Record for All Domain Providers

If you don’t have an SPF record yet, here’s how to add one for Office 365.

While still in your domain’s DNS settings:

  1. ➡️ Click on “Add” or “Create new record”
  2. ➡️ Choose TXT
  3. ➡️ Put @ in the name field
  4. ➡️ Add the following record to the value field: v=spf1 include:spf.protection.outlook.com -all
  5. ➡️ Click save

Adding an Office 365 Record to Namecheap

  1. ➡️ Log in to Namecheap
  2. ➡️ Go to Domain list
  3. ➡️ Select your domain
  4. ➡️ Click on Advanced DNS
  5. ➡️ Click on New record
  6. ➡️ Choose TXT as the record’s type
  7. ➡️ Put @ in Host
  8. ➡️ Add the record to the Value field: v=spf1 include:spf.protection.outlook.com -all
  9. ➡️ Click ✔️

Configuring an Office 365 Record on Cloudflare

  1. ➡️ Log in to Cloudflare
  2. ➡️ Find your domain on Cloudflare’s dashboard and click on it
  3. ➡️ Click on the DNS button
  4. ➡️ In the DNS section, create a new DNS record
  5. ➡️ For type, select TXT
  6. ➡️ In the “Name” field, add @
  7. ➡️ Paste the following record in the Value field: v=spf1 include:spf.protection.outlook.com -all
  8. ➡️ Save

Setting up an Office 365 record on Bluehost

  1. ➡️ Log in to Bluehost
  2. ➡️ Go to My domains
  3. ➡️ Choose your domain
  4. ➡️ Go to DNS
  5. ➡️ Click on “Add new record”
  6. ➡️ Choose TXT record
  7. ➡️ Put @ in the Host or Name field
  8. ➡️ In the Value field, enter: v=spf1 include:spf.protection.outlook.com -all
  9. ➡️ Save!

An SPF Record Alone Is Not Enough ⚠️

Setting up your SPF record for Office 365 is a good step toward completing your technical setup.

But there are more components to take care of, like:

It’s also important to warm up your email or sending domain.

Starting to send out hundreds of daily emails out of nothing is a sure way to alert spam filters.

A tool like lemwarm can help you warm up your email and increase your open rates to 65% or more.

Noel

What you should look at next

What you should look at next

Technical setup
How to Set Up an SPF Record for Google Workspace
Learn how to set up an SPF record for Google Workspace to boost your email open rates and enhance email security. Our step-by-step guide will show you how to configure it on popular domain providers.
Technical setup
How to Configure an SPF Record for Zoho Mail
Learn how to set up an SPF record for your Zoho Mail account to boost open rates and prevent phishing attacks. Follow step-by-step instructions for various domain providers, including GoDaddy, Namecheap, and Cloudflare.
Technical setup
How to Quickly Add an SPF Record to GoDaddy
Learn how to set up an SPF record on GoDaddy. Follow our step-by-step instructions to avoid the spam folder and enhance email security.
Technical setup
How to Add a SPF Record to Namecheap
Learn how to set up an SPF record on Namecheap to enhance email security and avoid spam. Follow our step-by-step guide to authenticate your emails and improve email deliverability.
Technical setup
How to Configure an SPF Record on Cloudflare Step-By-Step
Learn how to set up an SPF record on Cloudflare to improve the deliverability and security of your emails. Our step-by-step instructions will show you how to quickly complete your SPF setup.
Technical setup
How to Set Up an SPF Record in Your OVH Account
Learn how to set up an SPF record for your domain on OVH. Follow our step-by-step guide to boost deliverability and enhance email security.
Email Deliverability
SPF generator - Create your SPF record in a few clicks
Easily create your SPF record with our SPF generator. Specify your email service provider and get a ready-to-use SPF record to boost email deliverability and security.

Send emails that actually get delivered with lemwar...