[Dovecot] shared mailboxes

Vasil Mikhalenya bazilek at gmail.com
Wed Aug 3 01:33:06 EEST 2011


Hi all,

I've read all documentation that I could find, but I can not
understand 2 simple things

1. How to create a public mailbox - with per user seen flag. In my
configuration this flag is shared
2. How to share one user mailbox with other users and set up acl. In
Cyrus it was very easy( cyradm sam mailbox user1 lrs or  sam mailbox
user2 all ). What way there is to do this in dovecot.

It was no problem with shared mailboxes in cyrus, but I need maildir support.


Thank you.

# 2.0.13: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.2 ext3
auth_mechanisms = plain login
auth_verbose = yes
auth_verbose_passwords = plain
first_valid_uid = 8
last_valid_uid = 8
mail_debug = yes
mail_location = mdbox:/var/mail/%1n/%n
mail_plugins = acl
mail_privileged_group = mail
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
mdbox_preallocate_space = yes
namespace {
  hidden = no
  inbox = yes
  list = yes
  location =
  prefix =
  separator = /
  type = private
}
namespace {
  list = children
  location = mdbox:/var/mail/%%1n/%%n
  prefix = shared/%%u/
  separator = /
  subscriptions = no
  type = shared
}
namespace {
  location = maildir:/var/mail/public
  prefix = public/
  separator = /
  subscriptions = no
  type = public
}
passdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
passdb {
  driver = pam
}
plugin {
  acl = vfile
  acl_shared_dict = file:/var/lib/dovecot/shared-mailboxes
  mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
  mail_log_fields = uid box msgid size
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
protocols = " imap sieve pop3"
service auth {
  unix_listener auth-client {
    group = mail
    mode = 0660
    user = Debian-exim
  }
  unix_listener auth-userdb {
    group = mail
    mode = 0600
    user = mail
  }
  user = $default_internal_user
}
service imap-login {
  process_min_avail = 6
  service_count = 0
}
ssl_ca = </etc/ssl/private/CA.crt
ssl_cert = </etc/ssl/private/w.crt
ssl_key = </etc/ssl/private/w.key
syslog_facility = local0
userdb {
  args = uid=mail gid=mail home=/var/mail/%1n/%n allow_all_users=yes
  driver = static
}
userdb {
  args = uid=mail gid=mail home=/var/mail/%1n/%n dovecot
  driver = passwd
}
protocol lda {
  mail_plugins = acl sieve
}
protocol imap {
  mail_plugins = acl acl imap_acl
}



-- 
Best regards,
Vasil Mikhalenya


More information about the dovecot mailing list