How to change the x selector of DKIM?

stof

Verified User
Joined
Jan 28, 2021
Messages
24
Location
Nijmegen
Hi,

I try to create a different dkim selector.

The email is on server A and the website on server B.
But both automatically generate an x selector.

Now on the server where the website is running I want another selector.

Therefore I changed the selector in the exim.dkim.conf file in the folder etc from an x to an y.

After that I restarted exim in the directadmin control panel.

After that I run this script to create a new key:
cd /usr/local/directadmin/scripts
./dkim_create.sh domein.nl

However also that key has the x as selector.

What do I miss here? I miss a step to get it running. Any idea?

Thanks!
 
Now on the server where the website is running I want another selector.
So why do you want to change the selector, what is the problem you are experiencing with DKIM? Because a selector does not cause issues.

I'm think you might be thinking the wrong way. If you use email on der A, then server B should not send any emails for that domain.
Unless it's unauthenticated php mail but that will go via the hostname.

If you do use authenticated mail on server B, than you should look at the MX page of the domain and deselect the option to "use this server to handle your mail" or something like that and have the MX record point to server A too.

However if you really want to change the x as selecter.... then what you did might not be enough.
First remove the existing DKIM key.
Then:
It migh be needed to rebuild exim and exim.conf

After that you should be able to create a new DKIM key with the new selector.

However as said... I have the impression you're trying to fix something with the wrong solution.
 
Hi there

I would just use the same DKIM key on both servers. This fixes your problem.

Kind regards
Dries
 
Back
Top