Overview
If you are unable to log in using your Kerio Connect administrator credentials, you can recover the admin account by manually modifying the users.cfg
file or the mailserver.cfg
file. Then you will be able to log in and set a new password.
Process
Editing the users.cfg
File
-
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>
-
Under the same administrator name, find the following line:
<variable name="Rights">0</variable>
-
Change its value to
1
:<variable name="Rights">1</variable>
-
Save the updated file.
-
Log in to the WebAdmin portal using your admin username (without any password).
-
Create a new password.
Editing the mailserver.cfg
File
-
Locate the
mailserver.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
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.
Video Illustrations
The following video shows the steps to edit the mailserver.cfg
file and reset the admin password on Linux:
The following video shows the steps to edit the mailserver.cfg
file and reset the admin password on Mac:
Priyanka Bhotika
Comments