diff --git a/en_US/howto/track.user.last.login.md b/en_US/howto/track.user.last.login.md index c54a85b8..7f893ec1 100644 --- a/en_US/howto/track.user.last.login.md +++ b/en_US/howto/track.user.last.login.md @@ -8,7 +8,8 @@ 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) * 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 easily save and update user's last-login timestamp in SQL database. diff --git a/en_US/upgrade/0-upgrade.iredmail.0.9.9-1.0.md b/en_US/upgrade/0-upgrade.iredmail.0.9.9-1.0.md index a6903047..52e5af86 100644 --- a/en_US/upgrade/0-upgrade.iredmail.0.9.9-1.0.md +++ b/en_US/upgrade/0-upgrade.iredmail.0.9.9-1.0.md @@ -10,6 +10,7 @@ ## 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 9, 2019, initial release. @@ -263,6 +264,10 @@ smtpd_recipient_restrictions = 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 ### [OPTIONAL] Enable mailbox quota status check in Dovecot and Postfix. @@ -350,6 +355,10 @@ smtpd_recipient_restrictions = 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 ### [OPTIONAL] Enable mailbox quota status check in Dovecot and Postfix. diff --git a/en_US/upgrade/0-upgrade.iredmail.1.1-1.2.md b/en_US/upgrade/0-upgrade.iredmail.1.1-1.2.md index 2d1e8735..fec2d191 100644 --- a/en_US/upgrade/0-upgrade.iredmail.1.1-1.2.md +++ b/en_US/upgrade/0-upgrade.iredmail.1.1-1.2.md @@ -10,6 +10,7 @@ ## ChangeLog +* Apr 18, 2020: Add link of tutorial: [Track user last login time](./track.user.last.login.html). * Apr 17, 2020: initial release. ## General (All backends should apply these changes) @@ -74,10 +75,16 @@ chmod 0550 mlmmj-amime-receive ### Improved last login track -In iRedMail-1.0, Dovecot is configured to store user last login time 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. +!!! attention + + User last login track is optional if you didn't implement it while + 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 `/usr/local/etc/dovecot/dovecot.conf` (FreeBSD), find the `last_login_key` diff --git a/html/track.user.last.login.html b/html/track.user.last.login.html index ff78aa41..dec62d4d 100644 --- a/html/track.user.last.login.html +++ b/html/track.user.last.login.html @@ -34,7 +34,8 @@ not yet support updating existing SQL record on conflict primary key. References: 1, 2
Dovecot ships a last_login
plugin since Dovecot-2.2.14, it can be used to
diff --git a/html/upgrade.iredmail.0.9.9-1.0.html b/html/upgrade.iredmail.0.9.9-1.0.html
index b6bba52f..f99f5f12 100644
--- a/html/upgrade.iredmail.0.9.9-1.0.html
+++ b/html/upgrade.iredmail.0.9.9-1.0.html
@@ -40,6 +40,7 @@
Restarting Postfix service is required.
+With default iRedMail settings, Postfix accepts email without checking whether @@ -355,6 +362,10 @@ Dovecot-2.1.x or earlier versions.
Restarting Postfix service is required.
+With default iRedMail settings, Postfix accepts email without checking whether diff --git a/html/upgrade.iredmail.1.1-1.2.html b/html/upgrade.iredmail.1.1-1.2.html index 4aa50c70..4f460de1 100644 --- a/html/upgrade.iredmail.1.1-1.2.html +++ b/html/upgrade.iredmail.1.1-1.2.html @@ -56,6 +56,7 @@ check the details and
In iRedMail-1.0, Dovecot is configured to store user last login time 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.
Attention
+User last login track is optional if you didn't implement it while +upgrading iRedMail to 1.0. Here's the full tutorial to implement last login +track: Track user last login time.
+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.
/etc/dovecot/dovecot.conf
(Linux/OpenBSD) or
/usr/local/etc/dovecot/dovecot.conf
(FreeBSD), find the last_login_key