I am testing CyberPanel in the hopes of replacing my current WHM/CPanel hosts, and I must say that I have been pretty let down by the community so far. I do not understand why there is not more involvement to help users, who will eventually be able to assist others (and such a chain is the core of any open-source community).
In any case, even though I am a new user, I will try to lead by example and offer a workable solution to lessen these issues with MailScanner access.
Although I was unable to find a workaround online, the workaround is actually fairly easy:
- Launch PHPMyAdmin and choose the “mailscanner” database.
- Locate and click on the “users” table. There is already a user named “admin,” but the password seems to be a simple MD5, while it should be a bcrypt hash of some sort.
- To fix it, using the SQL tool from the PHPMyAdmin, execute the following query:
INSERT INTO mailscanner.users SET username = 'admin2', password = MD5('<password>'), fullname = 'Admin Two', type = 'A';
Replace <password> with your CyberAdmin password (or any other of your choice), and then execute the query.
- Here’s the crazy step: Return to the users table and locate the newly added record (the admin2), then copy the
password from the admin2 to the admin user as it appears in the password column. You can complete it directly from the table view. Simply double-click on the admin2 password, select and copy it, then double-click the other one (from admin), clean it up, and paste the copied value.
- That is all! Simply try logging in to MailWatch again, and your credentials should work!
Why is the fourth step so crazy? If you look back in the mailscanner database’s users table, you will notice that the admin password no longer is the same as the admin2 password you can see in the table row, despite the fact that you just copied the password from admin2 to admin. So, why is that? Among other script errors, I believe the developer used the function MD5('<password>') as I did in my query, but the password field in the database appears to be a password MD5 hashed with Bcrypt (and not the plain MD5), and the code didn’t set it right (neither the MD5 references your CyberPanel password, so it would fail even if the developer had used the right Bcrypt code).
In any case, give it a shot because it is obviously not working, right? After I have done exactly that, mine works fine.
Oh, yeah, you can delete the admin2 user now. It is no longer useful.
Good luck!