SPF (Sender Policy Framework) is an email authentication protocol that helps prevent unauthorized senders from sending emails using your domain. It works by verifying that SendGrid is allowed to send on your behalf.
This guide explains how to configure SPF for SendGrid, a cloud-based email delivery service used for sending transactional and marketing emails.
Adding SendGrid to your domain’s SPF record is optional. When you authenticate your domain in SendGrid, the platform uses subdomain alignment, which ensures DMARC compliance without needing SPF alignment.
However, if you’d still like to include SendGrid in your existing SPF record, you can add the following entry:
Include String | include:sendgrid.net ~all |
Note: if you’re already using Sendmarc for SPF management, simply copy ‘include:sendgrid.net ~all’ and follow the steps here.
To authorize SendGrid to send emails on your domain’s behalf:
Example of an updated SPF record:
Host | Type | Value |
---|---|---|
@ or blank | TXT | v=spf1 include:another.net include:sendgrid.net ~all |
Example of a new SPF record:
Host | Type | Value |
---|---|---|
@ or blank | TXT | v=spf1 include:sendgrid.net ~all |
Allow up to 48 hours for DNS propagation, depending on your DNS host.
For detailed instructions on how to update your SPF record through Sendmarc, refer to the Sendmarc SPF Setup Documentation.
Refer to SendGrid’s official documentation for SPF setup here.
Find out how to configure your SendGrid DKIM settings here.