[Dovecot] namespace hierarchy

Andreas Helmcke news0104.6.weezy at spamgourmet.com
Wed Apr 18 20:00:48 EEST 2012


Am 04.04.2012 03:47, schrieb Timo Sirainen:
> On 1.4.2012, at 10.28, Tom Fernandes wrote:
> 
>> In the new server I would like to have 3 namespaces (private, public, shared) 
>> and use "/" as separator. Is it possible to keep "INBOX." for private, so that 
>> the users mailboxes appear below the Inbox, but have public and shared on the 
>> same hierarchy-level like the Inbox?
>>
> 
> If you have any subscriptions=no namespaces, you need a parent namespace that has subscriptions=yes. You could have e.g.:
> 
> namespace {
>   prefix = INBOX/
>   list = no
>   inbox = yes
> }
> namespace {
>   prefix =
>   list = no
>   hidden = yes
>   alias_for = INBOX/
> }
> 
> So now the prefix="" is used for the subscriptions but nothing else really.

I tried this, but sadly with dovecot V2.1.1 it is not working.

Steps to reproduce:
+ create empty mail directory
+ create one folder (Allgemeines/Tabel) in public namespace with doveadm
+ start mail-client (in my case thunderbird)
+ try to subscribe to the new public folder

Error message in log:
Apr 18 18:19:34 elablnmail02 dovecot: imap(ahelmcke): Warning:
Subscriptions file /home/mail/user/ahelmcke/subscriptions: Removing
invalid entry: Allgemeines/Tabel


doveconf -n:

# 2.1.1: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-220.7.1.el6.x86_64 x86_64 CentOS release 6.2 (Final) ext4
auth_master_user_separator = *
first_valid_uid = 400
mail_gid = vmail
mail_location = maildir:/home/mail/user/%u
mail_uid = vmail
mbox_write_locks = fcntl
namespace Allgemeines {
  location =
maildir:/home/mail/Allgemeines:INDEX=/home/mail/user/%u/SEEN.Allgemeines
  prefix = Allgemeines/
  separator = /
  subscriptions = no
  type = public
}
namespace dummy {
  alias_for = INBOX/
  hidden = yes
  list = no
  location =
  prefix =
  separator = /
  type = private
}
namespace inbox {
  inbox = yes
  location =
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix = INBOX/
  separator = /
  type = private
}
passdb {
  args = /etc/dovecot/passwd.masterusers
  driver = passwd-file
  master = yes
  pass = yes
}
passdb {
  args = /etc/dovecot/dovecot-ldap.conf
  driver = ldap
}
plugin {
  acl = vfile
  sieve = /var/lib/dovecot/sieve/%u.sieve
  sieve_global_dir = /var/lib/dovecot/sieve/global/
  sieve_global_path = /var/lib/dovecot/sieve/default.sieve
}
protocols = imap lmtp
service auth {
  unix_listener /var/spool/postfix/private/auth {
    mode = 0666
  }
}
service imap-login {
  inet_listener imap {
    address = *
  }
  inet_listener imaps {
    address = *
  }
}
ssl = required
ssl_cert = </etc/pki/dovecot/certs/mail.ela-soft.com.crt
ssl_key = </etc/pki/dovecot/private/mail.ela-soft.com.2048bit.nopp.key
userdb {
  args = /etc/dovecot/dovecot-ldap.conf
  driver = ldap
}

Any ideas?

Greetings
  Andreas





More information about the dovecot mailing list