help with cyr_expire please
Per olof Ljungmark
peo at intersonic.se
Sun Jul 27 10:19:30 EDT 2008
Bron Gondwana wrote:
> On Sun, Jul 27, 2008 at 11:18:43AM +0200, Per olof Ljungmark wrote:
>> It seems I do not fully understand how cyr_expire works. Some background:
>>
>> I've set up a testing server with 2.3.12-p2 with delayed expunge and
>> delayed delete. In cyrus.conf:
>> delpruneandexpunge cmd="cyr_expire -D 7 -E 3 -X 7" at=0400
>>
>> and it all worked as expected.
>>
>> Now I'm ready to implement this on our production (2.3.12-p2) machine,
>> added the proper statements to imapd.conf
>> expunge_mode: delayed
>> delete_mode: delayed
>> deletedprefix: DELETED
>>
>> Then i tested the following command:
>> su cyrus -c "/usr/local/cyrus/bin/cyr_expire -D 5 -E 5 -X 5 -p
>> user.spamdump -v"
>>
>> and to my horror it did not only delete expunged messages but a fair
>> share of messages without any flags set:
>> expunged 677607 out of 682456 messages from 30 mailboxes
>
> Did you check if any "live" messages were actually deleted, or was it
> just expunged messages cleaned up? I can imagine that being the case
> for a spamdump user that you clean up frequently.
Yes, almost all of them were "live", no delete or even seen flag set. Of
course we have backups both tape and offline disks but it got kinda
tedious with that number of messages :-)
cyradm info:
{user/spamdump}:
condstore: false
duplicatedeliver: false
lastpop:
lastupdate: 27-Jul-2008 09:58:55 +0200
partition: default
sharedseen: false
size: 0 (there are no msg's at root level, only folders)
I ran the same command on another mailbox and it behaved as I had
expected, i.e. deleted messages that had sufficient days since expunge.
{user/postmaster}:
condstore: false
duplicatedeliver: false
lastpop:
lastupdate: 27-Jul-2008 10:42:08 +0200
partition: default
sharedseen: false
size: 2022710
Tried again just now with yet another account and it behaved again fine.
To sum it up, three accounts had emails removed physically that I think
should not have, the first (spamdump) as it seemed randomly, the second
and third up till -E days. Two other accounts faired just fine.
confusion.
--per (heading back to restore camp just now)
More information about the Info-cyrus
mailing list