Re: Deleting unused or dormant mail accounts.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 11 Sep 2011, Andres Tarallo wrote:

> Hi !!!
>
> I'm administering a mail server with a few thousand mail accounts. Due
> to the way this organization works we have in this server some
> accounts that aren't checked.
>
> In order to get a list of mailboxes to be removed we're looking the
> date the file username.seen was last modified. Do we have a better
> strategy?
>
> Thanks in advance for your advice. Regards

That's probably a good method for seeing when the user last opened the 
mailbox...  I think the seen file is only updated when a user reads a 
message.

You can also look at the mailbox annotations to see the 'lastupdate' 
annotation timestamp.  I think that is a timestamp for when the 
cyrus.index file was last updated, which should correspond with the last 
message that was delivered.

You can view the mailbox annotations using cyradm with the "info" command, 
like so:

localhost> info user.morgan
{user.morgan}:
   condstore: false
   duplicatedeliver: false
   lastpop:
   lastupdate: 11-Sep-2011 19:26:45 -0700
   partition: p4
   pop3newuidl: true
   sharedseen: false
   size: 43589953


 	Andy
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux