Solved:
Diff between original config and my new config :
126a127
> separator = /
151a153,163
>
> subscriptions = yes
> }
>
> namespace shared {
> type = shared
> separator = /
> prefix = Shares/%%u/
> location = maildir:%%h/Maildir:INDEX=~/Maildir/Shares/%%u
> subscriptions = yes
> list = children
219c231
< mail_plugins = <% $ldaPlugins %>
---
> mail_plugins = <% $ldaPlugins %> acl
286c298
< mail_plugins = <% "@imapPlugins" %>
---
> mail_plugins = <% "@imapPlugins" %> acl imap_acl
288a301,309
>
> plugin {
> acl = vfile
> }
>
> plugin {
> acl_shared_dict = file:/var/vmail/%d/shared-mailboxes.db
> }
And here, the patch file:
--- /usr/share/zentyal/stubs/mail/dovecot.conf.mas 2014-12-16 20:30:56.000000000 +0100
+++ /etc/zentyal/stubs/mail/dovecot.conf.mas 2015-01-07 18:28:56.452095000 +0100
@@ -124,6 +124,7 @@
namespace inbox {
inbox=yes
+ separator = /
mailbox Trash {
auto = subscribe
@@ -149,6 +150,17 @@
auto = create
special_use = \Junk
}
+
+ subscriptions = yes
+}
+
+namespace shared {
+ type = shared
+ separator = /
+ prefix = Shares/%%u/
+ location = maildir:%%h/Maildir:INDEX=~/Maildir/Shares/%%u
+ subscriptions = yes
+ list = children
}
##
@@ -216,7 +228,7 @@
% if ($openchangePlugin->{enabled}) {
% $ldaPlugins = "notify openchange " . $ldaPlugins;
% }
- mail_plugins = <% $ldaPlugins %>
+ mail_plugins = <% $ldaPlugins %> acl
}
##
@@ -283,9 +295,18 @@
}
protocol imap {
- mail_plugins = <% "@imapPlugins" %>
+ mail_plugins = <% "@imapPlugins" %> acl imap_acl
mail_max_userip_connections = 20
}
+
+plugin {
+ acl = vfile
+}
+
+plugin {
+ acl_shared_dict = file:/var/vmail/%d/shared-mailboxes.db
+}
+
</%def>