Univention Bugzilla – Bug 49921
Allow dbox as Mailbox Format for Dovecot
Last modified: 2022-08-10 10:02:49 CEST
"sdbox" and "mdbox" (see [1]) are the recommend mailbox formats for larger Dovecot instances. There are multiple benefits compared to the currently used "maildir" like less I/O utilization and much shorter backup times. At this time we have "maildir:..." hard coded in the 10-mail.conf-template. While it is still adviseable to leave "maildir" as the default it would be nice to have the ability to use mdbox. 1: https://wiki2.dovecot.org/MailboxFormat/dbox
Added ucr variable "mailbox_format". This should take one of the strings "mdbox", "sdbox" or "Maildir". The used mailbox format will be determined with this variable. The mail location will be defined correspondingly in 10-mail.conf. After the variable is changed, the dovecot service must get restarted with "invoke-rc.d dovecot restart" Old mails and mailfolders will not be migrated into the new format when only setting the mailbox_format. For this dsync should be used. Solution pushed on branch troehmey/49921 with commits commit f9e2ee638b427e6e31798bd97476dc3f8512afb0 Bug #49921: Added ucr variable 'mailbox_format' commit dfbee60ddaf59672dab67f03811e584cea46dd76 Bug #49921: mailbox format used from ucr var waiting for QA
OK: code change (UCR template and description) REOPEN: because we have decided to not publish this in the product. The UCS-Dovecot-integration includes support for shared folders. This includes renaming and moving them. That would have to be implemented for sdbox and mdbox as well. We currently see not enough customer requests to do that, and we do not wish to publish a feature (configurable "mail_home") that will break other features (shared mailbox support). If a customer wishes to use sdbox/mdbox, it is possible to overwrite the "mail_home" configuration variable in /etc/dovecot/local.conf. This Dovecot configuration will then however not be covered by the Univention support. This bug will thus be set to "wontfix".
Created attachment 10361 [details] Commits in troehmey/bug49921 The code from the two commits in troehmey/bug49921 for posterity. @Toni: please delete the branch.
(In reply to Daniel Tröder from comment #3) > Created attachment 10361 [details] > Commits in troehmey/bug49921 > > The code from the two commits in troehmey/bug49921 for posterity. > > @Toni: please delete the branch. @Toni: If still do have the branch please repush it. I will reopen this bug because from strategic perspective we will need to support other backends in the future. So, this bug is not only to support the ucr value but also about support in the listener and maybe other components.