IRedMail/FAQ/Reset.password.for.mail.user

From iRedMail
(Difference between revisions)
Jump to: navigation, search
(Created page with "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 ...")
 
Line 3: Line 3:
 
For example:
 
For example:
  
* Generate a salted MD5 password hash with openssl:
+
* Generate a salted MD5 password hash with openssl (password in plain text is 123456 in below case):
 
{{cmd|<pre>
 
{{cmd|<pre>
 
$ openssl passwd -1 123456
 
$ openssl passwd -1 123456

Revision as of 18:37, 19 May 2014

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.

Personal tools