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

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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:
$ 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