Pages

Sunday, October 24, 2021

Iredmail password change md5 ssha512

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

Generate a SSHA512 password hash:

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

{SSHA512}jOcGSlKEz95VeuLGecbL0MwJKy0yWY9foj6UlUVfZ2O2SNkEExU3n42YJLXDbLnu3ghnIRBkwDMsM31q7OI0jY5B/5E=

Generate a BCRYPT password hash on BSD system:

$ doveadm pw -s 'blf-crypt' -p '123'

{BLF-CRYPT}$2a$05$9CTW6FZtjHeK6W.2YMmzOeAj2YFvDpP4JEH0uH/YLQI81jPWDtzQW



SQL backends

To reset password for user user@domain.ltd, 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}$1$KxfQLbMV$Pq3x21nQEYMm6eFUrVJOS.' WHERE username = 'tayab.khan@toron.com.bd';


No comments:

Post a Comment