ClaroDocs
IT & DevOpsDeliverability (SPF/DKIM/DMARC)

Deliverability Troubleshooting

Fix common SPF, DKIM, and DMARC configuration problems for your Claro sending domain.

Deliverability Troubleshooting

SPF: Too Many DNS Lookups

Symptom: Claro's DNS check shows SPF FAIL or WARN with a message about lookup limits. Receiving mail servers report permerror.

Cause: RFC 7208 Section 4.6.4 limits SPF evaluation to 10 DNS lookups. Each include: mechanism and a: / mx: modifier counts as one lookup. Large organisations with many email providers quickly reach this limit.

How to count your current lookups:

  1. View your current SPF TXT record.
  2. Count each include:, a:, mx:, exists:, and redirect= term. Each is one lookup.
  3. Each include: may itself reference further include: terms; these count toward the total.

Fixes:

  • Remove unused includes. If you stopped using an email provider, remove its include: from SPF.
  • Flatten SPF. Replace include:provider.com with the IP addresses that provider publishes. Tools such as dmarcian's SPF Record Testing Tool can resolve and display the full IP list. Flattening trades maintainability for lookup savings; refresh flattened entries when the provider changes their IP range.
  • Use a managed SPF flattener. Services like AutoSPF or Dmarcian's SPF Surveyor maintain flattened records automatically. This is the recommended long-term approach for large organisations.

Exceeding 10 SPF lookups causes a permanent SPF failure (permerror), not a soft fail. Receivers may reject the message outright. Keep your lookup count at 8 or fewer to leave headroom.


DKIM: Key Rotation Procedure

Rotate your DKIM key if your private key is compromised, or as a preventive measure every 6-12 months.

  1. Generate a new selector in Claro. Go to Settings > Sending Domains, click your domain, and use the "Rotate DKIM Key" action. Claro creates a new selector (e.g. claro2._domainkey.your-domain.com) and generates a new key pair.
  2. Add the new selector as a second TXT record in your DNS provider. Do not remove the old selector yet.
  3. Wait for the new TXT record to propagate (10-30 minutes for most providers).
  4. Switch the active selector in Claro. Claro begins signing outgoing mail with the new key.
  5. Wait 7 days to allow in-flight messages signed with the old key to complete delivery and verification.
  6. Remove the old selector's TXT record from your DNS provider.

Removing the old TXT record before in-flight messages are delivered will cause DKIM verification failures on those messages, which may trip DMARC enforcement if you have p=quarantine or p=reject set.


TXT Record Truncation and Chunking

DNS limits each TXT record string to 255 characters. Most DKIM public keys (2048-bit RSA) exceed this limit.

How providers handle it:

  • Cloudflare: accepts the full value as a single string. No manual chunking required.
  • GoDaddy: the current console handles long values automatically. If it reports an error, use the chunked format below.
  • Namecheap: requires manual chunking for values longer than 255 characters.

Chunked format: Split the value into segments of up to 255 characters, wrap each in double quotes, and separate with a space:

"v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA..." "...remaining-content"

Claro's DNS panel shows the pre-formatted chunked value. Copy it exactly, including the quotation marks.


DNS Propagation Expectations

New or changed DNS records are not instantly visible worldwide. Propagation depends on:

  • The TTL (time-to-live) of the record. A TTL of 3600 means caches may hold the old value for up to 1 hour after a change.
  • Your DNS provider's propagation speed. Cloudflare propagates within seconds. Traditional registrars may take 30-60 minutes.
  • Downstream resolver cache. Internet service providers and corporate networks cache DNS responses independently.

Typical real-world propagation: 5-30 minutes. Worst case: 48 hours.

How to check propagation:

  • Command line: dig TXT notifications.yourcompany.com @8.8.8.8
  • Online: dnschecker.org shows resolution from multiple geographic locations.

If Claro's verify reports a record is missing immediately after you added it, wait 10 minutes and try again before escalating.


Conflicting SPF Records

Only one TXT record starting with v=spf1 is allowed per hostname. A domain with two SPF TXT records is technically invalid (RFC 7208 Section 3.2), and receiving servers will return a permanent error.

Fix: Edit the existing SPF TXT record to add the new include: directive. Delete any duplicate SPF TXT records.


DMARC Alignment Failures

DMARC checks whether the domain in the "From" header aligns with the domain that passed SPF or DKIM.

Relaxed alignment (default, adkim=r / aspf=r): The organisational domain must match. Subdomains are acceptable. notifications.acme.com aligns with acme.com in relaxed mode.

Strict alignment (adkim=s / aspf=s): The domains must match exactly. notifications.acme.com does not align with acme.com in strict mode.

If your DMARC report shows alignment failures when SPF and DKIM themselves pass, check whether you are using strict alignment and whether the From domain matches the signing/sending domain exactly.

Start with the default relaxed alignment. Move to strict only after confirming all your mail paths align, as strict alignment breaks common forwarding scenarios.


Verification Still Fails After 48 Hours

If Claro's DNS check still reports FAIL after 48 hours:

  1. Confirm the record exists using dig TXT <record-name> @8.8.8.8 or dnschecker.org. If it does not appear, the record was not saved correctly in your DNS provider. Re-add it.
  2. Confirm the record name is correct. Compare the exact name in your DNS provider with the name shown in Claro's DNS panel. A common error is entering the full FQDN where the provider expects only the subdomain portion, resulting in a double-appended name.
  3. Confirm the record value is correct. Copy the value from Claro's panel again and compare character by character, particularly for DKIM (long values with easy-to-miss truncation).
  4. Contact your DNS provider's support if the record appears correctly in their console but does not resolve via external tools.
  5. Contact Claro support if the record resolves correctly externally but Claro's verify still fails.