Topic: Wrong password saved on installation
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Debian GNU/Linux 9 (stretch)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MARIADB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
So after getting very close to just deleting everything and quitting trying to get iRedMail up and running over the past 3 days because no matter what I did I could not login to roundcube, I was getting the horrible "Login Failed!" message at the login screen. So reading pointless error messages and reading log... after log... after log... after log all being no help becasue all they were saying was "Authentication failed..." like obviously dude - when I get Login failed message that usually would mean that it hasnt authenticated.. but why aren't you telling me why???
Any way, so I logged into my mariadb server and checked the postmaster user details in the vmail schema. I looked at the password and saw it it hashed with SSHA512 so I knew I could use "doveadm" tool to check my password and that iredmail was maybe using the same hashing algo, and low and behold when I hashed my password the resulting hash was different!! so I replaced the hash in the database with the hash of my password, tried to log in and hey presto! It worked!!
So why is the password from installation different to the one I stated on installation?? I mean it's as if iredmail just created its own random password and told me (in iredmail.tips) that my password was the one I set - but that was a lie! How can this happen?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.