[Dovecot] shared folders "invisible" on new setup

Torsten Harenberg harenberg at physik.uni-wuppertal.de
Tue May 31 16:36:03 EEST 2011


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 = </etc/certificates/mail.physik.uni-wuppertal.de.crt
ssl_key = </etc/certificates/mail.physik.uni-wuppertal.de.key
userdb {
  args = /usr/pkg/etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
protocol lmtp {
  mail_plugins = sieve
}
protocol lda {
  mail_plugins = sieve
}
protocol imap {
  mail_plugins = acl imap_acl
}
protocol sieve {
  managesieve_implementation_string = Dovecot Pigeonhole
}
mailserver# 

--
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
<>                                                              <>
<> Dr. Torsten Harenberg     harenberg at 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 ><> 




More information about the dovecot mailing list