This document contains information to authorize external servers and services, such as Google Workspace, Microsoft 365, or bulk mailing platforms, to send mail with your domain, by customizing the SPF record from cPanel.
The SPF record indicates which servers can send mail on behalf of your domain. cPanel creates it automatically with the hosting server. If you also send mail from another service and do not add it to the SPF, those messages may arrive in spam or be rejected.
Access: log in to cPanel from the client portal → Log in to cPanel, or at https://yourdomain.com/cpanel. Then open Email → Email Deliverability, click on Manage next to the domain and, in the SPF section, on Customize.
Options to authorize servers
- Additional hosts (+a): the name of a server, for example
sending.yourdomain.com. The hosting's main mail server is already included. - Additional MX servers (+mx): authorizes sending to servers that receive mail for another domain.
- IP blocks (IPv4 and IPv6): an IP or a range, for example
203.0.113.10or203.0.113.0/24. The hosting IP is already included. - Include list (+include): the most common option for external services. You add the domain indicated by your provider and all their servers are authorized.
Values of the most used services
- Google Workspace:
_spf.google.com - Microsoft 365:
spf.protection.outlook.com - Bulk mailing platforms and online stores: use the value indicated by each provider's help documentation.
Adding an external service
- Under Additional Configurations, click on Add a "+include" Item and type the provider's value, for example
_spf.google.com. - If the provider gave you IPs instead of a domain, add them under IP Address Settings.
- Check in Preview of the Updated Record that all the services you send mail with are present.
- Click on Install a Custom SPF Record.
Important: a domain must have a single SPF record. If a provider asks you to "create an SPF record", do not add another one: add its value to the existing one using this screen. Two SPF records invalidate both.
Each include adds DNS lookups, and the maximum allowed is 10. If you exceed it, SPF fails. Remove the services you no longer use.
If the domain's DNS are hosted with another company, the change is not applied from cPanel: use Copy in the SPF section and paste the record into that company's DNS panel.
To reject unauthorized servers with -all, once you have added all services, consult the article DomainKeys and SPF - Prevent identity spoofing.
Frequently asked questions
- Emails sent from the external service go to spam: its
includeor IP is missing in the SPF. Also check if the provider requests configuring DKIM with their own record. - I added the include and it still fails: DNS changes can take a few hours to propagate. If the DNS are hosted elsewhere, check that you updated the record there.
- The SPF status shows an error after editing it: there may be two SPF records or more than 10 DNS lookups. Use Repair to return to the suggested record and add the services again.
- I stopped using Google Workspace or Microsoft 365: remove their
includefrom the SPF.
If you need help configuring SPF, open a ticket from the client portal or consult via the site's online chat.
