Add link of tutorial: Track user last login time.
This commit is contained in:
parent
193e815e3b
commit
1263a82ad0
|
@ -8,7 +8,8 @@
|
||||||
not yet support updating existing SQL record on conflict primary key.
|
not yet support updating existing SQL record on conflict primary key.
|
||||||
References: [1](https://marc.info/?t=155411531600001&r=1&w=2), [2](https://marc.info/?t=155826327900001&r=1&w=2)
|
References: [1](https://marc.info/?t=155411531600001&r=1&w=2), [2](https://marc.info/?t=155826327900001&r=1&w=2)
|
||||||
* This tutorial has been updated to support tracking last login time of
|
* This tutorial has been updated to support tracking last login time of
|
||||||
both IMAP and POP3, which is implemented in iRedMail-1.2.
|
both IMAP and POP3, which is implemented in iRedMail-1.2, you can find
|
||||||
|
the difference in upgrade tutorial for iRedMail-1.2 here: [For LDAP backend](./upgrade.iredmail.1.1-1.2.html#improved-last-login-track), [For SQL backends](./upgrade.iredmail.1.1-1.2.html#improved-last-login-track_1).
|
||||||
|
|
||||||
Dovecot ships a `last_login` plugin since Dovecot-2.2.14, it can be used to
|
Dovecot ships a `last_login` plugin since Dovecot-2.2.14, it can be used to
|
||||||
easily save and update user's last-login timestamp in SQL database.
|
easily save and update user's last-login timestamp in SQL database.
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
## ChangeLog
|
## ChangeLog
|
||||||
|
|
||||||
|
* Apr 18, 2020, mention how to configure Dovecot to track user last login time.
|
||||||
* Dec 11 2019, mention not to enable quota-status service in Dovecot-2.1.x.
|
* Dec 11 2019, mention not to enable quota-status service in Dovecot-2.1.x.
|
||||||
* Dec 9, 2019, initial release.
|
* Dec 9, 2019, initial release.
|
||||||
|
|
||||||
|
@ -263,6 +264,10 @@ smtpd_recipient_restrictions =
|
||||||
|
|
||||||
Restarting Postfix service is required.
|
Restarting Postfix service is required.
|
||||||
|
|
||||||
|
### [OPTIONAL] Track the time of user last login via IMAP/POP3
|
||||||
|
|
||||||
|
* [Track user last login time](./track.user.last.login.html)
|
||||||
|
|
||||||
## For MySQL/MariaDB backends
|
## For MySQL/MariaDB backends
|
||||||
|
|
||||||
### [OPTIONAL] Enable mailbox quota status check in Dovecot and Postfix.
|
### [OPTIONAL] Enable mailbox quota status check in Dovecot and Postfix.
|
||||||
|
@ -350,6 +355,10 @@ smtpd_recipient_restrictions =
|
||||||
|
|
||||||
Restarting Postfix service is required.
|
Restarting Postfix service is required.
|
||||||
|
|
||||||
|
### [OPTIONAL] Track the time of user last login via IMAP/POP3
|
||||||
|
|
||||||
|
* [Track user last login time](./track.user.last.login.html)
|
||||||
|
|
||||||
## For PostgreSQL backend
|
## For PostgreSQL backend
|
||||||
|
|
||||||
### [OPTIONAL] Enable mailbox quota status check in Dovecot and Postfix.
|
### [OPTIONAL] Enable mailbox quota status check in Dovecot and Postfix.
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
## ChangeLog
|
## ChangeLog
|
||||||
|
|
||||||
|
* Apr 18, 2020: Add link of tutorial: [Track user last login time](./track.user.last.login.html).
|
||||||
* Apr 17, 2020: initial release.
|
* Apr 17, 2020: initial release.
|
||||||
|
|
||||||
## General (All backends should apply these changes)
|
## General (All backends should apply these changes)
|
||||||
|
@ -74,10 +75,16 @@ chmod 0550 mlmmj-amime-receive
|
||||||
|
|
||||||
### Improved last login track
|
### Improved last login track
|
||||||
|
|
||||||
In iRedMail-1.0, Dovecot is configured to store user last login time in SQL
|
!!! attention
|
||||||
database `iredadmin`, but it only tracks either POP3 or IMAP login. In
|
|
||||||
iRedMail-1.2, it tracks both. Please follow steps below to implement this
|
User last login track is optional if you didn't implement it while
|
||||||
improvement.
|
upgrading iRedMail to 1.0. Here's the full tutorial to implement last login
|
||||||
|
track: [Track user last login time](./track.user.last.login.html).
|
||||||
|
|
||||||
|
In iRedMail-1.0, Dovecot is configured to store the time of user last login via
|
||||||
|
IMAP/POP3 in SQL database `iredadmin`, but it only tracks either POP3 or IMAP
|
||||||
|
login. In iRedMail-1.2, it tracks both. Please follow steps below to implement
|
||||||
|
this improvement.
|
||||||
|
|
||||||
* Open file `/etc/dovecot/dovecot.conf` (Linux/OpenBSD) or
|
* Open file `/etc/dovecot/dovecot.conf` (Linux/OpenBSD) or
|
||||||
`/usr/local/etc/dovecot/dovecot.conf` (FreeBSD), find the `last_login_key`
|
`/usr/local/etc/dovecot/dovecot.conf` (FreeBSD), find the `last_login_key`
|
||||||
|
|
|
@ -34,7 +34,8 @@
|
||||||
not yet support updating existing SQL record on conflict primary key.
|
not yet support updating existing SQL record on conflict primary key.
|
||||||
References: <a href="https://marc.info/?t=155411531600001&r=1&w=2">1</a>, <a href="https://marc.info/?t=155826327900001&r=1&w=2">2</a></li>
|
References: <a href="https://marc.info/?t=155411531600001&r=1&w=2">1</a>, <a href="https://marc.info/?t=155826327900001&r=1&w=2">2</a></li>
|
||||||
<li>This tutorial has been updated to support tracking last login time of
|
<li>This tutorial has been updated to support tracking last login time of
|
||||||
both IMAP and POP3, which is implemented in iRedMail-1.2.</li>
|
both IMAP and POP3, which is implemented in iRedMail-1.2, you can find
|
||||||
|
the difference in upgrade tutorial for iRedMail-1.2 here: <a href="./upgrade.iredmail.1.1-1.2.html#improved-last-login-track">For LDAP backend</a>, <a href="./upgrade.iredmail.1.1-1.2.html#improved-last-login-track_1">For SQL backends</a>.</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<p>Dovecot ships a <code>last_login</code> plugin since Dovecot-2.2.14, it can be used to
|
<p>Dovecot ships a <code>last_login</code> plugin since Dovecot-2.2.14, it can be used to
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
<li><a href="#enable-quota-status-check-in-postfix">Enable quota status check in Postfix</a></li>
|
<li><a href="#enable-quota-status-check-in-postfix">Enable quota status check in Postfix</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
<li><a href="#optional-track-the-time-of-user-last-login-via-imappop3">[OPTIONAL] Track the time of user last login via IMAP/POP3</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#for-mysqlmariadb-backends">For MySQL/MariaDB backends</a><ul>
|
<li><a href="#for-mysqlmariadb-backends">For MySQL/MariaDB backends</a><ul>
|
||||||
|
@ -49,6 +50,7 @@
|
||||||
<li><a href="#enable-quota-status-check-in-postfix_1">Enable quota status check in Postfix</a></li>
|
<li><a href="#enable-quota-status-check-in-postfix_1">Enable quota status check in Postfix</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
<li><a href="#optional-track-the-time-of-user-last-login-via-imappop3_1">[OPTIONAL] Track the time of user last login via IMAP/POP3</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#for-postgresql-backend">For PostgreSQL backend</a><ul>
|
<li><a href="#for-postgresql-backend">For PostgreSQL backend</a><ul>
|
||||||
|
@ -72,6 +74,7 @@ check <a href="https://www.iredmail.org/support.html">the details</a> and
|
||||||
</div>
|
</div>
|
||||||
<h2 id="changelog">ChangeLog</h2>
|
<h2 id="changelog">ChangeLog</h2>
|
||||||
<ul>
|
<ul>
|
||||||
|
<li>Apr 18, 2020, mention how to configure Dovecot to track user last login time.</li>
|
||||||
<li>Dec 11 2019, mention not to enable quota-status service in Dovecot-2.1.x.</li>
|
<li>Dec 11 2019, mention not to enable quota-status service in Dovecot-2.1.x.</li>
|
||||||
<li>Dec 9, 2019, initial release.</li>
|
<li>Dec 9, 2019, initial release.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -285,6 +288,10 @@ Dovecot-2.1.x or earlier versions.</p>
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<p>Restarting Postfix service is required.</p>
|
<p>Restarting Postfix service is required.</p>
|
||||||
|
<h3 id="optional-track-the-time-of-user-last-login-via-imappop3">[OPTIONAL] Track the time of user last login via IMAP/POP3</h3>
|
||||||
|
<ul>
|
||||||
|
<li><a href="./track.user.last.login.html">Track user last login time</a></li>
|
||||||
|
</ul>
|
||||||
<h2 id="for-mysqlmariadb-backends">For MySQL/MariaDB backends</h2>
|
<h2 id="for-mysqlmariadb-backends">For MySQL/MariaDB backends</h2>
|
||||||
<h3 id="optional-enable-mailbox-quota-status-check-in-dovecot-and-postfix_1">[OPTIONAL] Enable mailbox quota status check in Dovecot and Postfix.</h3>
|
<h3 id="optional-enable-mailbox-quota-status-check-in-dovecot-and-postfix_1">[OPTIONAL] Enable mailbox quota status check in Dovecot and Postfix.</h3>
|
||||||
<p>With default iRedMail settings, Postfix accepts email without checking whether
|
<p>With default iRedMail settings, Postfix accepts email without checking whether
|
||||||
|
@ -355,6 +362,10 @@ Dovecot-2.1.x or earlier versions.</p>
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<p>Restarting Postfix service is required.</p>
|
<p>Restarting Postfix service is required.</p>
|
||||||
|
<h3 id="optional-track-the-time-of-user-last-login-via-imappop3_1">[OPTIONAL] Track the time of user last login via IMAP/POP3</h3>
|
||||||
|
<ul>
|
||||||
|
<li><a href="./track.user.last.login.html">Track user last login time</a></li>
|
||||||
|
</ul>
|
||||||
<h2 id="for-postgresql-backend">For PostgreSQL backend</h2>
|
<h2 id="for-postgresql-backend">For PostgreSQL backend</h2>
|
||||||
<h3 id="optional-enable-mailbox-quota-status-check-in-dovecot-and-postfix_2">[OPTIONAL] Enable mailbox quota status check in Dovecot and Postfix.</h3>
|
<h3 id="optional-enable-mailbox-quota-status-check-in-dovecot-and-postfix_2">[OPTIONAL] Enable mailbox quota status check in Dovecot and Postfix.</h3>
|
||||||
<p>With default iRedMail settings, Postfix accepts email without checking whether
|
<p>With default iRedMail settings, Postfix accepts email without checking whether
|
||||||
|
|
|
@ -56,6 +56,7 @@ check <a href="https://www.iredmail.org/support.html">the details</a> and
|
||||||
</div>
|
</div>
|
||||||
<h2 id="changelog">ChangeLog</h2>
|
<h2 id="changelog">ChangeLog</h2>
|
||||||
<ul>
|
<ul>
|
||||||
|
<li>Apr 18, 2020: Add link of tutorial: <a href="./track.user.last.login.html">Track user last login time</a>.</li>
|
||||||
<li>Apr 17, 2020: initial release.</li>
|
<li>Apr 17, 2020: initial release.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h2 id="general-all-backends-should-apply-these-changes">General (All backends should apply these changes)</h2>
|
<h2 id="general-all-backends-should-apply-these-changes">General (All backends should apply these changes)</h2>
|
||||||
|
@ -103,10 +104,16 @@ chmod 0550 mlmmj-amime-receive
|
||||||
|
|
||||||
<h2 id="for-openldap-backend">For OpenLDAP backend</h2>
|
<h2 id="for-openldap-backend">For OpenLDAP backend</h2>
|
||||||
<h3 id="improved-last-login-track">Improved last login track</h3>
|
<h3 id="improved-last-login-track">Improved last login track</h3>
|
||||||
<p>In iRedMail-1.0, Dovecot is configured to store user last login time in SQL
|
<div class="admonition attention">
|
||||||
database <code>iredadmin</code>, but it only tracks either POP3 or IMAP login. In
|
<p class="admonition-title">Attention</p>
|
||||||
iRedMail-1.2, it tracks both. Please follow steps below to implement this
|
<p>User last login track is optional if you didn't implement it while
|
||||||
improvement.</p>
|
upgrading iRedMail to 1.0. Here's the full tutorial to implement last login
|
||||||
|
track: <a href="./track.user.last.login.html">Track user last login time</a>.</p>
|
||||||
|
</div>
|
||||||
|
<p>In iRedMail-1.0, Dovecot is configured to store the time of user last login via
|
||||||
|
IMAP/POP3 in SQL database <code>iredadmin</code>, but it only tracks either POP3 or IMAP
|
||||||
|
login. In iRedMail-1.2, it tracks both. Please follow steps below to implement
|
||||||
|
this improvement.</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Open file <code>/etc/dovecot/dovecot.conf</code> (Linux/OpenBSD) or
|
<li>Open file <code>/etc/dovecot/dovecot.conf</code> (Linux/OpenBSD) or
|
||||||
<code>/usr/local/etc/dovecot/dovecot.conf</code> (FreeBSD), find the <code>last_login_key</code>
|
<code>/usr/local/etc/dovecot/dovecot.conf</code> (FreeBSD), find the <code>last_login_key</code>
|
||||||
|
|
Loading…
Reference in New Issue