A Sender Policy Framework (SPF) record specifies which mail servers are authorized to send email on behalf of your domain. This helps protect your domain from email spoofing and ensures your emails are delivered successfully. When a recipient's mail server receives an email, it checks the SPF record to verify if the email is sent from an authorized server. If the server is not authorized, the email is more likely to be marked as spam.

If you use Gmail (Google Workspace), it's essential to set up an SPF record. The SPF record for Google Workspace typically looks like this:

  • v=spf1 include:_spf.google.com ~all

Having a correct SPF record is critical for email deliverability. To set up an SPF record for your Gmail (Google Workspace) email, follow these steps:

  1. Sign in to Your DNS Provider Account
    • Log in to the account where your domain is hosted.

  2. Navigate to DNS Management

  3. Create a New TXT Record

  4. Enter following details in the new record:

    1. Type: TXT
    2. Name/Host/Alias: Enter @ or leave it blank
    3. Time to Live (TTL): Enter 3600 or use the default value
    4. Value: v=spf1 include:_spf.google.com ~all
  5. Save the changes to create the TXT record.


Below is the example of how the DNS entry look like for an SPF record (Cloudflare)

Important Notes:
  • Single SPF Record Per Domain: Ensure your domain has only one SPF record. If you use multiple email providers, combine their SPF records into a single entry.
  • Check for Existing SPF Records: If there is already an SPF record for your domain, edit it to include Google Workspace without creating a new one. For example, if you use another email service, your SPF record might look like this:
    • v=spf1 include:_spf.google.com include:another-provider.com ~all
  • Valid for Business Emails Only: SPF is applicable on business emails only. You don't have to worry about if you're using a free Gmail accounts.