Zentyal Forum, Linux Small Business Server
Zentyal Server => Installation and Upgrades => Topic started by: googley on January 06, 2015, 06:49:45 pm
-
Hi everyone,
I try to share a mailbox folder by adding a user and set ACLs but when i reopen the "Sharring" window, my user disappear.
I saw that there was an acl problem.
So, i've modified dovecot.conf.mas like that:
Original : /usr/share/zentyal/stubs/mail/dovecot.conf.mas
protocol imap {
mail_plugins = <% "@imapPlugins" %>
mail_max_userip_connections = 20
}
Modified : /etc/zentyal/stubs/mail/dovecot.conf.mas
protocol imap {
mail_plugins = <% "@imapPlugins" %> acl imap_acl
mail_max_userip_connections = 20
}
plugin {
acl = vfile
}
Now it works in SOGo interface, i can add users and ACLs !
BUT, i want to subscribe to my shared folder in Thunderbird but i can't see it :(
Is anyone have the same problem and is there a Dovecot configuration problem or a SOGo problem ?
Thanks in advance.
Regards.
-
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>