Solved Not all users have DKIM enable/disable button

AXQ73

Verified User
Joined
Jul 13, 2021
Messages
37
Hey All,

we've recently set dkim=1 on one of our servers. After restarting DA and EXIM the domains targeted nicely got their 'Enable DKIM' button. Used it, set it up and all is fine. Now, a few months later, another user on the very same server wants to implement DKIM but somehow no button is available for that user.

We checked the earlier setup users and they still have the button, in the correct status. To be sure we restarted EXIM and DA another time, checked directadmin.conf for DKIM setting and DKIM selector. It was fine. Also checked /etc/exim.dkim.conf - also looking fine. The only difference - at first glance - is the users which have DKIM implemented have ssl=1 and use it. The user which lacks the button has ssl=0.

Does anyone have a pointer or clue where to look? Or how the enable the button?

Maybe someone knows where the 'per user' DKIM on/off switch value is saved? I could not find that either.

Thanks in advance,
 
After some fiddling in the per user conf file and domain conf file a dkim=0 line was available, which i set to dkim=1. Now the button has appeared.
 
After restarting DA and EXIM the domains
You should not only restart DA and Exim, you should recompile exim and exim.conf too after adding the setting to the directadmin.conf file.

Code:
cd /usr/local/directadmin/custombuild
./build update
./build exim
./build eximconf
this way it will be activated in Exim and it's configuration too.

Next to that (or if you already done the above), the docs say the DKIM=1 setting only will activate newly created domains, so I guess something went wrong in a good way.

After some fiddling in the per user conf file and domain conf file a dkim=0 line was available,
No that is for the per user configuration, so now you only enabled it for that user only. Next to that it's best to not fiddle in configuration files without really knowing what you are doing or what the final result will be (in this case only 1 user).

Mostly there are options without the need of changing config files manually.

If you want to enable DKIM for all existing domains, use this command:
echo "action=rewrite&value=dkim" >> /usr/local/directadmin/data/task.queue
 
Thanks Richard,

we have retraced the setup of this server and it was created a long time ago without DKIM. DKIM was later enabled with DKIM=2 in DA, exim was recompiled and restarted. All was fine. I think we just were confused by the policy that DKIM=2 should give you the button but in 'Disabled' status. That is indeed only applicable for users added AFTER the exercise above. Unfortunatelty this user was already present on the server before the exercise.

Everything works now, we only need to remember to repeat this when an old user wants to implement DKIM.
 
Unfortunatelty this user was already present on the server before the exercise.
Most likely yes.

we only need to remember to repeat this when an old user wants to implement DKIM.
Ah oke, I thought you wanted enabled by default for all existing users, including the old ones which where there before the DKIM implementation. The commandline option would fix that.
At least people reading this thread afterwards will see that solution too.

But indeed if you only want to provide DKIM once they request it (and not having it yet), your method is fine too.
 
Back
Top