Mandrill return-path "Secure Site Not Available" on Cloudflare
The "Secure Site Not Available" error on a Mandrill return-path subdomain is harmless. The record is DNS only in Cloudflare, so Cloudflare's SSL never applies, and the target serves no HTTPS for your hostname. The domain only has to resolve for Mailchimp's validation. Leave it alone; mail does not use a browser.
Sohail Hussain8 min readShort answer
- The warning comes from your browser's HTTPS-Only Mode, not from Mandrill or Cloudflare. The return-path subdomain is a DNS-only record that exists for mail routing, so it has no web server or certificate behind it.
- Leave the record set to DNS only and test it with a DNS lookup and Mandrill's own verification check, not a browser.
You opened your Mandrill return-path subdomain in a browser and saw this:
Secure Site Not Available. You've enabled HTTPS-Only Mode for security, and a HTTPS version of mandrillreturnpath.example.com is not available.
It looks like an SSL failure on your Cloudflare setup. It isn't. The hostname was never meant to be opened in a browser.
Why it happens
HTTPS-Only Mode in the browser. With this mode on, the browser tries https:// first and won't quietly fall back to http://. If the server has no valid certificate for the hostname, or nothing answers on port 443, you get this page. Firefox calls the page "Secure Site Not Available"; other browsers word it differently.
The record is DNS only. A Mandrill custom return-path domain is a subdomain you point, with a CNAME, at a target Mandrill gives you. Its job is to appear in the SMTP envelope sender (the Return-Path, where bounces go) so your mail lines up with your own domain. Receiving mail servers look it up in DNS. They don't fetch a web page from it.
In Cloudflare a record is either proxied or DNS only:
| Mode | Icon | What happens |
|---|---|---|
| Proxied | Orange cloud | Traffic goes through Cloudflare, which presents its own certificate to visitors |
| DNS only | Grey cloud | Cloudflare just answers the DNS query with the real target; no proxy, no Cloudflare certificate |
With a grey cloud, your browser connects straight to the target, and that target has no certificate for your subdomain. Hence the warning. People on Cloudflare's community forum have reported exactly this with Mandrill return-path domains, and the explanation there is the same.
Why the warning is harmless. Your mail doesn't depend on a web page at that hostname. It depends on the CNAME resolving to the right target so Mailchimp's validation passes. A browser test checks something email never uses.
Don't switch it to proxied
Turning the cloud orange feels like the obvious fix, but I'd skip it. It solves a problem you don't have. A proxied record makes public lookups return Cloudflare addresses instead of your CNAME target, which can break validation.
Other email vendors say the same about their Cloudflare setups. SendGrid's support article on proxied CNAME records not being publicly available is one example: see SendGrid's note on DNS validation errors in Cloudflare. It describes SendGrid, not Mandrill, but the DNS behavior is the same.
Step-by-step: confirm the setup is fine
Check DNS, not HTTPS.
1. Check the record in Cloudflare
- In Cloudflare, open your domain and go to DNS > Records.
- Find the return-path subdomain. Confirm the type is
CNAMEand the proxy status reads DNS only. - Compare the target with what Mandrill shows for the domain. They must match exactly, with no typo and no extra copy of your zone name tacked on.
2. Query it from a terminal
dig +short CNAME mandrillreturnpath.example.com
You should get back the target Mandrill gave you. If the answer is empty, or you see Cloudflare IP addresses, the record is missing, wrong or proxied. Replace mandrillreturnpath.example.com with your real hostname.
3. Run Mandrill's verification check
Open the sending domain settings in Mandrill and run the check for the return-path domain. Menu labels change over time, so look under your sending domains. A passing check is the signal that matters. Allow some time for DNS to propagate if you changed the record recently.
4. Inspect a real message
Send a test message to a mailbox you control and open the raw headers. The Return-Path header should show an address at your subdomain, not a Mandrill-owned domain. Our email header analyzer reads headers for you, and Understanding email headers explains the fields.
If all four steps pass, ignore the browser warning.
Cause, symptom and fix at a glance
| Cause | What you see | Fix |
|---|---|---|
| Browser HTTPS-Only Mode on a mail-only hostname | "Secure Site Not Available" in the browser; Mandrill check passes | Nothing to fix; leave it DNS only |
| Record proxied (orange cloud) | Mandrill can't verify; dig returns Cloudflare IPs | Switch to DNS only |
| Wrong or mistyped target | Verification fails; dig shows a different or empty answer | Copy the target from Mandrill again |
| DNS not propagated yet | Verification fails right after the change | Wait and run the check again |
| Sending from a different domain than you configured | Return-Path still shows a Mandrill domain | Check which sending domain your messages use |
Don't add a web server just for this
Installing a web server or issuing a certificate for the return-path hostname only silences the warning. It does nothing for deliverability and adds something to maintain.
When it isn't fine
Real problems look different from this browser warning:
- Mandrill says the domain isn't verified. Usually a proxied record, a wrong target, a typo in the host name, or DNS that hasn't propagated yet.
- Bounces aren't arriving, or the Return-Path still shows a Mandrill domain. The custom domain may not be active on the sending domain, or you're sending from a different domain than the one you set up.
- Authentication failures at the receiving side. The return-path domain is one piece. Check SPF, DKIM and DMARC for the domain you send from. Our SPF generator and DMARC generator help, and How to set up SPF, DKIM and DMARC walks through all three.
- Another record on the same hostname. A CNAME aliases the whole name, so other records on that hostname are never seen. Mailgun's Cloudflare guide puts it this way: any other DNS records configured on the same Hostname will never be "seen". Use a hostname with only the CNAME on it.
Checklist before you try again
- The record type is
CNAMEand the proxy status is DNS only. - The host name and target match what Mandrill shows, character for character.
- No other record (A, TXT, MX) exists on the same hostname.
dig +short CNAMEreturns Mandrill's target, not Cloudflare IPs.- Mandrill's verification check for the return-path domain passes.
- A test message shows your subdomain in
Return-Path.
If nothing works
Contact Mailchimp Transactional (Mandrill) support through your account's help options. If the record itself looks fine but validation keeps failing, Cloudflare support or the Cloudflare community can confirm what is being published for the record. Send these details:
- The sending domain and the return-path subdomain
- The exact Mandrill verification message, with timestamps
- The output of the
digcommand above - A screenshot of the Cloudflare record showing DNS only
- What you've already tried
Subject: Return-path domain won't verify (Cloudflare, DNS only)
Hi,
Sending domain: example.com
Return-path subdomain: mandrillreturnpath.example.com
Verification result: {paste the exact message and time}
The record is a CNAME in Cloudflare set to DNS only (screenshot attached).
dig +short CNAME mandrillreturnpath.example.com returns:
{paste output}
Opening the hostname in Firefox shows "Secure Site Not Available" under
HTTPS-Only Mode. I understand that is expected for a mail-only hostname,
so I am not asking about that. I need the return-path domain verified.
What else should I check?
Common questions
Can I make the browser warning go away?
Only by serving HTTPS on that hostname, which means running a web server with a valid certificate for it. Email doesn't need that. You can also turn HTTPS-Only Mode off for the one site, but there's no reason to browse there at all.
Will the warning hurt deliverability?
No. Mail servers resolve the hostname through DNS and never load a page from it. What counts is that the CNAME resolves correctly and your SPF, DKIM and DMARC records pass.
Should the cloud be orange or grey?
Grey (DNS only). Several vendors' Cloudflare guides, such as Mailgun's, tell you to toggle the record to DNS only for email-related CNAMEs. See Mailgun's Cloudflare DNS guide. It covers Mailgun, not Mandrill, so follow Mandrill's own instructions for the target value.
Does the return-path domain matter for DMARC?
It matters for SPF alignment. A Return-Path on your own domain or subdomain lets SPF line up with your From address. Our glossary entries on SPF and DMARC cover the rules.
Explore: Email Deliverability
Related Articles
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.
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.
Connection refused #111 on SMTP port 587: how to fix it
Connection refused #111 on port 587 means your server's TCP connection never reached the SMTP host, so a firewall, security group or hosting policy is blocking outbound traffic. Test the port with openssl s_client, open egress, switch to port 2525 or 465, or send through the provider's HTTP API instead.
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.
Ready to supercharge your email marketing?
Start sending smarter emails with AI-powered campaigns. No credit card required.
Get Started Free