There seem to be an awful lot of entries in support regarding DKIM, I’ve read all the ones I could find and most seem to relate to using a CDN like cloudflare. I’m not using a CDN at all, everything is hosted through my server using cyberpanel only. I couldn’t find anything that covered my issue. I also watched the tutorial on how to get 10/10 email score. It didn’t solve my issue.
So, what are my symptoms?
I have DKIM generated and in as a txt record as shown in the image below. The entry has the “” removed as per every thread regarding cloudflare. It hasn’t helped.
When I send an email, the email does not bind a DKIM register so the receiving server never looks up DKIM for a signature. This is illustrated by the below pictured results from mail-tester and the picture below that showing the lack of a “signed by” in gmail.
Oh, well if you have many dns records managed by CyberPanel than this must not be a problem I’m experiencing then. lol
The problem exists with or without the quotations ( , ← that is a comma). The addition of quotations in a DKIM txt record is not standard. It shouldn’t cause a conflict for most systems but removing them likewise doesn’t hurt.
There is currently no way to regen a DKIM pair (DomainKeys Identified Mail, adding key to the end is superfluous and redundant) via DKIM manager. You can only generate DKIM pairs via DKIM manager if no key as previously been generated for the domain. Currently the only way to regen a DKIM pair on the system is via CLI.
Please note: I have already attempted this previously as part of my problem solving prior to this post and as should be obvious by the existence of this post it did not solve the issue.
Again, I am not interested in CloudFlare. It’s only helping if you actually read what the other person writes and respond insightfully to their words.
Good afternoon. Thanks for the advice. Websites began to attach a DKIM signature for outgoing emails.
But for some reason the signature for the DKIM panel itself is not attached.
The cppanel[DOT]com domain was also added to /etc/opendkim/TrustedHosts.
Did not help.
This is actually a big problem because, out of the box, CyberPanel incorrectly configures DKIM in DNS, and the mail server sends emails from the local network without a hostname, appearing as “unknown (IP address—this is also amusing because if you don’t edit the hosts file, it will be 127.0.0.1/localhost).”
Any of these issues guarantees that the email will end up in the spam folder.
I added a sample DKIM record in DNS… to shorten the text… we see extra quotes and tabulation in the DKIM record, which is incorrect.
Depending on the OS, the key length may vary. The example provided is for Ubuntu 22; in CentOS/AlmaLinux, the generated key is shorter but also contains quotes and tabulation in the DNS record.
You must delete all Tabs and quotes in DNS record for correct DKIM “v=DKIM1; h=sha256; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEF…ROupl6RYA0T65…+ev1jIxDr…jwIDAQAB”
All email are sending from internal network (127.0.0.1) with unknown hostname - Incorrect /etc/hosts file, although the setup-wizard was supposed to configure the hostname in Postfix.
Checked on AlmaLinux 8/9 and Ubuntu 22 with OpenLiteSpeed