---
schema_version: "1"
id: c63eac39cd406f1d68e0929a7417e9535e20978e91d4461d9f8eb91fd5a2e1d5
title: Include Salesforce in Your SPF Record
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/emailadmin_spf_include_salesforce.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.emailadmin_spf_include_salesforce.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 9d052e025e8189170960ee7ed1a17a6d43bccd96af9a7bac0afac505afdf5cdf
description: If you don’t enable Email Security Compliance, we recommend that you set up a Sender Policy Framework (SPF) record for your email domain. To pass SPF checks, include Salesforce in that record.
products:
  - Security
release: "264"
---
# Include Salesforce in Your SPF Record

If you don’t enable Email Security Compliance, we recommend that you set up a Sender Policy Framework (SPF) record for your email domain. To pass SPF checks, include Salesforce in that record.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: all editions except <strong>Database.com</strong></td></tr></tbody></table>

1. If you don’t already have one, create an SPF record. There are many online resources available if you need assistance with setting up your SPF record.
2. Include `_spf.salesforce.com` in your SPF record when sending mail from the Salesforce application.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-security-264-0-0-production-enus/8cecd769-ab2d-4e07-addf-c4f2927925e1/images/icon_note.png)
    
    Note Only use `_spf.salesforce.com`. Other SPF records for the salesforce.com domain aren’t relevant to sending mail from the Salesforce application.

Example SPF records:

- `v=spf1 mx include:_spf.salesforce.com ~all`
- `v=spf1 mx ip4:204.14.234.64/28 ip4:204.14.232.64/28 ip4:182.50.78.64/28 ip4:96.43.144.64/31 ip4:96.43.148.64/31 include:_spf.salesforce.com ~all`

#### See Also

- [Sender Policy Framework (SPF)](https://help.salesforce.com/s/articleView?id=xcloud.emailadmin_spf_overview.htm&release=264.0.0&type=5 "The Sender Policy Framework (SPF) email authentication method aims to reduce spam and fraud by making it harder for email senders to hide their identity. SPF detects email spoofing by providing a process to verify who is permitted to send emails on your behalf. SPF improves message deliverability, protects the credibility and reputation of your domains, and enhances user trust and confidence. Salesforce uses SPF and recommends that you do, too.")
- [_Knowledge Article_: Sender Policy Framework and Salesforce SPF Records](https://help.salesforce.com/articleView?id=000315520&type=1&mode=1&language=en_US)