[Dovecot] dovecot 1.2 Alpha4 shared folders
Hi,
I'm trying to setup shared folders with alpha4 but didn't succeed until now. Here is my dovecot -n :
1.2.alpha4:
/etc/dovecot.conf
OS: Linux 2.6.26.5 i686 Mandriva Linux
2009.0
base_dir: /var/run/dovecot/
protocols: imap imaps pop3 pop3s managesieve lda
listen(default): *
listen(imap): *
listen(pop3): *
listen(managesieve): *:2000
ssl_cert_file: /etc/ssl/imap/ipop3sd.pem
ssl_key_file: /etc/ssl/imap/ipop3sd.pem
login_dir: /var/run/dovecot//login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
login_executable(managesieve): /usr/lib/dovecot/managesieve-login
mail_location: maildir:~/Maildir mail_debug: yes mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_executable(managesieve): /usr/lib/dovecot/managesieve mail_plugins(default): quota imap_quota acl mail_plugins(imap): quota imap_quota acl mail_plugins(pop3): mail_plugins(managesieve): mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve namespace: type: private separator: / inbox: yes list: yes subscriptions: yes namespace: type: shared separator: / prefix: Shared/%%u/ location: maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u list: yes subscriptions: yes auth default: passdb: driver: pam userdb: driver: passwd plugin: quota: maildir:User quota quota_rule: *:storage=1048576 quota_rule2: Trash:storage=102400 acl_shared_dict: file:/var/lib/dovecot/shared/mailboxes acl: vfile:/home/%%d/Maildir sieve: ~/.dovecot.sieve sieve_storage: ~/sieve
A list doesn't display any folder in Shared. What should I put into /var/lib/dovecot/shared/mailboxes ? Is the acl: vfile:/home/%%d/Maildir ? Should I put some file(s) is the users Maildir directory ?
Thanks,
Diederick
On Wed, 2008-12-10 at 12:56 +0100, Diederick van Dijk wrote:
Looks ok.
So you're using system users. Do the users have +rx permissions to other users' maildirs?
Do all users have +rwx permissions to /var/lib/dovecot/shared?
acl: vfile:/home/%%d/Maildir
%%d doesn't work here. If you're not going to use global ACLs, you can just set "acl = vfile".
A list doesn't display any folder in Shared.
It doesn't show anything until there are shared mailboxes. Are there any?
What should I put into /var/lib/dovecot/shared/mailboxes ?
You shouldn't touch it. SETACL command updates it.
Should I put some file(s) is the users Maildir directory ?
I'm not sure how well the shared mailbox support works with system users, or how well it will ever work. You're going to have permission problems. You could create dovecot-shared files with proper permissions, but that file isn't automatically created by SETACL command and I'm not really sure if it even should.
Timo Sirainen wrote:
Not yetm but easyly corrected of course.
Yes
How do I setup these, symlinks ? Or is it in the acl ?
What should I put into /var/lib/dovecot/shared/mailboxes ?
You shouldn't touch it. SETACL command updates it.
OK.
This means that you only tested it with a virtual user setup ? If so, I can switch over to this setup although it is a lot overkill for only 5 users.
On Sat, 2008-12-13 at 15:17 +0100, Diederick van Dijk wrote:
What do you need shared mailboxes for? Perhaps you don't really need user-shared mailboxes, but rather public mailboxes that are much easier to support with system users? http://wiki.dovecot.org/SharedMailboxes
The user-shared mailboxes are meant to be shared by using IMAP SETACL command. For example:
1 SETACL mailbox username +lr
Yes, because getting it to work with system users isn't that simple because of all the extra problems related to filesystem permissions.
participants (2)
-
Diederick van Dijk
-
Timo Sirainen