We are trying to move our mail store from a host running cyrus-imapd 2.2.12 under CentOS-4 to one running 2.3.16 under CentOS-6. The current host is a 32 bit architecture. The new host is 64 bit. We have followed the update guide found at: http://www.cyrusimap.org/docs/cyrus-imapd/2.3.16/install-upgrade.php The steps we followed were: 1. Install cyrus-imapd et al on the new host. 2. Modify /etc/cyrus.conf and /etc/imapd.conf to suit our requirements. 3. On the old host dump the mailbox.db in flat format using /var/lib/cyrus-imapd/ctl_mboxlist -d > mboxlist.txt 4. Copy the mboxlist.txt file and the mail spool from the old to the new system 5. Run SELinux restorecon -fr on /var/spool/imap to set the correct contexts and ownership. 6. Load mailbox.db from mboxlist.txt using cat mboxlist.txt | /usr/lib/cyrus-imapd/ctl_mboxlist -u 7. Run /usr/lib/imapd-cyrus/reconstruct -rfg user 8. Run /usr/lib/imapd-cyrus/reconstruct -G user 9. Run /usr/lib/imapd-cyrus/quota -f 10. Start saslauthd and cyrus-imapd services. All the transferred mailboxes are seen and the imapd configuration data seems correct. The problem is that the quotas reported for each mailbox tree do not seem to aggregate under 2.3 as they did on 2.2. So, for example a user with an overall allocation of 500Mb reporting 70% utilization for the INBOX on the 2.2.13 version reports 3% on the 2.3.16 server even though the contents of the mailbox trees are identical. It seems that the new version calculates quota only for the INBOX itself, and not for all of the sub-directory contents. Is this a change in behaviour for 2.3 vice 2.2 or do I have a problem? Has anyone run into this and if so, how was it resolved? -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3
From: James B. Byrne <byrnejb at harte-lyne.ca>>Is this a change in behaviour for 2.3 vice 2.2 or do I have a problem? >Has anyone run into this and if so, how was it resolved?Maybe search 'quota' in the changelog... http://cyrusimap.web.cmu.edu/docs/cyrus-imapd/2.4.0/changes.php Changes to the Cyrus IMAP Server since 2.3.14 ??? Fixed incorrect quota calculations on sync_server when replicating unexpunged messages (thanks David Carter) Changes to the Cyrus IMAP Server since 2.3.13 ??? Fixed quota calculation to ignore files not mentioned in the index Changes to the Cyrus IMAP Server since 2.2.x ??? Support 64-bit quota usage (both per mailbox and for the entire quotaroot), based on a patch from Jeremy Rumpf. Development sponsored by FastMail. Changes to the Cyrus IMAP Server since 2.2.13 JD
On Fri, May 11, 2012 12:10, John Doe wrote:> From: James B. Byrne <byrnejb at harte-lyne.ca> > >>Is this a change in behaviour for 2.3 vice 2.2 or do I have a >> problem? >>Has anyone run into this and if so, how was it resolved? > > Maybe search 'quota' in the changelog... > http://cyrusimap.web.cmu.edu/docs/cyrus-imapd/2.4.0/changes.php > > Changes to the Cyrus IMAP Server since 2.3.14 > ??? Fixed incorrect quota calculations on sync_server when replicating > unexpunged messages (thanks David Carter) > Changes to the Cyrus IMAP Server since 2.3.13 > ??? Fixed quota calculation to ignore files not mentioned in the index > Changes to the Cyrus IMAP Server since 2.2.x > ??? Support 64-bit quota usage (both per mailbox and for the entire > quotaroot), based on a patch from Jeremy Rumpf. Development sponsored > by FastMail. > Changes to the Cyrus IMAP Server since 2.2.13 > >I read those changes but I cannot discern from that whether or not the way quotas are reported has changed. In 2.2 the quota and usage figures reported aggregate all of the subfolders. In my 2.316 install the quota amount is reported correctly, but the usage is not aggregated at the higher levels. What I am seeing is the overall mailbox quota being reported for INBOX and all lower folders but only the contents of INBOX is being used to calculate the usage. 2.2.13 report Quota % Used Used Root 512000 65 333350 user.byrnejb 409600 0 63 user.byrnejb.Drafts 2.3.16 report Quota % Used Used Root 512000 3 17816 user.byrnejb 409600 0 63 user.byrnejb.Drafts -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3