[Dovecot] shared mailboxes, mkdir_parents problem

Leo Unglaub leo.unglaub at gmail.com
Mon Mar 22 15:38:48 EET 2010


Hi Friends,
i have a little problem with my Dovecot installation. The normal 
installation works very well and now i have to configurate dovecot that 
all member from a domain can access all mailboxes from this domain.
I configurate the shared namespace and set the IMAP ACL Flag but i can't 
abonement the other mailboxes. I get a error in the logs:
> 2010-03-18 10:03:04 IMAP(unglaub): Info: maildir: 
> data=/var/mails/e-c-o.at/kirchmeir:INDEX=/var/mails/e-c-o.at/shared/mitarbeiter/kirchmeir 
>
> 2010-03-18 10:03:04 IMAP(unglaub): Info: maildir++: 
> root=/var/mails/e-c-o.at/kirchmeir, 
> index=/var/mails/e-c-o.at/shared/mitarbeiter/kirchmeir, control=, 
> inbox=/var/mails/e-c-o.at/kirchmeir
> 2010-03-18 10:03:04 IMAP(unglaub): Info: acl: initializing backend 
> with data: vfile:/etc/dovecot-acl
> 2010-03-18 10:03:04 IMAP(unglaub): Info: acl: acl username = unglaub
> 2010-03-18 10:03:04 IMAP(unglaub): Info: acl: owner = 0
> 2010-03-18 10:03:04 IMAP(unglaub): Info: acl vfile: Global ACL 
> directory: /etc/dovecot-acl
> 2010-03-18 10:03:04 IMAP(unglaub): Info: acl vfile: file 
> /etc/dovecot-acl//.DEFAULT not found
> 2010-03-18 10:03:04 IMAP(unglaub): Info: Namespace 
> shared/mitarbeiter/kirchmeir/: Permission lookup failed from 
> /var/mails/e-c-o.at/kirchmeir
> 2010-03-18 10:03:04 IMAP(unglaub): Info: Namespace 
> shared/mitarbeiter/kirchmeir/: Using permissions from 
> /var/mails/e-c-o.at/kirchmeir: mode=0700 gid=-1
> 2010-03-18 10:03:04 IMAP(unglaub): Error: 
> mkdir_parents(/var/mails/e-c-o.at/kirchmeir) failed: Permission denied 
In this case the User unglaub at e-c-o.at try to access the mailbox 
kirchmeir at e-c-o.at. My config looks like this:
> mail:~# dovecot -n
> # 1.2.11: /etc/dovecot/dovecot.conf
> # OS: Linux 2.6.30-bpo.1-amd64 x86_64 Debian 5.0.4 ext3
> log_path: /var/log/dovecot/dovecot.log
> log_timestamp: %Y-%m-%d %H:%M:%S
> disable_plaintext_auth: no
> login_dir: /var/run/dovecot/login
> login_executable: /usr/lib/dovecot/imap-login
> mail_privileged_group: mail
> mail_uid: 501
> mail_gid: 501
> mail_location: maildir:/var/mail/%d/%n
> mail_debug: yes
> maildir_copy_preserve_filename: yes
> mbox_write_locks: fcntl dotlock
> mail_plugins: acl imap_acl
> namespace:
>   type: private
>   separator: /
>   inbox: yes
>   list: yes
>   subscriptions: yes
> namespace:
>   type: shared
>   separator: /
>   prefix: shared/mitarbeiter/%%n/
>   location: maildir:/var/mails/e-c-o.at/%%n:INDEX=/tmp/%%n
>   list: children
> lda:
>   postmaster_address: postmaster at e-c-o.at
>   mail_plugins: acl
>   auth_socket_path: /var/run/dovecot/auth-master
>   log_path: /var/log/dovecot/dovecot-deliver-errors.log
>   info_log_path: /var/log/dovecot/dovecot-deliver.log
> auth default:
>   default_realm: e-c-o.at
>   passdb:
>     driver: ldap
>     args: /etc/dovecot/dovecot-ldap.conf
>   userdb:
>     driver: ldap
>     args: /etc/dovecot/dovecot-ldap.conf
>   socket:
>     type: listen
>     client:
>       path: /var/spool/postfix/private/auth
>       mode: 432
>       user: postfix
>       group: postfix
>     master:
>       path: /var/run/dovecot/auth-master
>       mode: 384
>       user: dovecot-data
>       group: dovecot-data
> plugin:
>   acl: vfile:/etc/dovecot-acl
>   acl_shared_dict: file:/var/mail/%d/shared-mailboxes.db
Do you have any idea why my setup isn't working correct? My users are 
stored in a LDAP (openLDAP) Server and the login works very well. For 
completion i post the LDAP-File to.
> mail:~# grep -v '^ *\(#.*\)\?$' /etc/dovecot/dovecot-ldap.conf
> hosts = 192.168.1.230
> dn = cn=ldapadmin,dc=e-c-o,dc=net
> dnpass = xxxxxxxx
> ldap_version = 3
> base = ou=smbUser,ou=dc,ou=at,dc=e-c-o,dc=net
> scope = subtree
> user_filter = (&(objectClass=posixAccount)(uid=%n))
> user_attrs = mail=mail
> pass_filter = (&(objectClass=posixAccount)(uid=%n))
> pass_attrs = uid=user,userPassword=password,\
>   homeDirectory=userdb_home,uidNumber=userdb_uid,gidNumber=userdb_gid
> default_pass_scheme = CRYPT
Thank you very much.
Greetings from Austria
Leo


More information about the dovecot mailing list