Author Topic: [SOLVED]Can't share folders in SOGo and can't subscribe to folder in Thunderbird  (Read 8013 times)

googley

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +2/-0
    • View Profile
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
Code: [Select]
protocol imap {
  mail_plugins = <% "@imapPlugins" %>
  mail_max_userip_connections = 20
}

Modified : /etc/zentyal/stubs/mail/dovecot.conf.mas
Code: [Select]
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.
« Last Edit: January 08, 2015, 11:00:52 am by googley »

googley

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +2/-0
    • View Profile
Re: Can't share folders in SOGo and can't subscribe to folder in Thunderbird
« Reply #1 on: January 08, 2015, 11:00:34 am »
Solved:

Diff between original config and my new config :
Code: [Select]
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:
Code: [Select]
--- /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>
« Last Edit: January 08, 2015, 11:03:48 am by googley »