How To Create Spf Record For Sendgrid

It is crucial for both businesses and individuals to ensure successful email delivery. A significant aspect in preventing emails from being marked as spam is the implementation of an SPF (Sender Policy Framework) record. This article will offer a detailed guide on how to create an SPF record for SendGrid.

What is an SPF Record?

An SPF record is essentially a type of Domain Name Service (DNS) record that identifies which mail servers are permitted to send email on behalf of your domain. The main aim of an SPF record is to prevent spammers from sending messages with forged From addresses at your domain.

Setting up an SPF Record for SendGrid

To set up an SPF record for SendGrid, you need to add a TXT record in your domain’s DNS settings. Here is a step-by-step guide on how to do it.

Step 1: Navigate to your DNS settings

First, log in to your domain hosting provider and navigate to your DNS settings. Different providers have different DNS management interfaces. If you’re unsure where to find these settings, check your provider’s help documentation.

Step 2: Add New TXT Record

Next, look for the option to add a new record and select TXT as the record type.

Step 3: Enter the Record Details

For the name/host field, enter @ to represent your root domain. For the value, enter v=spf1 ~all. This value allows SendGrid’s servers to send emails on behalf of your domain.

Step 4: Save Your Changes

Finally, save your changes and wait for them to propagate. This could take up to 48 hours, but usually happens much faster.

Testing the SPF Record

Once you’ve set up the SPF record, you will want to confirm that it’s working correctly. There are online tools available that can check your domain’s SPF record, such as MXToolBox’s SPF Record Lookup tool.


Setting an SPF record for SendGrid is a straightforward process that can significantly improve your email deliverability. Remember, it’s only one part of your overall email authentication setup, which may also include DKIM and DMARC records.