This commit is contained in:
Zhang Huangbin 2017-10-17 13:15:18 +08:00
parent 190ccb3a5a
commit 93ec81af46
2 changed files with 26 additions and 1 deletions

View File

@ -1,5 +1,7 @@
# Force mail user to change password in 90 days
[TOC]
## How it works
iRedMail configures Roundcube webmail to store last password change date while
@ -46,3 +48,11 @@ CHANGE_PASSWORD_MESSAGE = 'Please change your password in webmail before sending
```
Then restart iRedAPD service.
## Roundcube plugin: `force_password_change`
There's a third-party Roundcube plugin can force user to change password.
<https://bitbucket.org/wainlake/force_password_change>
Roundcube will __ALWAYS__ redirect user to `Password` page (offered by official
Roundcube plugin password) until user changed the password.

View File

@ -16,6 +16,16 @@
<span>iRedMail</span>
</a>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><h1 id="force-mail-user-to-change-password-in-90-days">Force mail user to change password in 90 days</h1>
<div class="toc">
<ul>
<li><a href="#force-mail-user-to-change-password-in-90-days">Force mail user to change password in 90 days</a><ul>
<li><a href="#how-it-works">How it works</a></li>
<li><a href="#how-to-enable-iredapd-plugin">How to enable iRedAPD plugin</a></li>
<li><a href="#roundcube-plugin-force_password_change">Roundcube plugin: force_password_change</a></li>
</ul>
</li>
</ul>
</div>
<h2 id="how-it-works">How it works</h2>
<p>iRedMail configures Roundcube webmail to store last password change date while
user changed password. For MySQL/MariaDB/PostgreSQL backends, it's stored in
@ -53,7 +63,12 @@ CHANGE_PASSWORD_DAYS = 90
CHANGE_PASSWORD_MESSAGE = 'Please change your password in webmail before sending email: https://xxx/webmail/'
</code></pre>
<p>Then restart iRedAPD service.</p><div class="footer">
<p>Then restart iRedAPD service.</p>
<h2 id="roundcube-plugin-force_password_change">Roundcube plugin: <code>force_password_change</code></h2>
<p>There's a third-party Roundcube plugin can force user to change password.
<a href="https://bitbucket.org/wainlake/force_password_change">https://bitbucket.org/wainlake/force_password_change</a></p>
<p>Roundcube will <strong>ALWAYS</strong> redirect user to <code>Password</code> page (offered by official
Roundcube plugin password) until user changed the password.</p><div class="footer">
<p style="text-align: center; color: grey;">All documents are available in <a href="https://bitbucket.org/zhb/iredmail-docs/src">BitBucket repository</a>, and published under <a href="http://creativecommons.org/licenses/by-nd/3.0/us/" target="_blank">Creative Commons</a> license. You can <a href="https://bitbucket.org/zhb/iredmail-docs/get/tip.tar.bz2">download the latest version</a> for offline reading. If you found something wrong, please do <a href="http://www.iredmail.org/contact.html">contact us</a> to fix it.</p>
</div>
<script type="text/javascript">