Keep every client domain under the SPF 10-lookup limit
Each tool a client adds (Google Workspace, Microsoft 365, HubSpot, Zendesk, Mailchimp...) adds an include: to their SPF record. Past 10 DNS lookups, receivers return permerror, SPF fails, and mail starts landing in spam. Flattening by hand fixes it until a provider changes its IP ranges. SPFTrim will flatten the SPF records of all your client domains on Cloudflare, re-check them every hour, and update them when anything changes.
How it will work
- Connect Cloudflare. Create a Cloudflare API token limited to Zone > DNS > Edit for the zones you choose. Nothing else.
- Review the change. SPFTrim shows the current record, its lookup count and the flattened replacement as a diff. Nothing changes until you approve. Your original record is kept, so you can roll back with one click.
- Stay fixed. Every hour SPFTrim re-resolves each provider's includes. When an IP range changes, it updates the records and emails you what changed. If anything fails, it alerts you instead of guessing.
Cloudflare DNS only in the first version.
Why not a free flattener?
One-off flattening tools give you a static list of IPs that goes stale the day a provider changes its ranges, and then SPF fails for whatever comes from the new IPs. Open-source flatteners work if you run and watch a cron job for every client. Hosted services handle it but charge per domain, often $10 to $37 a month each. SPFTrim is for agencies and IT providers with many small client domains: hosted, with nothing to run, at a flat price.
Pricing
Agency
Up to 10 domains. Hourly checks, automatic updates, change emails, rollback.
Agency Plus
Up to 50 domains. Everything in Agency.
Join the waitlist
SPFTrim isn't available yet, and you can't buy it today. Join the waitlist and we'll email you when it is. Joining is free and commits you to nothing.
Questions
Is this a Cloudflare product?
No. SPFTrim is independent and not affiliated with Cloudflare. It uses Cloudflare's public DNS API with a token you create and can revoke at any time.
What if a provider uses macros or exists:?
Those can't be flattened safely. SPFTrim keeps them as they are and counts them toward the limit.
Does it handle DKIM and DMARC?
No. SPFTrim does one job: keep SPF valid. DKIM signing stays with your email providers.
Questions?
Open an issue on GitHub.