Author Topic: Shared mailboxes in SOGo webmail  (Read 508 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: 70
  • Karma: +4/-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:

 // Allow user to add other IMAP accounts that will be visible from the SOGo
    // Webmail interface.
    // Default is NO.
    SOGoMailAuxiliaryUserAccountsEnabled = YES;

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)

namespace {
    type = shared
    separator = /
    prefix = Shared/%%u/
    location = maildir:%%Lh/Maildir/:INDEX=%%Lh/Maildir/Shared/%%u
    # this namespace should handle its own subscriptions or not.
    subscriptions = no
    list = children
}


# ACL and share folder
    acl = vfile
    acl_shared_dict = proxy::acl
    acl_defaults_from_inbox = yes



protocol imap {
    mail_plugins = $mail_plugins imap_quota imap_acl
    imap_client_workarounds = tb-extra-mailbox-sep

    # Maximum number of IMAP connections allowed for a user from each IP address.
    # NOTE: The username is compared case-sensitively.
    # Default is 10.
    # Increase it to avoid issue like below:
    # "Maximum number of concurrent IMAP connections exceeded"
    mail_max_userip_connections = 30
}



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

Let me know if it works!  :)
« Last Edit: May 10, 2019, 08:19:18 pm by segelfreak »

doncamilo

  • Zen Warrior
  • ***
  • Posts: 130
  • Karma: +22/-0
    • 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

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"