How to edit/change the DKIM selector to reflect the server rather than some random number. Various articles also suggest using a name that means something.
Was the change to numbers for a good reason?
Can anybody tell me how/where I can edit it please.
I’ll assume these are articles by those you trust. But, having NO idea where there may be other hooks, I won’t touch mine. I don’t care if it is called dkim1, as if that makes a difference to the machines using it.
Thanks for the tip.
I checked a fresh install of the OS with opendkim and the selector is set to “default” out of the box, so Virtualmin install is what changed it most likely.
Question still is: Why a number, and how to change it?
Well, I too do not know of a way to change the selector. I do know that if you delete the key, Virtualmin lets you create a new / fresh DKIM during which you can specify a selector of your choice - or at least it did, a few versions ago.
There is in Virtualmin → Manage Virtual Server → DNS Settings → DNS DKIM Record an option button captioned Generate new key but I do not know if it lets one specify a different selector than the one being used.
And yes, I am among those who say that the selector should match the hostname in some way. This comes in handy when one manages multiple servers.
I’d set up a test server and install OpenDKIM and change the selector in the file mentioned above, or, wherever your install puts it. Then install Virtualmin and see if the change sticks. If not, change it again, and regenerate the keys. I doubt it will ever change again, but of course, I don’t know that.
A date is used I think as it is a semi random number. A server can potentially have more than one key and using this number might prevent collisions when importing from other systems?