This article is a mirror article of machine translation, please click here to jump to the original article.

View: 12440|Reply: 1

[Mail] EXTMAIL admin password recovery

[Copy link]
Posted on 5/21/2015 11:15:48 PM | | |

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.


    1. Edit MgrApp.pm

Remove the password judgment part first, and log in directly with any password
sub login function

  1. if ($a->auth($user, $pass)) {
Copy code

modified to

  1. if (1) {
Copy code

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

  1. update manager set password = ‘$1$BrT9qxfB$Ha81Mb5YVV6rNKNN5jmtj1′ where username = ‘admin’;
Copy code

Reset the password to extmail*123* and change the password after logging in






Previous:Principle of md5crypt encryption method of extmail (PHP implementation)
Next:Find command in Linux - Find file name
 Landlord| Posted on 5/21/2015 11:21:38 PM |
Folder directory /var/www/extsuite/extman/libs/Ext/MgrApp.pm
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com