I added DKIM record for my domain but evertime when i’m sending emails or check using mail tester my DKIM record is not valid, I tried everything but it does not work for me
Virtualmin Pro can automatically update Cloudflare DNS zone for domain. Virtualmin GPL cannot do it, so you should go manually put DKIM records which can be found on either Server Configuration ⇾ Suggested DNS Records: DNS Records page or Server Configuration ⇾ DomainKey Options page.
Hmm, never had that that issue, has always worked. Not sure what would stop it working. Virtualmin should add DKIM record onto the outbound mail, I presume thats not happening for some reason.
I assume that DNS record is fine, as mxtoolbox says that the test have succesfully passed. On the other hand, gmail says that the email have not been signed by DKIM, so I assume there will be problem with opendkim tool.
My guess is that it will be related to “default” DKIM selector, as we can see from a picture you have posted → There should be a DKIM selector you have selected when enabling DKIM. “Default” is a problem I guess.
I would try to disable and enable it again from scratch. Maybe reinstallation of opendkim helps if issue persist? I know that once upon a time, in /etc, there was afew configuration files which described with which key is opendkim supposed to sign specified domains, but right now I can not find those files.