New tutorial: howto/reset.user.password.md.
This commit is contained in:
parent
c7de9c0a0a
commit
13b140b56e
|
@ -28,6 +28,7 @@ We're migrating [old wiki documents](http://www.iredmail.org/wiki) to Markdown f
|
||||||
* [Monitor incoming and outgoing mails with BCC](https://bitbucket.org/zhb/docs.iredmail.org/src/default/howto/monitor.incoming.and.outgoing.mails.with.bcc.md)
|
* [Monitor incoming and outgoing mails with BCC](https://bitbucket.org/zhb/docs.iredmail.org/src/default/howto/monitor.incoming.and.outgoing.mails.with.bcc.md)
|
||||||
* [Pipe incoming email for certain user to external script ](https://bitbucket.org/zhb/docs.iredmail.org/src/default/howto/pipe.incoming.email.for.certain.user.to.external.script.md)
|
* [Pipe incoming email for certain user to external script ](https://bitbucket.org/zhb/docs.iredmail.org/src/default/howto/pipe.incoming.email.for.certain.user.to.external.script.md)
|
||||||
* [Force Dovecot to recalculate mailbox quota](https://bitbucket.org/zhb/docs.iredmail.org/src/default/howto/recalculate.mailbox.quota.md)
|
* [Force Dovecot to recalculate mailbox quota](https://bitbucket.org/zhb/docs.iredmail.org/src/default/howto/recalculate.mailbox.quota.md)
|
||||||
|
* [Reset user password](https://bitbucket.org/zhb/docs.iredmail.org/src/default/howto/reset.user.password.md)
|
||||||
* [SQL: Create domain catch-all account for SQL backend](https://bitbucket.org/zhb/docs.iredmail.org/src/default/howto/sql.create.domain.catchall.account.md)
|
* [SQL: Create domain catch-all account for SQL backend](https://bitbucket.org/zhb/docs.iredmail.org/src/default/howto/sql.create.domain.catchall.account.md)
|
||||||
* [SQL: Create an mail alias account with SQL command line](https://bitbucket.org/zhb/docs.iredmail.org/src/default/howto/sql.create.mail.alias.md)
|
* [SQL: Create an mail alias account with SQL command line](https://bitbucket.org/zhb/docs.iredmail.org/src/default/howto/sql.create.mail.alias.md)
|
||||||
* [Store SpamAssassin bayes in SQL](https://bitbucket.org/zhb/docs.iredmail.org/src/default/howto/store.spamassassin.bayes.in.sql.md)
|
* [Store SpamAssassin bayes in SQL](https://bitbucket.org/zhb/docs.iredmail.org/src/default/howto/store.spamassassin.bayes.in.sql.md)
|
||||||
|
|
8
TODO.md
8
TODO.md
|
@ -2,9 +2,7 @@
|
||||||
|
|
||||||
# New
|
# New
|
||||||
|
|
||||||
* http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/LDAP/Monitor.Incoming.and.Outgoing.Mails.with.BCC
|
* iRedMail upgrade tutorials
|
||||||
* http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/LDAP/Turn.On.Debug.Mode.In.OpenLDAP
|
|
||||||
* http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Reset.password.for.mail.user
|
|
||||||
* Upgrade iRedAPD: http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Upgrade.iRedAPD
|
* Upgrade iRedAPD: http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Upgrade.iRedAPD
|
||||||
* How to enable SSHA512/BCRYPT in Dovecot + Roundcubemail.
|
* How to enable SSHA512/BCRYPT in Dovecot + Roundcubemail.
|
||||||
* How to custom SpamAssassin scores
|
* How to custom SpamAssassin scores
|
||||||
|
@ -12,6 +10,7 @@
|
||||||
* How to enable DNSBL in Postfix.
|
* How to enable DNSBL in Postfix.
|
||||||
* http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Send.out.email.from.specified.IP.address
|
* http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Send.out.email.from.specified.IP.address
|
||||||
|
|
||||||
|
|
||||||
# installation guides
|
# installation guides
|
||||||
|
|
||||||
* http://www.iredmail.org/wiki/index.php?title=Install/iRedMail/FreeBSD.Jail
|
* http://www.iredmail.org/wiki/index.php?title=Install/iRedMail/FreeBSD.Jail
|
||||||
|
@ -57,6 +56,9 @@
|
||||||
|
|
||||||
# Howto
|
# Howto
|
||||||
|
|
||||||
|
* ~~ http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Reset.password.for.mail.user ~~
|
||||||
|
* ~~http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/LDAP/Monitor.Incoming.and.Outgoing.Mails.with.BCC~~
|
||||||
|
* ~~http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/LDAP/Turn.On.Debug.Mode.In.OpenLDAP~~
|
||||||
* ~~ http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Quarantining.Clean.Mail ~~
|
* ~~ http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Quarantining.Clean.Mail ~~
|
||||||
* ~~ http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Quarantining.SPAM ~~
|
* ~~ http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Quarantining.SPAM ~~
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
# Reset user password
|
||||||
|
|
||||||
|
With MySQL or PostgreSQL backends, you can generate a password hash with
|
||||||
|
`openssl` or `doveadm` command first, then replace old one with this newly
|
||||||
|
generated one.
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
* Generate a salted MD5 password hash with `openssl` (plain password is `123456`
|
||||||
|
in this case):
|
||||||
|
|
||||||
|
```
|
||||||
|
$ openssl passwd -1 123456
|
||||||
|
$1$2dQ48hyz$.mCLeDSdPkP3fxVmARsB.0
|
||||||
|
```
|
||||||
|
|
||||||
|
Or, generate password hash with `doveadm`:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ doveadm pw -s 'ssha' -p '123456'
|
||||||
|
{SSHA}MU5Y8OfD9HylnHk4UQaVyaJf6Lugx6vt
|
||||||
|
```
|
||||||
|
|
||||||
|
* Reset password for user `user@domain.ltd` and `another-user@domain.ltd`:
|
||||||
|
|
||||||
|
```
|
||||||
|
sql> USE vmail;
|
||||||
|
sql> UPDATE mailbox SET password='$1$2dQ48hyz$.mCLeDSdPkP3fxVmARsB.0' WHERE username='user@domain.ltd';
|
||||||
|
sql> UPDATE mailbox SET password='{SSHA}MU5Y8OfD9HylnHk4UQaVyaJf6Lugx6vt' WHERE username='another-user@domain.ltd';
|
||||||
|
```
|
||||||
|
|
||||||
|
With OpenLDAP backend, you can reset it with phpLDAPadmin or other LDAP client
|
||||||
|
tools, `SSHA` is preferred.
|
||||||
|
|
||||||
|
Reference: [how to use or migrate password hashes](./password.hashes.html)
|
|
@ -43,6 +43,7 @@
|
||||||
<li><a href="monitor.incoming.and.outgoing.mails.with.bcc.html">Monitor incoming and outgoing mails with BCC</a></li>
|
<li><a href="monitor.incoming.and.outgoing.mails.with.bcc.html">Monitor incoming and outgoing mails with BCC</a></li>
|
||||||
<li><a href="pipe.incoming.email.for.certain.user.to.external.script.html">Pipe incoming email for certain user to external script </a></li>
|
<li><a href="pipe.incoming.email.for.certain.user.to.external.script.html">Pipe incoming email for certain user to external script </a></li>
|
||||||
<li><a href="recalculate.mailbox.quota.html">Force Dovecot to recalculate mailbox quota</a></li>
|
<li><a href="recalculate.mailbox.quota.html">Force Dovecot to recalculate mailbox quota</a></li>
|
||||||
|
<li><a href="reset.user.password.html">Reset user password</a></li>
|
||||||
<li><a href="sql.create.domain.catchall.account.html">SQL: Create domain catch-all account for SQL backend</a></li>
|
<li><a href="sql.create.domain.catchall.account.html">SQL: Create domain catch-all account for SQL backend</a></li>
|
||||||
<li><a href="sql.create.mail.alias.html">SQL: Create an mail alias account with SQL command line</a></li>
|
<li><a href="sql.create.mail.alias.html">SQL: Create an mail alias account with SQL command line</a></li>
|
||||||
<li><a href="store.spamassassin.bayes.in.sql.html">Store SpamAssassin bayes in SQL</a></li>
|
<li><a href="store.spamassassin.bayes.in.sql.html">Store SpamAssassin bayes in SQL</a></li>
|
||||||
|
|
|
@ -0,0 +1,54 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
<title>Reset user password</title>
|
||||||
|
<link href="./css/markdown.css" rel="stylesheet"></head>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div id="navigation">
|
||||||
|
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
|
||||||
|
|
||||||
|
// <a href="./index.html">Document Index</a>
|
||||||
|
</div><h1 id="reset-user-password">Reset user password</h1>
|
||||||
|
<p>With MySQL or PostgreSQL backends, you can generate a password hash with
|
||||||
|
<code>openssl</code> or <code>doveadm</code> command first, then replace old one with this newly
|
||||||
|
generated one.</p>
|
||||||
|
<p>For example:</p>
|
||||||
|
<ul>
|
||||||
|
<li>Generate a salted MD5 password hash with <code>openssl</code> (plain password is <code>123456</code>
|
||||||
|
in this case):</li>
|
||||||
|
</ul>
|
||||||
|
<pre><code>$ openssl passwd -1 123456
|
||||||
|
$1$2dQ48hyz$.mCLeDSdPkP3fxVmARsB.0
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>Or, generate password hash with <code>doveadm</code>:</p>
|
||||||
|
<pre><code>$ doveadm pw -s 'ssha' -p '123456'
|
||||||
|
{SSHA}MU5Y8OfD9HylnHk4UQaVyaJf6Lugx6vt
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Reset password for user <code>user@domain.ltd</code> and <code>another-user@domain.ltd</code>:</li>
|
||||||
|
</ul>
|
||||||
|
<pre><code>sql> USE vmail;
|
||||||
|
sql> UPDATE mailbox SET password='$1$2dQ48hyz$.mCLeDSdPkP3fxVmARsB.0' WHERE username='user@domain.ltd';
|
||||||
|
sql> UPDATE mailbox SET password='{SSHA}MU5Y8OfD9HylnHk4UQaVyaJf6Lugx6vt' WHERE username='another-user@domain.ltd';
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>With OpenLDAP backend, you can reset it with phpLDAPadmin or other LDAP client
|
||||||
|
tools, <code>SSHA</code> is preferred.</p>
|
||||||
|
<p>Reference: <a href="./password.hashes.html">how to use or migrate password hashes</a></p><br /><p style="text-align: center;">If you found something wrong
|
||||||
|
in this document, please do
|
||||||
|
<a href="http://www.iredmail.org/contact.html">contact us</a> to fix it.</p><p style="text-align: center; color: grey;">This tutorial is published under a <a href="http://creativecommons.org/licenses/by-nd/3.0/us/" target="_blank">CC BY-ND 3.0</a> license.<!-- Google Analytics -->
|
||||||
|
<script type="text/javascript">
|
||||||
|
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
||||||
|
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
||||||
|
</script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
try {
|
||||||
|
var pageTracker = _gat._getTracker("UA-3293801-14");
|
||||||
|
pageTracker._trackPageview();
|
||||||
|
} catch(err) {}
|
||||||
|
</script>
|
||||||
|
</body></html>
|
Loading…
Reference in New Issue