I've searched the threads but I can't seem quite to find the answer, other than that someone with my exact problem fixed by reinstalling.
First off, I went to DKIM under "Email Messages" in Virtualmin, clicked the "Install Now" button, and everything appeared to go well without any errors. My DNS is off-server, so first I listed all my domains for which I use email under "Additional domains to sign for". Then I carefully copied the information from Virtualmin's "DNS records for additional domains" into TXT records for each of my domains DNS.
So far, so good, but now, when I try sending email, I get the error in the message headers "dkim=temperror (no key for signature) firstname.lastname@example.org"
When I test at http://dkimcore.org/c/keycheck (with selector "beehive") I get the error "A public-key (p=) is required"
But checking my domain in Terminal with "dig txt beedrives.com" I see the public key showing up properly.
I tried disabling and reenabling DKIM signing, to no avail. I reboot the server, again to no avail.
When I reenabled DKIM, I made note of the following (again, all seemed to go well):
Finding virtual servers to enable DKIM for ..
.. no virtual servers with DNS and email enabled were found, but enabling for 7 extra domains
Extracting public key from private key in /etc/dkim.key ..
Setting domain and selector in DKIM filter configuration ..
Enabling DKIM filter at boot time ..
Starting DKIM filter ..
Configuring mail server to use DKIM filter ..
I'm using CentOS Linux 6.8, Webmin version 1.801, Virtualmin version 5.03
What might I be doing wrong at this point?
Thanks so much!