Overview
If you are unable to log in using your Kerio Connect administrator credentials, you can recover the admin accounts by manually modifying the users.cfg
file or the mailserver.cfg
file based on the account type. After this will be able to log in and set a new password for the account.
Solution
Recovering the Built-in Admin Account
-
Locate the
mailserver.cfg
file. The default locations are:-
On Windows:
C:\Program Files\Kerio\MailServer
-
On macOS:
/usr/local/kerio/mailserver
Note: You would need to enable the settings in the macOS to view hidden folders. -
On Linux:
/opt/kerio/mailserver
-
-
Open the
mailserver.cfg
file in a text editor.
Note: On macOS/Linux, use your root account to edit the file. -
Under the
Administration
table, set theBuiltInAdminEnabled
variable value to1
. -
Change the
BuiltInAdminUsername
variable value tokerioadmin
. -
Delete the value for the
BuiltInAdminPassword
variable. -
Save the file.
-
Log in to the WebAdmin portal using
kerioadmin
username (without any password). -
Navigate to Configuration > Administration Settings.
-
Set a new password.
Recovering Other Admin Accounts
-
Locate the
users.cfg
file. The default locations are:-
On Windows:
C:\Program Files\Kerio\MailServer
-
On macOS:
/usr/local/kerio/mailserver
-
On Linux:
/opt/kerio/mailserver
-
-
Open the
users.cfg
file in a text editor.
Note: On macOS/Linux, use your root account to edit the file. -
Find the name of your admin account next to the following variable:
<variable name="Name">
For example:
<variable name="Name">jsmith</variable>
-
Under your administrator name, find the following variable:
<variable name="Password">
For example:
<variable name="Password">D3S:1234ab56c7de89</variable>
-
Change the
Password
variable value toNUL:
.<variable name="Password">NUL:</variable>
-
(Optional) Under the same administrator name, find the following line:
<variable name="Rights">0</variable>
-
(Optional) Change its value to
1
(whole server read-only) or3
(whole server read/write):<variable name="Rights">1</variable>
-
Save the updated file.
-
Log in to the WebAdmin portal using your admin username (without any password).
-
Set a new password.
Priyanka Bhotika
Comments