Cum se remediază problemele legate de înregistrările SPF multiple și de eroarea „SPF PermError”
Pe această pagină
- Why multiple SPF records cause problems
- What is the SPF DNS lookup limit?
- How to fix SPF errors in mybox
- Step 1: Check your existing SPF records
- Step 2: Identify your authorized email services
- Step 3: Update your DNS configuration
- Step 4: Check the DNS lookup count
- Step 5: Verify the updated record
- What if SPF PermError continues?
- Summary
An SPF (Sender Policy Framework) record identifies which mail servers are authorized to send email for a domain. If your domain has multiple SPF records or an incorrectly configured SPF policy, receiving mail servers may be unable to verify your messages.
This can result in an SPF PermError, which indicates a permanent problem with the SPF configuration. Depending on the recipient’s email security policies, messages may be rejected or classified as spam.
Why multiple SPF records cause problems
A domain must have only one SPF record for each hostname being checked.
SPF records are published as DNS TXT records and begin with v=spf1.
For example, a domain using mybox might have:
v=spf1 include:_mail.mybox.com ~all
If you configure another email service, it may ask you to add its own SPF record.
You could end up with two separate records:
v=spf1 include:_mail.mybox.com ~all
v=spf1 include:_spf.example.net ~all
This configuration is invalid. When a receiving server discovers multiple SPF records for the same hostname, SPF validation returns a PermError.
The correct approach is to combine all authorized sending services into a single SPF record.
For example:
v=spf1 include:_mail.mybox.com include:_spf.example.net ~all
These values are illustrative. Replace the second provider’s domain with its actual SPF include value, and verify that each sending service is authorized.
What is the SPF DNS lookup limit?
Even if your domain has only one SPF record, validation can fail if it requires too many DNS lookups.
The SPF standard limits an evaluation to 10 DNS-querying mechanisms and modifiers.
Common SPF mechanisms that contribute to this limit include:
includeamxexistsptr- The
redirectmodifier
An include mechanism can reference another SPF record containing additional lookups. These nested lookups also count toward the limit.
If SPF evaluation exceeds the permitted limit, it returns a PermError.
Mechanisms such as ip4, ip6, and all do not count toward this limit.
How to fix SPF errors in mybox
Step 1: Check your existing SPF records
Open a public DNS lookup tool and query the TXT records for your domain.
Identify every record beginning with v=spf1.
If you find multiple SPF records at the same hostname, they must be consolidated.
Other TXT records, such as domain verification records, do not need to be removed.
Step 2: Identify your authorized email services
Determine which services send email using your domain.
These may include:
- mybox email accounts
- External email providers
- Email marketing services
- CRM platforms
- Website applications that send email through a third-party service
Each service may require a specific SPF mechanism.
Do not remove an existing authorization until you have confirmed that the corresponding service is no longer used.
Step 3: Update your DNS configuration
If your DNS zone is managed through mybox:
- Log in to the mybox panel.
- Open Domains.
- Find the domain you want to configure.
- Select Actions → Manage DNS.
- Locate the existing SPF TXT records.
- Combine the required authorizations into one valid SPF record.
- Save your changes.
For more information about DNS management, see Changing DNS records.
If your domain uses external nameservers, make the changes through the provider hosting your authoritative DNS zone.
Step 4: Check the DNS lookup count
Use an SPF validation tool to check how many DNS lookups your record requires.
If the total exceeds 10, review unnecessary mechanisms and redundant services.
Avoid adding mechanisms that are not required by your actual sending configuration.
You can also use the SPF Creator feature in the mybox panel to help configure an SPF policy.
Step 5: Verify the updated record
After saving your changes, check the publicly available SPF record again.
Confirm that:
- Only one SPF record exists at the relevant hostname.
- The syntax is valid.
- The DNS lookup limit is not exceeded.
- All legitimate sending services remain authorized.
DNS changes may take time to become visible through cached DNS responses.
What if SPF PermError continues?
If the error persists, check whether a nested SPF include is causing excessive lookups or whether the domain’s authoritative DNS servers are returning unexpected records.
If you cannot identify the cause, contact mybox support and provide your domain name, the published SPF record, and the exact error returned by the receiving server.
Summary
An SPF PermError usually indicates an invalid SPF configuration rather than an ordinary authorization failure.
A domain should publish one correctly formatted SPF record per hostname, authorize all legitimate sending services, and remain within the DNS lookup limit.
Correcting these issues allows receiving servers to evaluate your domain’s SPF policy properly.
Nu ai găsit răspunsul?
Echipa noastră de asistență este aici pentru tine 24/7 – scrie-ne și te ajutăm să rezolvi problema.