[Dovecot] Detecting unused accounts

Timo Sirainen 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, 
> like
> 'dovecot-uidlist'.  Is there a particular file that would be modified 
> on
> (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...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://dovecot.org/pipermail/dovecot/attachments/20041011/cc5a562a/attachment-0001.bin>


More information about the dovecot mailing list