cyr_expire bug with misconfigured metapartition

Andrew Morgan morgan at orst.edu
Fri Feb 26 18:49:12 EST 2010


On Fri, 26 Feb 2010, Andrew Morgan wrote:

> I have been bringing up some new Cyrus backends in my Murder cluster
> lately, and I stumbled across a bug of sorts in cyr_expire.  I had a
> slightly wrong imapd.conf with respect to metapartitions, which said:
>
>   defaultpartition: p1
>   partition-p1: /var/spool/cyrus/mail/data1
>   metap1: /var/spool/cyrus/mail/meta1
>   partition-p2: /var/spool/cyrus/mail/data2
>   metap2: /var/spool/cyrus/mail/meta2
>   metapartition_files: index cache expunge squat
>
> Obviously, the correct config should have been:
>
>   defaultpartition: p1
>   partition-p1: /var/spool/cyrus/mail/data1
>   metapartition-p1: /var/spool/cyrus/mail/meta1
>   partition-p2: /var/spool/cyrus/mail/data2
>   metapartition-p2: /var/spool/cyrus/mail/meta2
>   metapartition_files: index cache expunge squat
>
> The only reason I discovered this was wrong was that my cyr_expire command
> refused to expire expunged messages and mailboxes, and didn't honor
> "expire" annotations.  I'm running delayed expunge and delayed delete.
>
> Once I fixed the config, cyr_expire began behaving normally again.

Another quirk I forgot it mention is that users could see their DELETED 
folders in the Other Users.DELETED hierarchy, which led to some fun when 
one of them tried to delete the deleted folder a few times.  :)

 	Andy


More information about the Info-cyrus mailing list