[Dovecot] Shared folder not listing
Hi Timo,
I've got a weird problem on our dovecot. We're trying to setup private shared folder access.
I have 2 users. tom@mailbox.com and system@mailbox.com. I have set the ACL's on all the folders (and subfolders) on system@mailbox.com. However, I'm not getting any of them listed when I check tom@mailbox.com <mailto:tom@mailbox.com's> 's IMAP folders.
Our configuration is below (we're migrating from Courier hence the INBOX.):
In 10-mail.conf:
namespace {
type = private
prefix = INBOX.
separator = .
inbox = yes
list = yes
hidden = yes
}
namespace {
type = shared
separator = .
prefix = INBOX.Shared.%%u
location = maildir:%%h/Maildir:INDEX=~/Maildir/Shared/%%u
subscriptions = no
list = children
}
mail_plugins = acl
protocol imap {
mail_plugins = $mail_plugins imap_acl
}
In 90-acl.conf:
plugin {
#acl = vfile:/etc/dovecot/acls:cache_secs=300
acl = vfile
}
# To let users LIST mailboxes shared by other users, Dovecot needs a
# shared mailbox dictionary. For example:
plugin {
acl_shared_dict = file:/var/vpopmail/domains/%d/shared-mailboxes
}
Have I missed anthing!?!?
Thanks in advance!
Tom
Fair enough. Here is output from doveconf -n
# 2.0.13: /etc/dovecot/dovecot.conf # OS: Linux 2.6.35.6-45.fc14.x86_64 x86_64 Fedora release 14 (Laughlin) auth_debug_passwords = yes auth_verbose = yes auth_verbose_passwords = plain base_dir = /var/run/dovecot/ disable_plaintext_auth = no first_valid_uid = 1 login_greeting = Ready mail_debug = yes mail_location = maildir:~/Maildir mail_plugins = acl 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 mbox_write_locks = fcntl namespace { hidden = yes inbox = yes list = yes location = prefix = INBOX. separator = . type = private } namespace { list = children location = maildir:/var/vpopmail/domains/%d/%%n/Maildir:INDEX=~/Maildir/Shared/%d/%%u prefix = INBOX.Shared.%%u separator = . subscriptions = no type = shared } passdb { driver = vpopmail } plugin { acl = vfile acl_shared_dict = file:/var/vpopmail/domains/%d/shared-mailboxes sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } ssl_cert = </etc/pki/tls/certs/imap.pem ssl_key = </etc/pki/tls/certs/imap.pem userdb { driver = vpopmail } protocol imap { mail_plugins = acl imap_acl ssl = yes ssl_cert = </etc/pki/tls/certs/imap.pem ssl_key = </etc/pki/tls/certs/imap.pem } protocol pop3 { ssl = yes ssl_cert = </etc/pki/tls/certs/pop3.pem ssl_key = </etc/pki/tls/certs/pop3.pem }
I have made some progress. %%d was only returning mailbox not mailbox.com.
Tom
-----Original Message----- From: dovecot-bounces@dovecot.org [mailto:dovecot-bounces@dovecot.org] On Behalf Of Charles Marcus Sent: 15 September 2011 3:23 PM To: dovecot@dovecot.org Subject: Re: [Dovecot] Shared folder not listing
On 2011-09-15 9:40 AM, Tom Clark <tom@elysium.ltd.uk> wrote:
Have I missed anthing!?!?
Only to please not copy/paste from your config files, but post output of doveconf -n.
This ensures that your settings really are what you think they are.
--
Best regards,
Charles
I have managed to sort this out myself. Initially I was missing the ending "." from the prefix. I also noted that %%d wasn't returning the domain correctly (mailbox instead of mailbox.com). I changed to using %d which worked fine (as I'm not sharing folders outside the domain).
I'm not sure if this is a bug and whether it would have been fixed in a later version of Dovecot.
Tom
-----Original Message----- From: dovecot-bounces@dovecot.org [mailto:dovecot-bounces@dovecot.org] On Behalf Of Tom Clark Sent: 15 September 2011 3:40 PM To: 'Dovecot Mailing List' Subject: Re: [Dovecot] Shared folder not listing
Fair enough. Here is output from doveconf -n
# 2.0.13: /etc/dovecot/dovecot.conf # OS: Linux 2.6.35.6-45.fc14.x86_64 x86_64 Fedora release 14 (Laughlin) auth_debug_passwords = yes auth_verbose = yes auth_verbose_passwords = plain base_dir = /var/run/dovecot/ disable_plaintext_auth = no first_valid_uid = 1 login_greeting = Ready mail_debug = yes mail_location = maildir:~/Maildir mail_plugins = acl 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 mbox_write_locks = fcntl namespace { hidden = yes inbox = yes list = yes location = prefix = INBOX. separator = . type = private } namespace { list = children location = maildir:/var/vpopmail/domains/%d/%%n/Maildir:INDEX=~/Maildir/Shared/%d/%%u prefix = INBOX.Shared.%%u separator = . subscriptions = no type = shared } passdb { driver = vpopmail } plugin { acl = vfile acl_shared_dict = file:/var/vpopmail/domains/%d/shared-mailboxes sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } ssl_cert = </etc/pki/tls/certs/imap.pem ssl_key = </etc/pki/tls/certs/imap.pem userdb { driver = vpopmail } protocol imap { mail_plugins = acl imap_acl ssl = yes ssl_cert = </etc/pki/tls/certs/imap.pem ssl_key = </etc/pki/tls/certs/imap.pem } protocol pop3 { ssl = yes ssl_cert = </etc/pki/tls/certs/pop3.pem ssl_key = </etc/pki/tls/certs/pop3.pem }
I have made some progress. %%d was only returning mailbox not mailbox.com.
Tom
-----Original Message----- From: dovecot-bounces@dovecot.org [mailto:dovecot-bounces@dovecot.org] On Behalf Of Charles Marcus Sent: 15 September 2011 3:23 PM To: dovecot@dovecot.org Subject: Re: [Dovecot] Shared folder not listing
On 2011-09-15 9:40 AM, Tom Clark <tom@elysium.ltd.uk> wrote:
Have I missed anthing!?!?
Only to please not copy/paste from your config files, but post output of doveconf -n.
This ensures that your settings really are what you think they are.
--
Best regards,
Charles
On Thu, 2011-09-15 at 16:23 +0100, Tom Clark wrote:
I have managed to sort this out myself. Initially I was missing the ending "." from the prefix.
It usually complains if that's missing, but looks like shared namespaces were a special case. Fixed: http://hg.dovecot.org/dovecot-2.0/rev/ea657df52a85
I also noted that %%d wasn't returning the domain correctly (mailbox instead of mailbox.com). I changed to using %d which worked fine (as I'm not sharing folders outside the domain).
I'm not sure if this is a bug and whether it would have been fixed in a later version of Dovecot.
Where were you using %%d? It's not in any config you posted here. But anyway "." is problematic, because you're also using it as hierarchy separator. I think you're going to run into trouble unless you change the separator.
participants (3)
-
Charles Marcus
-
Timo Sirainen
-
Tom Clark