[Dovecot] Detecting unused accounts
tss at iki.fi
Mon Oct 11 20:19:37 EEST 2004
On 11.10.2004, at 16:39, Ben Beuchler wrote:
> I'm looking for a way to figure out which accounts have not been
> logged in
> to in over n days. It occurs to me that, perhaps, the way to do this
> would be to look at the mtime on one of the dovecot-maintained files,
> 'dovecot-uidlist'. Is there a particular file that would be modified
> (almost) every login, whether it be via POP or IMAP?
Probably best would be to check atime of .INBOX/.imap.index file.
dovecot-uidlist isn't necessarily accessed every time. And if nothing
has changed in mailboxes, mtime isn't changed from any file.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20041011/cc5a562a/PGP.pgp
More information about the dovecot