|
Today, I need to use the administrator account of the mail server to add a few forwarding addresses, but suddenly I found that I forgot the administrator password that had not been used for a long time, and I couldn't find the file where the password was stored. After several attempts, there is no way, looking for a way to recover the password. After reviewing the ExtMail mailbox server package used by the company, it was found that the following methods can be used to recover the administrator password. Remove the password judgment part first, and log in directly with any password sub login function - if ($a->auth($user, $pass)) {
Copy codemodified to In this way, you can log in with any password, and don't forget to modify this code back after logging in, otherwise there will be a problem...
2. Modify the record value of the manager table in the database
The initial init.sql of finding ExtMail shows that the password extmail*123* has a password encryption string value of $1$BrT9qxfB$Ha81Mb5YVV6rNKNN5jmtj1 Modify the database records yourself using SQL - update manager set password = ‘$1$BrT9qxfB$Ha81Mb5YVV6rNKNN5jmtj1′ where username = ‘admin’;
Copy codeReset the password to extmail*123* and change the password after logging in
|