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:> namespace: > type: shared > separator: / > prefix: Shared/%%u/ > location: maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u > list: yes > subscriptions: yesLooks ok.> auth default: > passdb: > driver: pam > userdb: > driver: passwdSo you're using system users. Do the users have +rx permissions to other users' maildirs?> plugin: > quota: maildir:User quota > quota_rule: *:storage=1048576 > quota_rule2: Trash:storage=102400 > acl_shared_dict: file:/var/lib/dovecot/shared/mailboxesDo 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. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20081213/bf4c8230/attachment-0002.bin>
Timo Sirainen wrote:> On Wed, 2008-12-10 at 12:56 +0100, Diederick van Dijk wrote: > >> namespace: >> type: shared >> separator: / >> prefix: Shared/%%u/ >> location: maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u >> list: yes >> subscriptions: yes >> > > Looks ok. > > >> auth default: >> passdb: >> driver: pam >> userdb: >> driver: passwd >> > > So you're using system users. Do the users have +rx permissions to other > users' maildirs? > >Not yetm but easyly corrected of course.>> plugin: >> quota: maildir:User quota >> quota_rule: *:storage=1048576 >> quota_rule2: Trash:storage=102400 >> acl_shared_dict: file:/var/lib/dovecot/shared/mailboxes >> > > Do all users have +rwx permissions to /var/lib/dovecot/shared? >Yes> >> 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? > >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.>> 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. >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.