Author Topic: Shared mailboxes in SOGo webmail  (Read 5261 times)

JoseZG

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Shared mailboxes in SOGo webmail
« on: April 11, 2019, 05:50:48 pm »
I installed zentyal 6.0 clean and created two test users and when I shared the mailboxes the other user don't see it, the same in zentyal 5.0   :'(
Thanks and sorry for my english

segelfreak

  • Zen Monk
  • **
  • Posts: 80
  • Karma: +9/-0
    • View Profile
Re: Shared mailboxes in SOGo webmail
« Reply #1 on: May 10, 2019, 07:58:39 pm »
It's already some time ago, when I managed to get this activated. So, I'm trying to remember all steps I had to take to make it working. (Please excuse me if there's not everything 100% correct!)

There's a few steps you want to check:

1. Sieve should be installed, it's needed for a couple of "comfort" features.

2. /etc/sogo/sogo.conf, i.e. /usr/share/zentyal/stubs/mail/sogo.conf.mas:

Code: [Select]
// Allow user to add other IMAP accounts that will be visible from the SOGo
    // Webmail interface.
    // Default is NO.
    SOGoMailAuxiliaryUserAccountsEnabled = YES;
    //Allow Sharing of Calendars and Addresbooks
    SOGoCalendarDAVAccessEnabled = YES;
    SOGoAddressBookDAVAccessEnabled = YES;
    //SOGoEnablePublicAccess = YES;
    //Define the correct Default Roles for Calendar
    SOGoCalendarDefaultRoles = (
      PublicDAndTViewer,
      ConfidentialDAndTViewer
    );


3. Dovecot!!! - You need to enable Dovecot to support shared mailboxes. The keyword here is Namespace and ACL! (/etc/dovecot/dovecot.conf, i.e. /usr/share/zentyal/stubs/mail/dovecot.conf.mas)

Quote
mail_plugins = quota mailbox_alias acl

#
## Mailbox locations and namespaces
##

mail_uid=<% $uid %>
mail_gid=<% $gid %>

namespace inbox {

    inbox=yes
    separator = /

    mailbox Trash {
        auto = subscribe
        special_use = \Trash
    }

    mailbox Drafts {
        auto = subscribe
        special_use = \Drafts
    }

    mailbox Sent {
        auto = subscribe
        special_use = \Sent
    }

    mailbox "Sent Messages" {
        auto = no
        special_use = \Sent
    }

    mailbox Spam {
        auto = create
        special_use = \Junk
    }

    subscriptions = yes
}

namespace {
    type = shared
    separator = /
    prefix = Shared/%%u/

    location = maildir:%%Lh/Maildir/:INDEX=%%Lh/Maildir/Shared/%%u
    inbox = no
    hidden = no
    list = children
    subscriptions = yes
    ignore_on_failure = no
}


service dict {
  unix_listener dict {
    mode = 0660
    user = ebox
    group = ebox
  }
}


##
## Plugin settings
##
plugin {
  quota = maildir:User quota
  quota_rule = *:storage=0

acl = vfile
##acl_shared_dict = proxy::acl
acl_defaults_from_inbox = yes
acl_shared_dict = file:/var/vmail/%d/shared-mailboxes.db

  sieve = <% $mailboxesDir %>/%Ld/%Ln/sieve-script
  sieve_global_path = <% $mailboxesDir %>/default.sieve
  sieve_storage = <% $mailboxesDir %>/%Ld/%Ln
  sieve_dir     = <% $mailboxesDir %>/%Ld/%Ln
}


protocol imap {
  mail_plugins = $mail_plugins quota imap_quota imap_acl acl
  mail_max_userip_connections = 20
imap_client_workarounds = tb-extra-mailbox-sep
}


You may want to look here: https://wiki2.dovecot.org/SharedMailboxes/Shared to get some better understanding.

Let me know if it works!  :)


Updated 1st December 2019!
« Last Edit: December 02, 2019, 09:58:39 am by segelfreak »
Zentyal 6.1

doncamilo

  • Zen Samurai
  • ****
  • Posts: 478
  • Karma: +165/-1
    • View Profile
Re: Shared mailboxes in SOGo webmail
« Reply #2 on: May 24, 2019, 11:55:14 pm »
Dovecot and SOGo have some awesome configuring tools that enables us to set our configuration without hardcoding parameters:

https://wiki2.dovecot.org/Tools/Doveadm
And also:
Code: [Select]
sogo-tool
2019-05-24 23:30:55.964 sogo-tool[17644:17644] sogo-tool [-v|--verbose] [-h|--help] command [argument1] ...
  -v, --verbose enable verbose mode
  -h, --help display this help information

  argument1, ... arguments passed to the specified command

  Available commands:
backup              -- backup user folders
checkup             -- checkup integrity of user(s) data)
cleanup             -- cleanup deleted elements of user(s)
create-folder       -- create folders for a user
dump-defaults       -- prints the sogod GNUstep domain configuration as a property list
expire-sessions     -- expires user sessions without activity for specified number of minutes
manage-acl          -- manage user's ACL
manage-eas          -- manage EAS folders
remove              -- remove user data and settings from the db
remove-doubles      -- remove duplicate contacts from the specified user addressbook
rename-user         -- update records pertaining to a user after a change of user id
restore             -- restore user folders
truncate-calendar   -- remove old calendar entries from the specified user calendar
update-autoreply    -- enable or disable auto reply for reached start/end dates
user-preferences    -- set user defaults / settings in the database
- Do my pigeons bother you passing over your land?
- They block the sun!

G. Guareschi., Don Camillo.,

JoseZG

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Shared mailboxes in SOGo webmail
« Reply #3 on: June 11, 2019, 01:41:43 pm »
Hello, I've done I have done what segelfreak but dont work correctly
I attach some images
https://ibb.co/J5M5KNQ
https://ibb.co/gJbLdpM
I can't click in the folder called "Otros Usuarios"

segelfreak

  • Zen Monk
  • **
  • Posts: 80
  • Karma: +9/-0
    • View Profile
Re: Shared mailboxes in SOGo webmail
« Reply #4 on: December 01, 2019, 08:51:42 pm »
Hello, I've done I have done what segelfreak but dont work correctly
I attach some images
https://ibb.co/J5M5KNQ
https://ibb.co/gJbLdpM
I can't click in the folder called "Otros Usuarios"

Hi!

Sorry that I'm replying just now, I haven't seen the notice when you added your post.
I'm not sure if you're still having issues, but I just finished a new fresh installation of 6.1 and came (again) across the sharing topic.
Please have a look at my updated (!) stubs above.
Works for me. (There was a mistake with the act = vfile etc. it belongs in the plugins section. I wasn't clear enough on this. Sorry.
« Last Edit: December 01, 2019, 10:07:19 pm by segelfreak »
Zentyal 6.1