iredmail hash of password

Posted June 27, 2020 836 views

After easy unstallation of iredmail my passwords is a hash of password.
How to know my passwords from hash???

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hello, @erounion

The passwords are not saved in plain-text due to security reasons. The passwords are encrypted with either SSHA512 or MD5 hash.

If you do not remember your password your can reset it by following iredmail’s official documentation:

Reset password with SQL/LDAP command line

To generate password hash for new password, please use doveadm command.

Generate a SSHA512 password hash:

doveadm pw -s 'ssha512' -p '123456'

Note: Replace 123456 with the actual password you want to use

To reset password for user, please login to SQL server as either SQL root user or vmailadmin user (note: sql user vmail has read-only privilege to vmail database, so you cannot use it to change user password), then execute SQL commands to reset password:

sql> USE vmail;
sql> UPDATE mailbox SET password='{SSHA512}jOcGSlKEz95VeuLGecbL0MwJKy0yWY9foj6UlUVfZ2O2SNkEExU3n42YJLXDbLnu3ghnIRBkwDMsM31q7OI0jY5B/5E=' WHERE username='';

You can also check the other methods listed in the docs.

Hope that this helps!