[Dovecot] shared folders "invisible" on new setup
Dear list,
I hope this is not an old issue, but I couldn't find a solution even after google'ing quite some time.
I try to migrate our institute's mail server (~200 users) from an old cyrus-based Mac installation to a new machine (NetBSD, dovecot 2.0.13). Everything went quite smoothly so far, but we are used to have "shared folders" ("public" folders in dovecot) and I simply couldn't make them to appear.
I have two separate folders for private (user) mails and for public ones (yes, I set everything to 777 for the moment to avoid file access problems) :
mailserver# pwd /var/mail mailserver# ls -al total 8 drwxrwxrwt 4 dovecot wheel 512 May 31 12:26 . drwxr-xr-x 28 root wheel 512 Mar 29 15:05 .. drwxrwxrwx 3 root mail 512 May 31 15:18 public drwxrwxrwx 4 root wheel 512 May 31 12:26 user
In the public folder there is a shared folder named "fb8":
mailserver# pwd /var/mail/public mailserver# ls -al total 8 drwxrwxrwx 3 root mail 512 May 31 15:18 . drwxrwxrwt 4 dovecot wheel 512 May 31 12:26 .. -rw-rw-rw- 1 10001 mail 0 May 31 15:14 dovecot-acl-list -rwxrwxrwx 1 root mail 0 May 31 11:06 dovecot-shared drwxrwxrwx 5 root mail 512 May 31 12:03 fb8
Now my own username (LDAP-based) is "harenber" and I try to subscribe myself to this list:
mailserver# doveadm mailbox subscribe -u harenber public.fb8 mailserver#
So a "subscriptions" file appears:
mailserver# ls -al
total 8
drwxrwxrwx 3 root mail 512 May 31 15:18 .
drwxrwxrwt 4 dovecot wheel 512 May 31 12:26 ..
-rw-rw-rw- 1 10001 mail 0 May 31 15:14 dovecot-acl-list
-rwxrwxrwx 1 root mail 0 May 31 11:06 dovecot-shared
drwxrwxrwx 5 root mail 512 May 31 12:03 fb8
-rw-rw-rw- 1 10001 mail 4 May 31 15:18 subscriptions
mailserver# cat subscriptions
fb8
mailserver#
(although I think this is wrong, as I have
namespace { list = children location = maildir:/var/mail/public:INDEX=~/public prefix = public. separator = . subscriptions = no type = public }
I would assume this file to appear somewhere in /var/mail/user/harenber/public... )
But I cannot access this "fb8" folder with any client. Alpine says that the public folder is empty:
----------------------------------------------------------------------------------------------------------------------------------Folder-Collection <test>
[No Folders in Collection]
and also Apple Mail sees nothing beneath "public".
Tried to speak IMAP directly shows:
01 login harenber XXXXX 01 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS ACL RIGHTS=texk] Logged in 02 namespace
- NAMESPACE (("" ".")) NIL (("public." ".")) 02 OK Namespace completed. 03 list "" *
- LIST (\HasNoChildren) "." "Trash"
- LIST (\HasNoChildren) "." "ALiCEnext"
[...]
- LIST (\HasNoChildren) "." "sent-mail"
- LIST (\HasNoChildren) "." "tier2"
- LIST (\HasNoChildren) "." "trash"
- LIST (\HasNoChildren) "." "INBOX"
- LIST (\Noselect \HasChildren) "." "public" 03 OK List completed
Maybe someone of you has a clue what I do wrong here, I'm completely lost at the moment.
Thanks for any hint and best regards,
Torsten
mailserver# doveconf -n
# 2.0.13: /usr/pkg/etc/dovecot/dovecot.conf
# OS: NetBSD 5.1 amd64 ffs
auth_debug = yes
auth_verbose = yes
base_dir = /var/run/dovecot/
mail_debug = yes
mail_gid = 6
mail_location = maildir:/var/mail/user/%u
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
namespace {
inbox = yes
location =
prefix =
separator = .
type = private
}
namespace {
list = children
location = maildir:/var/mail/public:INDEX=%u/public
prefix = public.
separator = .
subscriptions = no
type = public
}
passdb {
args = /usr/pkg/etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
}
plugin {
acl = vfile
sieve = ~/.dovecot.sieve
sieve_dir = ~/sieve
}
protocols = imap pop3 lmtp sieve
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
unix_listener auth-userdb {
group = dovecot
user = dovecot
}
}
service managesieve-login {
inet_listener sieve {
port = 4190
}
inet_listener sieve_deprecated {
port = 2000
}
}
ssl_cert =
-- <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> <> <> <> Dr. Torsten Harenberg harenberg@physik.uni-wuppertal.de <> <> Bergische Universitaet <> <> FB C - Physik Tel.: +49 (0)202 439-3521 <> <> Gaussstr. 20 Fax : +49 (0)202 439-2811 <> <> 42097 Wuppertal <> <> <> <><><><><><><>< Of course it runs NetBSD http://www.netbsd.org ><>
On Tue, 2011-05-31 at 15:36 +0200, Torsten Harenberg wrote:
mailserver# doveadm mailbox subscribe -u harenber public.fb8 .. namespace { list = children location = maildir:/var/mail/public:INDEX=~/public prefix = public. separator = . subscriptions = no type = public }
Looks like doveadm mailbox subscribe ignores the subscriptions=no setting. It's a bit difficult to fix, since all the difficult code is in imap-specific code.. Looks like I need to move it elsewhere, maybe for v2.1..
But I cannot access this "fb8" folder with any client. Alpine says that the public folder is empty:
Try:
doveadm acl debug -u harenber public.fb8
Thanks Timo...
Am 03.06.2011 um 14:34 schrieb Timo Sirainen:
doveadm acl debug -u harenber public.fb8
mailserver# doveadm acl debug -u harenber public.fb8 doveadm(harenber): Error: Can't open mailbox public.fb8: Mailbox doesn't exist: fb8 mailserver#
Or do I miss here something:
mailserver# cd /var/mail/public/fb8/
mailserver# ls -al
total 58
drwxrwxrwx 5 root mail 512 May 31 12:03 .
drwxrwxrwx 3 root mail 512 May 31 15:27 ..
drwxrwxrwx 2 root mail 512 May 31 10:16 cur
-rwxrwxrwx 1 root mail 54 May 31 11:46 dovecot-acl
-rwxrwxrwx 1 root mail 97 May 31 10:16 dovecot-keywords
-rwxrwxrwx 1 root mail 0 May 31 12:01 dovecot-shared
-rwxrwxrwx 1 root mail 19228 May 31 10:16 dovecot-uidlist
drwxrwxrwx 2 root mail 23040 May 31 10:16 new
-rw-r--r-- 1 root mail 5 May 31 12:03 subscriptions
drwxrwxrwx 2 root mail 512 May 31 10:16 tmp
(Content has been copied with the cyrus2dovecot.pl script).
Best regards,
Torsten
-- <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> <> <> <> Dr. Torsten Harenberg harenberg@physik.uni-wuppertal.de <> <> Bergische Universitaet <> <> FB C - Physik Tel.: +49 (0)202 439-3521 <> <> Gaussstr. 20 Fax : +49 (0)202 439-2811 <> <> 42097 Wuppertal <> <> <> <><><><><><><>< Of course it runs NetBSD http://www.netbsd.org ><>
On Fri, 2011-06-03 at 14:37 +0200, Torsten Harenberg wrote:
mailserver# doveadm acl debug -u harenber public.fb8 doveadm(harenber): Error: Can't open mailbox public.fb8: Mailbox doesn't exist: fb8 mailserver#
Or do I miss here something:
mailserver# cd /var/mail/public/fb8/
Yeah, either rename this to /var/mail/public/.fb8/ or add :LAYOUT=fs to namespace location.
Am 03.06.2011 um 14:45 schrieb Timo Sirainen:
Yeah, either rename this to /var/mail/public/.fb8/ or add :LAYOUT=fs to namespace location.
Ahh.. that worked :)
Thanks a lot!!! I think I wouldn't have found it.
Best regards,
Torsten
-- <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> <> <> <> Dr. Torsten Harenberg harenberg@physik.uni-wuppertal.de <> <> Bergische Universitaet <> <> FB C - Physik Tel.: +49 (0)202 439-3521 <> <> Gaussstr. 20 Fax : +49 (0)202 439-2811 <> <> 42097 Wuppertal <> <> <> <><><><><><><>< Of course it runs NetBSD http://www.netbsd.org ><>
participants (2)
-
Timo Sirainen
-
Torsten Harenberg