Deliverability

Cloudflare CNAME "authentication error" in SendLayer: use DNS only

When SendLayer or another email provider reports an "authentication error" on CNAME records you added in Cloudflare, the records are almost always proxied. Set Proxy status to DNS only (grey cloud) on every DKIM and return-path CNAME, wait a few minutes, then verify again.

Sohail HussainSohail Hussain9 min read

Short answer

  • The usual cause is the orange cloud: a proxied CNAME makes Cloudflare answer with its own IP addresses, so the provider never sees the target it expects.
  • In Cloudflare, open DNS > Records, set Proxy status to DNS only (grey cloud) on every DKIM, return-path and tracking CNAME, save, then click verify again in SendLayer or your ESP.
  • If it still fails, check for a doubled hostname, a mistyped target, a conflicting record, or records added at the wrong DNS host.

You added the CNAME records your email service gave you, and the verification screen says "authentication error". That is SendLayer's wording; other providers say "not verified" or "records not found". People on Cloudflare's community forum have reported this exact problem with SendLayer, and the answer given there was to turn the proxy off for email-related records. The fix applies to nearly any ESP.

Why it happens

"Authentication error" is the provider's message, not an SMTP code. The provider looked up the DNS name it told you to create and did not get the value it expected. Nothing was rejected, and no email was bounced by this message.

Causes, most common first:

  1. The record is proxied (orange cloud). Microsoft's DKIM documentation says that with the proxy enabled, DNS lookups return Cloudflare's IP addresses instead of the CNAME target, and DKIM verification fails. SendGrid's support article notes that a new CNAME added in Cloudflare may default to Proxied status, and that proxied CNAME records are not available publicly.
  2. The hostname was doubled. Microsoft lists entering the full domain in the name field, which produces a host like selector1._domainkey.contoso.com.contoso.com, as a common mistake. Cloudflare appends your zone name for you.
  3. The target has a typo or stray character, usually from copy and paste.
  4. A conflicting record exists. Mailgun's Cloudflare guide says that when a hostname has a CNAME, it should be the only record on that name.
  5. The records are at the wrong DNS host. Sendlane's help center describes adding records at your registrar after DNS control has moved elsewhere, and says to add them at the current DNS provider.
  6. Timing. Some providers only re-check on a schedule, so a correct record can still show as failed for a while. I can't tell you how long for SendLayer specifically; its own docs are the source for that.

Only some record types show the cloud toggle. One vendor guide notes that TXT and MX records aren't proxyable in Cloudflare, and that only record types like CNAME and A show the proxy toggle. That is why CNAMEs are where this goes wrong.

Step-by-step fixes

Fix 1: set every email CNAME to DNS only

  1. Sign in to Cloudflare and select your domain.
  2. Open DNS > Records.
  3. Find every CNAME your provider listed. Typical ones are DKIM selectors, a return-path or bounce subdomain, and a tracking or link-branding subdomain.
  4. Click Edit on the first record.
  5. Click the orange cloud under Proxy status until it is grey and reads DNS only.
  6. Click Save.
  7. Repeat for every email-related CNAME. One proxied record out of five is enough to keep verification failing.
  8. Go back to SendLayer (or your ESP) and click its verify or re-check button.

If verification still fails, wait 10 to 15 minutes and retry. Propagation times differ by provider, so check your ESP's own setup page if it states one.

Don't grey-cloud your website

Only the email records need DNS only. Your root domain and www record can stay orange if you want Cloudflare in front of your site. Check the record name before you click.

Fix 2: confirm the record is really unproxied

Don't trust the dashboard icon alone. Query the record the way the provider does, using the exact host from the setup screen:

dig +short CNAME s1._domainkey.example.com

A correct result is the provider's target hostname. If that returns nothing, but a plain dig +short s1._domainkey.example.com returns IP addresses, the record is probably still proxied, or you edited a different record. On Windows:

nslookup -type=CNAME s1._domainkey.example.com

If you query through a public resolver such as dig @1.1.1.1, you see what the outside world sees rather than a locally cached answer.

Fix 3: correct the hostname

In the Name field, enter only the part before your domain. If your provider shows s1._domainkey.example.com, enter s1._domainkey. Mailgun's Cloudflare guide explains that the shorter value, without the root domain, is what Cloudflare expects, even though the provider's panel shows the longer one. After saving, check the list: if your domain appears twice, edit the record.

Fix 4: check the target value

Paste the target exactly as shown, with no spaces and no extra domain. Compare the saved value with the provider's screen character by character. Microsoft's provider table says Cloudflare does not need a trailing dot.

Fix 5: remove conflicting or duplicate records

Delete leftovers from a previous provider at the same name, then re-add the CNAME as DNS only. If the name is used by something else you need, ask your provider whether you can use a different subdomain.

Fix 6: make sure Cloudflare is the DNS host

On the domain's Overview page, Cloudflare lists its assigned nameservers. Compare them with the nameservers set at your registrar. If they differ, add the records wherever the nameservers actually point.

Cause, symptom and fix at a glance

