iredmail
IRedMail/FAQ/Reset.password.for.mail.user
IRedMail/FAQ/Reset.password.for.mail.user
Jump to: navigation, search
With MySQL or PostgreSQL backends, you can generate a password hash first, then replace old one with this newly generated one.
For example:
Generate a salted MD5 password hash with openssl (password in plain text is 123456 in below case):
Terminal:
$ openssl passwd -1 123456 $1$2dQ48hyz$.mCLeDSdPkP3fxVmARsB.0
Replace password for user 'user@domain.ltd':
Terminal:
mysql> USE vmail; mysql> UPDATE mailbox SET password='$1$2dQ48hyz$.mCLeDSdPkP3fxVmARsB.0' WHERE username='user@domain.ltd';
With OpenLDAP backend, you can reset it with phpLDAPadmin, choose SSHA please.
More details about how to use or migrate password hashes: IRedMail/FAQ/use.or.migrate.password.hashes