Hello community, I’m sorry to bother you. In my cPanel I have my domain hosted - which works correctly - and a subdomain, which in the email deliverability section shows me two errors linked to DKIM and SPF.
The system informs me that it cannot make the necessary changes because they do not control the DNS, but they do show me which records I have to add with their respective names and values. I created those records in the DNS section of Cloudflare, and since then the subdomain has been down, it is as if the DNS were propagating, but it has been 2 days and there is still no news (it never takes so long, normally it takes just a couple of hours, tops).
Any idea what the problem could be? Thank you very much in advance!
Kindly, go to the DNS tab of Cloudflare dashboard.
Make sure to double-check if you do have an A record mail pointed to your cPanel hosting IP address and is set to (DNS-only).
Furthermore, make sure you have an MX record example.com pointed to the mail.example.com (priority 10, TTL auto).
If not, kindly click the button “Add record”.
Select A for type, enter the name mail, paste the IP address from the cPanel hosting and make sure it’s (DNS only).
Next, select MX for type, enter example.com (replace with your real domain name), enter the value mail.exmaple.com (replace with real), priority 10 and TTL auto.
Click on Save.
If so, navigate to the “Email Deliverability” at cPanel for your domain.
Therefore, you’d get the SPF and DKIM values as an example like below:
You copy the name for each one by one.
Navigate to the DNS tab of Cloudflare dashboard.
Click the button “Add record”.
Select TXT for type, paste the name and paste the value for the DKIM.
Click on Save.
Repeat for the SPF.
Once both in place at Cloudflare, wait for 2-3 minutes.
Go back to the tab where your cPanel and return back to the screen of Email Deliverability.
Wait for a few seconds and in the top right corner if all good, you should receive the green information pop-up box saying Success.
I remember, cPanel sometimes doesn’t activate DKIM at all and it’s not a until it scans and figures it out on the “external DNS provider” (Cloudflare) that it’s existing one, until them it’s displayed
If it’s recognized and correct, you’d get a blue notification at the top right corner of the cPanel saying that DKIM is enabled and active, therefore on the domain list under the “Email Deliverability” you’d have near your domain name.
Helpful article about managing DNS records at Cloudflare:
Nevertheless, you can also add A type for autoconfig and autodiscover. Good practice is also to add a SRV record, if it does exist.
Sometimes, it’s also possible to export the DNS records from cPanel and import them into the DNS of Cloudflare, which could speed-up things.
After all, if you’re still experiencing issue with email, please write back and write your domain name so we could double-check and provide feedback information and help you solve it
The Cloudflare Team is aware of this and are working on the update to release it soon so we could recognize the DNS records since “the same stripped-out part” we might see for the almost identical records (for example main domain and sub-domain).
If you’ve added it, it’s there, despite we can see only the part of it at first glance.
At the DNS interface, for the DNS record, you would see the stripped-out part, as only subdomain instead of full length subdomain.domain.com.ar, or else default._domainkey without the sub.domain.com.ar part.
If you’ve added in in the meantime, I can double-check using curl and dig or online if the records exist.
Could be temporary due to the domain nameserver change.
Furthermore, could be you’re missing the A domain.com and/or A www DNS records pointed to your cPanel web hosting IP address where the content of your Website is located.
Without knowing the domain name, I cannot help further.
May I ask if you’ve made changes to the cPanel DNS, or rather DNS at Cloudflare dashboard? Or there is some other issue as well on the cPanel?
Hello @fritex , how are you? Thank you very much for expanding your response, I will save this topic as a favorite to reread it in the future when needed. I’m the designer of the website, I was asked to update it from scratch. But the owner doesn’t want to expose his domain, that’s why I didn’t add the link here. What I did do is attach an image with the domain and subdomain, you can see it here:
Here you can see my DNS records too (the first one had to be set to DNS only because I couldn’t use my corporate emails through Microsoft Outlook, it showed me a credentials error all the time, and someone in this forum suggested to change that setting, which worked like a charm):
And here you can see on cPanel that both records were validated:
Yesterday I wanted to see what happened if I removed the two records (DKIM and SPF) from Cloudflare, and to my surprise, the website was back online in a second, so I can infer that one or both of the records were interfering. Or maybe, as you say, there is some missing record and adding these two creates a conflict, I don’t know. But it’s strange, everything seems to be correct.
There’s another error related to REVERSE DNS (PTR) on both, domain and subdomain. I tried to add the PTR records shown on cPanel but Cloudflare shows a name error. I asked to my hosting’s tech support and they told me not to pay attention to it.
As for the cPanel itself, I never changed the DNS there, only on Cloudflare. I don’t think there are any bugs.
Just in case, is there a way to make Cloudflare “read” my records again from scratch, just like it did when I first added the site? A few days ago when I noticed this problem, I deleted the site on Cloudflare and added it again, I thought it could help, but Cloudflare showed me the records I already had, with all the small changes I had made.
Thanks again for all your kindness, time and help!
I’d suggest you to remove the asterix * (wildcard) DNS record.
Might cause some unnecessary issues as unfortunately has happened before to some customers due to the lack of understanding and usage / meaning of it in real-world application.
Add new records as follows:
A mail pointed to the IP address where cPanel/web hosting is and make sure it’s unproxied (DNS-only).
your MX points to that particular mail.domain.com.ar - which from the above screenshot yet doesn’t exist.
I can see it as “exists” because of having the asterix * one
A autoconfig pointed to the IP address where cPanel/web hosting is and make sure it’s unproxied (DNS-only).
A autodiscover (despite the SRV autodiscover) pointed to the IP address where cPanel/web hosting is and make sure it’s unproxied (DNS-only).
A cpcalendars pointed to the IP address where cPanel/web hosting is and make sure it’s unproxied (DNS-only).
A cpcontacts pointed to the IP address where cPanel/web hosting is and make sure it’s unproxied (DNS-only).
A webmail pointed to the IP address where cPanel/web hosting is and make sure it’s unproxied (DNS-only).
TXT records look good to go, however the TXT records for DKIM, SPF, DMARC and the ones with "path=/" are not good looking.
Should fix and make sure the values (content) is without double-quotes " (at start and at the end), which invalidates it and might be issue if the DKIM is “split” instead of “full” too.
Despite by default while checking with dig command they should return the value inside double-quotes (hopefully not in as duplicated “double-double quotes”).
SRV records are good.
Hi @fritex , thank you so much again for your message. Four days have passed since I added the site to Cloudflare and the subdomain is still down (DNS_PROBE_FINISHED_NXDOMAIN) so there’s definitely something wrong with my records. I will make all the changes your adviced tonight when I get home.
The wildcard was added automatically when we first added the site on Cloudflare. Later we found out that the client couldn’t login to his corporate accounts through Gmail or Microsoft Outlook, due to a credentials error (users and passwords were correct). So I asked in this forum and they suggested to change the setting from Proxied to DNS Only, and that fixed the problem.
I will let you know the results when I change the settings tonight, thank you very much!!
You know, the client told me that outgoing corporate emails ([email protected]) were arriving in the recipients’ spam folder, do you think it is because of the previous configuration? Hopefully that problem is also resolved. Again, I greatly appreciate all the help you have given me!
Thank you very much @fritex for your help! I did the test you suggested and it showed me these errors, but it doesn’t seem to be anything serious:
-0.1 | DKIM_INVALID | DKIM or DK signature exists, but is not valid
-0.1 | DKIM_SIGNED | Message has a DKIM or DK signature, not necessarily valid
**Esta regla se aplica automáticamente si tu email contiene una firma DKIM, pero otras reglas positivas también se agregarán si tu firma DKIM es válida. Ver a continuación.
-0.001 | SPF_HELO_NONE | SPF: HELO does not publish an SPF Record