Bug 49921 - Allow dbox as Mailbox Format for Dovecot
Allow dbox as Mailbox Format for Dovecot
Status: REOPENED
Product: UCS
Classification: Unclassified
Component: Mail - Dovecot
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: Toni Röhmeyer
Daniel Tröder
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-07-25 12:55 CEST by Dirk Ahrnke
Modified: 2022-08-10 10:02 CEST (History)
4 users (show)

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Large environments
Max CVSS v3 score:


Attachments
Commits in troehmey/bug49921 (2.89 KB, patch)
2020-05-13 09:35 CEST, Daniel Tröder
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Ahrnke univentionstaff 2019-07-25 12:55:20 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
Comment 1 Toni Röhmeyer univentionstaff 2020-04-05 16:09:01 CEST
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
Comment 2 Daniel Tröder univentionstaff 2020-05-13 09:34:07 CEST
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".
Comment 3 Daniel Tröder univentionstaff 2020-05-13 09:35:49 CEST
Created attachment 10361 [details]
Commits in troehmey/bug49921

The code from the two commits in troehmey/bug49921 for posterity.

@Toni: please delete the branch.
Comment 4 Michel Smidt 2020-06-14 21:11:18 CEST
(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.