I am using dovecot virtual maildir accounts. Is it possible to find last day of login for an account by checking the last modification time of the maildir files?
Lefteris
Hi You may find some Plugins if you use a front-end like round cube. I recall seeing a field in the postfix MySQL database. I'm not sure on Maildirs since mails would be delivered and timestamps changed even if user is not logging in.
Cheers/DP
On Fri, May 17, 2019, 18:21 Lefteris Tsintjelis via dovecot < dovecot@dovecot.org> wrote:
I am using dovecot virtual maildir accounts. Is it possible to find last day of login for an account by checking the last modification time of the maildir files?
Lefteris
Or you can use last_login plugin, bundled with dovecot.
https://wiki.dovecot.org/Plugins/LastLogin
Aki
On 18 May 2019 19:43 Durga Prasad Malyala via dovecot <dovecot@dovecot.org> wrote:
Hi You may find some Plugins if you use a front-end like round cube. I recall seeing a field in the postfix MySQL database. I'm not sure on Maildirs since mails would be delivered and timestamps changed even if user is not logging in.
Cheers/DP
On Fri, May 17, 2019, 18:21 Lefteris Tsintjelis via dovecot <dovecot@dovecot.org> wrote:
I am using dovecot virtual maildir accounts. Is it possible to find last day of login for an account by checking the last modification time of the maildir files?
Lefteris
On 18/05/2019 19:47, Aki Tuomi via dovecot wrote:
Or you can use last_login plugin, bundled with dovecot.
https://wiki.dovecot.org/Plugins/LastLogin
Aki
That is a very nice one Aki, thank you. This is what I needed. I only wish I had that before.
Lefteris
Hi, not everyone is using roundcube so this is a problem and postfix does not have this field from what I have checked. The timestamp of the email files though do not change from what I see (unless I am missing something) so I guess this is the only safe way here but only in the files left in the "new" folder.
On 18/05/2019 19:43, Durga Prasad Malyala via dovecot wrote:
Hi You may find some Plugins if you use a front-end like round cube. I recall seeing a field in the postfix MySQL database. I'm not sure on Maildirs since mails would be delivered and timestamps changed even if user is not logging in.
Cheers/DP
On Fri, May 17, 2019, 18:21 Lefteris Tsintjelis via dovecot <dovecot@dovecot.org> wrote:
I am using dovecot virtual maildir accounts. Is it possible to find last day of login for an account by checking the last modification time of the maildir files?
Lefteris
participants (3)
-
Aki Tuomi
-
Durga Prasad Malyala
-
Lefteris Tsintjelis