Dovecot "Mailbox sharing between users".

Jobst Schmalenbach jobst at
Tue Mar 7 04:17:15 UTC 2023


I have appended the important bits of my server configuration to the end 
of this email
I am trying to get "Mailbox sharing between users" to work.

For starters it is very hard to follow the doc only
without an actual example. I tried to use this (sorry in German)
and this got me a little further down the track.

I followed the instructions required for the dovecot config files.
Restarted dovecot, not errors displayed in the logs.

I have got access to two user accounts, say USER1 and USER2.
I executed this lines

doveadm acl set -u USER1 INBOX user=USER2 admin create delete expunge insert lookup post read write write-deleted write-seen
doveadm acl set -u USER2 INBOX user=USER1 admin create delete expunge insert lookup post read write write-deleted write-seen

and created (just to be sure) two folders for each user


The  tried to create a mailboxes like so


They are not created and no error is displayed - even looking at the 
dovecot logs.
What I see in the folders for BOTH users though (for every folder)


On the command line I can see the .imap files and do a 'ls -alR' in the 
folders, but no created mbox.

I can definitely see the folders, but I cannot create a mbox file.

What am I doing wrong?
Help please.

Here are the important configuration items

# 2.3.16 (7e2e900c1a): /etc/dovecot/dovecot.conf
# OS: Linux 4.18.0-425.13.1.el8_7.x86_64 x86_64 AlmaLinux release 8.7 
(Stone Smilodon) xfs
namespace shared {
   list = children
   location = maildir:~/Mail/:INDEX=~/Mail/shared/%%u:CONTROL=~/Mail/shared/
   prefix = shared/%%u/
   separator = /
   subscriptions = yes
   type = shared
mail_location = mbox:/home/%u/Mail/:INBOX=/var/mail/%u
mail_plugins = acl
passdb {
   driver = pam
plugin {
   acl = vfile
   acl_shared_dict = file:/var/lib/dovecot/db/shared-mailboxes.db
service auth {
   unix_listener auth-userdb {
     group = dovecot
     mode = 0777
     user = dovecot
protocol imap {
   mail_plugins = " acl imap_acl"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the dovecot mailing list