Hi,

the mailbox quota is used to restrict the user's mailbox size. This type of archiving you used does not alter the user's mailbox size in any way. All messages remain in the same mailbox (from the IMAP point of view), even though physically they reside in different paths/filesystems. If you wanted to actually reduce the mailbox size, messages should actually be moved out of the mailbox that has the quota.

Note that if you specify a root quota for the user, no matter in which IMAP folder the messages are moved, they would still count and the usage will still be the same. In that case the archived messages should actually be removed from the mail server in oder to matter for the quota.

Now to understand the purpose of the archive partitions, you should read the related documentation (https://www.cyrusimap.org/imap/reference/admin/locations.html#archive-partitions and https://www.cyrusimap.org/imap/concepts/features/mail-spool-partitions.html#restricting-storage-used-with-partitions). It only has to do with *disk space* management. For example, if you have an expensive 1 TB SSD disk as your main storage, and an additional 4TB of non SSD storage, this is the perfect scenario to use this archiving feature. Old messages are moved from the limited space in the fast SSD disk to the other disk where you have plenty, cheaper space. Access to these files will be slower, but because they are older messages that are rarely used it won't really matter.

As you understand mailbox quota has nothing to do with the above scenario. Messages moved between partitions is practically seamless to the user. He still sees all his messages in the same mailbox. That's also why the usage doesn't change...

Regards,

Savvas Karagiannidis

On 30/4/2025 09:01, Chittaranjan via Info wrote:
Dear Bron,
Thanks for respond.

My problem is that when I archived the oldest mails to different partition using cyr_expire (/usr/lib/cyrus/bin/cyr_expire -A 7d)   it is working and oldest mails are moving to secondary partition.

But  after move of all older emails to secondary(slow) partition, primary(fast) mailbox quota are not reducing.

Is it the write process i have configured below or any other process need to follow? please guide....

defaultpartition: main
partition-main: /var/spool/cyrus/fast
archive_enabled: yes
archivepartition-main: /var/spool/cyrusarchive/slow
*Cyrus <https://urldefense.proofpoint.com/v2/url?u=https-3A__cyrus.topicbox.com_latest&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=74Kd5fBz8ErOp6uDEwhS_weTPH6IXkpwOCBPDswebZc&m=q09mmsNdEwyjXqLCHHHj2dqFG-QxEKK3iuY6R5QivTX4GCWT48iPu3TKqrMSUxhr&s=HNnj_6KYHTzSrb3aNqqQY-KOyjZQOC2aTm7hrDEc1Zw&e=>* / Info / see discussions <https://urldefense.proofpoint.com/v2/url?u=https-3A__cyrus.topicbox.com_groups_info&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=74Kd5fBz8ErOp6uDEwhS_weTPH6IXkpwOCBPDswebZc&m=q09mmsNdEwyjXqLCHHHj2dqFG-QxEKK3iuY6R5QivTX4GCWT48iPu3TKqrMSUxhr&s=5-Mr8BWgKxGslvnRAooSkAAxad0eHe1Z8NNDh4JnPq0&e=> + participants <https://urldefense.proofpoint.com/v2/url?u=https-3A__cyrus.topicbox.com_groups_info_members&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=74Kd5fBz8ErOp6uDEwhS_weTPH6IXkpwOCBPDswebZc&m=q09mmsNdEwyjXqLCHHHj2dqFG-QxEKK3iuY6R5QivTX4GCWT48iPu3TKqrMSUxhr&s=o80MWmNiXwhluwGRzhDU8UKiNAYaSBFlzUFxeosrbps&e=> + delivery options <https://urldefense.proofpoint.com/v2/url?u=https-3A__cyrus.topicbox.com_groups_info_subscription&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=74Kd5fBz8ErOp6uDEwhS_weTPH6IXkpwOCBPDswebZc&m=q09mmsNdEwyjXqLCHHHj2dqFG-QxEKK3iuY6R5QivTX4GCWT48iPu3TKqrMSUxhr&s=M7C4Ofxp5yxxmskCNwA52JRtiw1hKppZgTMH95EObgM&e=> Permalink <https://urldefense.proofpoint.com/v2/url?u=https-3A__cyrus.topicbox.com_groups_info_T03665e10e09d6fa7-2DM093214bcf0ee64dffa65fe42&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=74Kd5fBz8ErOp6uDEwhS_weTPH6IXkpwOCBPDswebZc&m=q09mmsNdEwyjXqLCHHHj2dqFG-QxEKK3iuY6R5QivTX4GCWT48iPu3TKqrMSUxhr&s=m_KqKOym01MCNUYSQAH81WlGQfDsVFUuqSyHBZM6gHo&e=>
------------------------------------------
Cyrus: Info
Permalink: 
https://cyrus.topicbox.com/groups/info/T03665e10e09d6fa7-Mdbc3e9a9197949622cf4f903
Delivery options: https://cyrus.topicbox.com/groups/info/subscription

Reply via email to