Author Topic: Sharing Mailboxes  (Read 2269 times)

psit

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Sharing Mailboxes
« on: March 26, 2019, 04:04:48 pm »
Using Zentyal 6.0 Community Edition, I'd like to share mailboxes/folders between users.

I followed this thread to enable ACLs in dovecot and it works via SOGo:
https://forum.zentyal.org/index.php?topic=24245.0
(I edited /usr/share/zentyal/stubs/mail/dovecot.conf.mas)
I can allow users to access a folder/mailbox and that user can subscribe to my folder (after poking SOGo to show folder subscriptions).

Now I'm used to manage ACLs via doveadm command, but the acl plugin seems to be deactivated:
Code: [Select]
~# doveadm acl
Fatal: Unknown command 'acl', but plugin acl exists. Try to set mail_plugins=acl

How can I activate the acl plugin for doveadm?
Or is there another way to administrate mailbox ACLs?

Kind regards,
Peter

Code: [Select]
~# doveconf -n
# 2.2.33.2 (d6601f4ec): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.21 (92477967)
# OS: Linux 4.15.0-45-generic x86_64 Ubuntu 18.04.2 LTS ext4
auth_gssapi_hostname = ***
auth_krb5_keytab = /etc/dovecot/dovecot.keytab
auth_mechanisms = gssapi plain
first_valid_gid = 113
first_valid_uid = 108
listen = *
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_gid = ebox
mail_home = /var/vmail/%d/%u
mail_location = maildir:/var/vmail/%d/%u/Maildir
mail_uid = ebox
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext
namespace {
  list = children
  location = maildir:%%h/Maildir:INDEX=~/Maildir/Shares/%%u
  prefix = Shares/%%u/
  separator = /
  subscriptions = yes
  type = shared
}
namespace inbox {
  inbox = yes
  location =
  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
  }
  mailbox Trash {
    auto = subscribe
    special_use = \Trash
  }
  prefix =
  separator = /
  subscriptions = yes
}
passdb {
  args = /etc/dovecot/dovecot-ldap.conf
  driver = ldap
}
plugin {
  acl = vfile
  acl_shared_dict = file:/var/vmail/%d/shared-mailboxes.db
  quota = maildir:User quota
  quota_rule = *:storage=0
  sieve = /var/vmail/%Ld/%Ln/sieve-script
  sieve_dir = /var/vmail/%Ld/%Ln
  sieve_global_path = /var/vmail/default.sieve
  sieve_storage = /var/vmail/%Ld/%Ln
}
protocols = imap sieve
service auth {
  executable = /usr/lib/dovecot/auth
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  unix_listener auth-master {
    group = ebox
    mode = 0600
    user = ebox
  }
}
service imap-login {
  inet_listener imap {
    address = 127.0.0.1
    port = 0
  }
  inet_listener imaps {
    address = *
    port = 993
  }
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0666
    user = postfix
  }
}
service managesieve-login {
  inet_listener sieve {
    port = 4190
  }
}
ssl_cert = </etc/dovecot/private/dovecot.pem
ssl_key =  # hidden, use -P to show it
userdb {
  args = /etc/dovecot/dovecot-ldap.conf
  default_fields = uid=108 gid=113
  driver = ldap
}
protocol imap {
  mail_max_userip_connections = 20
  mail_plugins = quota imap_quota acl imap_acl
}
protocol lda {
  auth_socket_path = /var/run/dovecot/auth-master
  mail_plugins = sieve quota
  postmaster_address = ****
}
« Last Edit: March 26, 2019, 04:11:43 pm by psit »