ClaroDocs
IT & DevOpsDeliverability (SPF/DKIM/DMARC)

Cloudflare DNS Setup

Add SPF, DKIM, and DMARC records for your Claro sending domain in Cloudflare's DNS management console.

Cloudflare DNS Setup

Cloudflare's interface changes periodically. The navigation paths below were accurate as of early 2026. If a step does not match what you see, verify the current layout in Cloudflare's DNS records documentation before proceeding.

Prerequisites

  • Your domain must be added to Cloudflare and its nameservers must be pointing to Cloudflare.
  • You need the DKIM selector and public key from Claro. Go to Settings > Sending Domains, click your domain, and copy the DKIM record values from the panel.
  • Confirm who in your organisation has Cloudflare zone access before starting.

Locate DNS Management

  1. Sign in to dash.cloudflare.com.
  2. Select your account.
  3. Click on your domain name in the domain list.
  4. In the left sidebar, click DNS, then click Records.
  5. The DNS records table opens. You will add three new TXT records here.

A Note on Cloudflare's Proxy

Cloudflare's orange-cloud proxy applies only to A, AAAA, and CNAME records. TXT records are never proxied regardless of any setting you choose. SPF, DKIM, and DMARC are all TXT records, so the proxy toggle is not relevant for this setup. Do not create A or CNAME records for mail authentication.

Add Records

Add SPF

  1. Click Add record.

  2. Set Type to TXT.

  3. In the Name field:

    • For a subdomain sending domain (e.g. notifications.acme.com): enter notifications.
    • For the apex domain (e.g. acme.com): enter @.
  4. In the Content field, enter your SPF value. Claro shows the required include directive; merge with any existing SPF record.

    Example (no existing SPF):

    v=spf1 include:your-smtp-provider.com ~all

    A domain may have only one TXT record starting with v=spf1. If one already exists, click Edit on that record and add the new include directive to it rather than adding a second record.

  5. Leave TTL at Auto (Cloudflare manages it).

  6. The Proxy status toggle does not appear for TXT records. If you see it, ensure you selected TXT as the type.

  7. Click Save.

Add DKIM

  1. Click Add record.
  2. Set Type to TXT.
  3. In the Name field, enter the DKIM selector hostname that Claro shows, relative to your zone root. For example, if Claro shows claro._domainkey.notifications.acme.com and your Cloudflare zone is acme.com, enter claro._domainkey.notifications.
  4. In the Content field, paste the DKIM public key that Claro generates. Cloudflare accepts the full value as a single string without manual chunking, regardless of length.
  5. Leave TTL at Auto.
  6. Click Save.

Add DMARC

  1. Click Add record.
  2. Set Type to TXT.
  3. In the Name field:
    • For a subdomain sending domain (e.g. notifications.acme.com): enter _dmarc.notifications.
    • For the apex domain: enter _dmarc.
  4. In the Content field, start with a monitoring-only policy:
    v=DMARC1; p=none; rua=mailto:dmarc-reports@acme.com
    Replace dmarc-reports@acme.com with a mailbox you control. After 1-2 weeks of reports confirming clean authentication, upgrade to p=quarantine, then p=reject.
  5. Leave TTL at Auto.
  6. Click Save.

Verify in Claro

After saving all three records, return to Settings > Sending Domains in Claro and click Verify on your domain. Claro checks each record and shows PASS, WARN, or FAIL.

Because Cloudflare propagates DNS changes quickly (usually seconds to a few minutes), verification usually succeeds immediately. If it fails, wait 5 minutes and try again.

Cloudflare-Specific Gotchas

  • TXT records are never proxied. The orange-cloud proxy only applies to A, AAAA, and CNAME records. You do not need to disable proxying for SPF, DKIM, or DMARC records.
  • Long DKIM values. Cloudflare accepts long TXT content as a single string. You do not need to split into 255-character chunks.
  • Name field is relative to zone root. If your Cloudflare zone is acme.com, enter only the subdomain portion in the Name field. Entering the full FQDN creates a double-appended record.
  • Duplicate SPF. Only one TXT record starting with v=spf1 is allowed. If one exists, edit it and add the new include rather than creating a second record.

See the Troubleshooting page for propagation delays, DMARC alignment failures, and key rotation.