SPF Record Generator
Pick the services that send email for your domain and get a ready-to-paste SPF record.
How it works
Add the record as a single TXT record on your root domain (host @). If you already have an SPF record, replace it - two SPF records break SPF entirely.
Each include costs at least one DNS lookup and some providers nest more. After publishing, run the SPF checker to see the real total.
Automate it with the API
Run this check for every address in your product, from any language.
curl -X POST "https://www.mailrambo.com/v1/verify?detail=full" \
-H "Authorization: Bearer $MAILRAMBO_KEY" \
-H "Content-Type: application/json" \
-d '{"email": "jane@acme.com"}'
# -> detail.dns: { spf, dmarc_policy, dkim_selectors, bimi, ptr, mx_hosts }
API reference · Get a free API key
Frequently asked questions
Where do I add the SPF record?
In your DNS provider, as a TXT record on the root of your domain (host @ or blank).
How many includes can I use?
SPF is limited to 10 DNS lookups in total, including nested ones. Most setups with 3-4 providers are fine.
Related tools
SPF Record Checker
Validate SPF and count DNS lookups against the 10-lookup limit.
DMARC Record Generator
Create a DMARC record with the right policy and reporting.
Email Domain Health Checker
Full deliverability report: MX, SPF, DKIM, DMARC, BIMI and PTR with an A-F grade.
DKIM Record Checker
Find and validate DKIM keys, including key length and revoked selectors.
Run these checks from your code
Verify addresses at signup, clean lists and read SPF/DKIM/DMARC with one API call. 100 free verifications a month, test keys that cost nothing, and the API on every plan.