Jon Callas
2006-May-28 22:18 UTC
[Dovecot] Dovecot statistics -- I hope this is a stupid question
Is there a way for me to know the last time a user logged in? i'm running Dovecot with Postfix with the authentication bridge and completely virtual everything. It would be nice to know the last time someone logged in, so four years from now I can delete the ones that haven't been used in three years. Jon
Timo Sirainen
2006-Jun-11 18:24 UTC
[Dovecot] Dovecot statistics -- I hope this is a stupid question
On Sun, 2006-05-28 at 15:18 -0700, Jon Callas wrote:> Is there a way for me to know the last time a user logged in? i'm > running Dovecot with Postfix with the authentication bridge and > completely virtual everything. It would be nice to know the last time > someone logged in, so four years from now I can delete the ones that > haven't been used in three years.Dovecot doesn't specifically keep track of that. You can grep log files, but that's a bit slow. Another way which should work well enough is to look at the timestamp of Dovecot's index files for the user's INBOX. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 191 bytes Desc: This is a digitally signed message part Url : http://dovecot.org/pipermail/dovecot/attachments/20060611/bf392b54/attachment.pgp