CauseWhat you seeFix
Proxied CNAMEPlain dig returns IPs, CNAME query returns nothingSet DNS only
Doubled hostnameSaved name shows your domain twiceEnter only the label
Typo in targetdig returns a different hostnameRe-paste the value
Conflicting recordOther record types at the same nameDelete the other record
Wrong DNS hostdig returns nothing at allEdit at the real nameserver host
Cached failuredig looks rightWait, then re-verify

Checklist before you re-verify

  • Every email CNAME shows a grey cloud and DNS only.
  • Each name contains the label only, with no doubled domain.
  • Each target matches the provider's screen exactly.
  • No other record type sits at the same name.
  • Your nameservers actually point to Cloudflare.
  • dig +short CNAME {record-name} returns the provider's target.

Set it right the first time

Switch the cloud to grey before you click Save on each new email record. Tell any teammate or agency who adds DNS records to do the same.

If nothing works

If dig shows the right target and the provider still rejects it, the issue is likely on their side or in their cache. Contact SendLayer (or your ESP) support with:

  • the exact record names and values from their setup screen
  • the dig or nslookup output
  • a screenshot of the Cloudflare DNS list showing grey clouds
  • the time of your last verification attempt

If you suspect Cloudflare itself (the toggle won't change, or a record disappears), contact Cloudflare support with the zone name and the record in question.

Subject: Domain authentication failing on CNAME records (Cloudflare DNS)

Hi, my domain example.com uses Cloudflare DNS. I added the CNAME records
shown in your setup screen and set them all to DNS only (grey cloud),
but verification still shows "authentication error".

Records (name -> target):
- {record 1}
- {record 2}

dig +short CNAME output is attached and returns the expected targets.
Last verification attempt: {date and time, timezone}.
Could you re-check the records on your side or clear any cached result?

Where Mailneo fits

This is a DNS problem, and Mailneo can't change your DNS; you edit records in Cloudflare or at your registrar. For mailboxes you connect to Mailneo (see email accounts), Mailneo checks the sending domain's SPF, DKIM and DMARC records and whether they authorize the provider you use. It does not check another ESP's CNAMEs, such as SendLayer's.

If you set up a custom tracking domain in Mailneo, you add a CNAME to t.mailneo.link and Mailneo verifies it. I'd leave that record on DNS only too.

For the full authentication picture, see how to set up SPF, DKIM and DMARC. To confirm the fix worked, send a test message and run it through the email header analyzer.

Common questions

Do TXT records need to be DNS only too?

No. TXT and MX records can't be proxied, so they have no cloud toggle. If a TXT-based SPF or DMARC record fails, the problem is its content, not the proxy. The SPF generator can rebuild it.

Can I proxy the record again after verification succeeds?

I wouldn't, for email records. Receiving servers look up DKIM selectors on every message, so a proxied record can break authentication later. Postmark's DKIM guide tells Cloudflare users to keep authentication CNAMEs such as a custom Return-Path on DNS Only.

Does this apply to every ESP, not just SendLayer?

Mostly yes. Microsoft, SendGrid, Mailgun and Postmark all document DNS only for their CNAMEs. There are exceptions: SendGrid documents a separate setup where Cloudflare acts as a CDN for SSL click tracking, which is an advanced option and not the default. SendGrid's own error for the proxied case is DNS Validation Error (Code: 1004).

Will turning off the proxy hurt my site's security?

Not for these records. They point to the email provider's hostnames, not your web server, so Cloudflare's website protection was not covering them. Your site's own records are separate.

deliverabilitysendlayercloudflareerror-codes
Share this article
Sohail Hussain

Sohail Hussain

Founder & CEO at Mailneo

Building Mailneo — AI-powered email marketing for growing businesses.

Related Articles

Deliverability

554 5.7.5 Permanent error evaluating DMARC policy: fixes

The bounce 554 5.7.5 Permanent error evaluating DMARC policy means the receiving server could not process your domain's DMARC record. Usual causes are a malformed or duplicate record, a DNS lookup failure, or a broken SPF record. Check your records with dig, fix them, and contact the recipient's admin if only one provider bounces.

Sohail Hussain|11 min read
Deliverability

DMARC Policy Not Enabled: Is p=none a Problem, and What to Do

"DMARC Policy Not Enabled" means your record says `p=none`, so receivers report on failing mail but don't act on it. The record is valid and the right starting point. Add an `rua` address, read the reports, align every sender, then move to quarantine and reject. Don't jump straight to reject.

Sohail Hussain|11 min read
Deliverability

Flodesk "Domain authentication unsuccessful" on Cloudflare: fix

Flodesk's "Domain authentication through Flodesk unsuccessful" on Cloudflare usually means Flodesk can't read your records as published. Set every Flodesk CNAME to DNS only (gray cloud), remove the doubled domain from host names, keep one SPF record, then confirm with dig before retrying the check.

Sohail Hussain|8 min read
Deliverability

Error 1014 (CNAME Cross-User Banned) with beehiiv: Fix

Error 1014 (CNAME Cross-User Banned) means a Cloudflare-proxied record points by CNAME at a hostname on a zone owned by a different Cloudflare account. For a beehiiv custom domain, set the record to DNS only (gray cloud), wait for DNS to refresh, then re-verify the domain in beehiiv.

Sohail Hussain|8 min read

Ready to supercharge your email marketing?

Start sending smarter emails with AI-powered campaigns. No credit card required.

Get Started Free