From iRedMail
Revision as of 18:37, 19 May 2014 by ZhangHuangbin (Talk | contribs)

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):
$ openssl passwd -1 123456
  • Replace password for user '':
mysql> USE vmail;
mysql> UPDATE mailbox SET password='$1$2dQ48hyz$.mCLeDSdPkP3fxVmARsB.0' WHERE username='';

With OpenLDAP backend, you can reset it with phpLDAPadmin, choose SSHA please.

Personal tools