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.cfgfile. 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.cfgfile 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
Passwordvariable 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.cfgfile. 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.cfgfile in a text editor.Note: On macOS/Linux, use your root account to edit the file. -
Under the
Administrationtable, set theBuiltInAdminEnabledvariable value to1. -
Change the
BuiltInAdminUsernamevariable value tokerioadmin. -
Delete the value for the
BuiltInAdminPasswordvariable. -
Save the file.
-
Log in to the WebAdmin portal using
kerioadminusername (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