SPF records tell receiving servers which IPs can send email for your domain.
Steps
- Go to Domains → DNS Manager
- Click the pencil icon next to your domain
- Click Add Record
- Fill in:
- Type: TXT
- Name: @
- TTL: 3600
- Value: Your SPF record (see examples below)
 
- Click Confirm
Common SPF Records
Basic (your server only):
v=spf1 ip4:192.0.2.1 -all
With Google Workspace:
v=spf1 ip4:192.0.2.1 include:_spf.google.com -all
With multiple services:
v=spf1 ip4:192.0.2.1 include:_spf.google.com include:spf.mailgun.org -all
Allow your server + MX records:
v=spf1 a mx -all
SPF Syntax
- v=spf1- Always start with this
- ip4:192.0.2.1- Allow specific IP
- include:domain.com- Include another SPF record
- a- Allow server's A record IP
- mx- Allow all MX servers
- -all- Reject all others (use- ~allfor soft fail)
Finding Your Server IP
Check your hosting Overview page or email settings for the correct IP address.
Testing
After adding the record:
dig TXT yourdomain.com nslookup -type=txt yourdomain.com
Or use online SPF checkers.
Important
- Only one SPF record per domain
- Keep under 10 DNS lookups (includes count)
- Update when changing email providers
- DNS propagation takes up to 48 hours
Related: Creating MX Records
