That’s how mine is on Debian 11 with /etc/dkim-domains.tx listing ALL domains to sign for. Did you check the /etc/dkim-domains.txt to see if mydomain.com was listed there?
It’s the same on EL distros (which CentOS no longer is, and you’re right it’s not supported, but in this case it should work the same as everywhere else).
then in opendkim.conf, i have
Domain /etc/dkim-domains.txt
Selector 202200
KeyFile /etc/dkim.key
which matches the key file, and hence mxtoolbox says its all good.
then hit save:
"Finding virtual servers to enable DKIM for ..
.. no virtual servers with DNS and email enabled were found, but enabling for 2 extra domains
Extracting public key from private key in /etc/dkim.key ..
.. done
Setting domain and selector in DKIM filter configuration ..
.. done
Enabling DKIM filter at boot time ..
.. done
Starting DKIM filter ..
.. done
Configuring mail server to use DKIM filter ..
.. done
"
tried them both, no difference. They used to work, maybe an update over the last year changed things. are we certain that an external Registra / DNS config, not using Webmin / Virtualmin BIND at all - will DKIM still work ?
Oh WOW. I just got it to work. I disabled DKIM, then re-enabled it, and this fixed ! must have been an update, like others have mentioned, over time the domains dissappeared in the “Extra domains to sign for”, and re-entering the domains by themselves does not work, you have to disable, then re-enable wqith “Signing of outgoing mail enabled”