Some email services, like Mailgun or Freshdesk, publish SPF records that are extremely complex.
These records can require 5 or more DNS lookups just for a single include: statement,
quickly consuming your total SPF 10 DNS lookup limit.
When combined with other services like Google Workspace or Microsoft 365, you can easily exceed the limit and trigger an SPF PermError, which causes emails to fail DMARC checks and may result in rejected or spam-filtered messages.
Vendors like Mailgun and Freshdesk need to support a large network of sending servers worldwide.
Their published SPF records often contain multiple include: statements that expand into several more nested lookups.
Example: The SPF record for Mailgun (include:mailgun.org) can consume 5 or more lookups by itself.
Freshdesk is similar, with include:email.freshdesk.com often using 5-6 lookups.
v=spf1 include:mailgun.org include:email.freshdesk.com include:_spf.google.com ~all
This record alone may already exceed 10 DNS lookups, resulting in an SPF failure.
SPF Guru provides a simple way to reduce a single vendor's SPF record to one DNS lookup without replacing your entire SPF strategy.
By appending a small macro to the end of the vendor's domain, SPF Guru dynamically resolves and flattens all of their nested lookups in real-time.
._i.%{ir}.my.spf.guru
You simply add this to the end of the vendor's domain inside your SPF record.
Instead of:
include:mailgun.org
Use:
include:mailgun.org._i.%{ir}.my.spf.guru
Instead of:
include:email.freshdesk.com
Use:
include:email.freshdesk.com._i.%{ir}.my.spf.guru
SPF Guru will handle all of the nested SPF records behind the scenes and return a single flattened result.
Original record (likely to exceed 10 lookups):
v=spf1 include:mailgun.org include:email.freshdesk.com include:_spf.google.com ~all
Optimised record using SPF Guru:
v=spf1 include:mailgun.org include:email.freshdesk.com._i.%{ir}.my.spf.guru include:_spf.google.com ~all
Here, Freshdesk is offloaded to SPF Guru, dropping it from 5+ lookups down to just 1. The rest of your SPF record remains unchanged, giving you maximum flexibility.
include:mailgun.org)include:email.freshdesk.com)include:mail.zendesk.com)include:spf.hubspotemail.net)include:_spf.salesforce.com)Any of these can be optimised by appending ._i.%{ir}.my.spf.guru to their domain in your SPF record.
This solution is perfect when:
SPF Guru acts as a helper for just those vendors that would otherwise push you over the limit.
SPF lookup limits are one of the most common causes of SPF PermError issues. By selectively optimising complex vendor records with SPF Guru, you can keep your SPF record simple, compliant, and reliable.
Even if your SPF record includes multiple services like Google, Microsoft 365, Mailgun, and Freshdesk, you now have a clear path to stay under the limit without sacrificing functionality.
Try it today, and take back control of your email deliverability.