On Wed, 2010-10-06 at 18:14 +0200, Lutz Preßler wrote:
> Oct  6 18:06:26 host dovecot: auth: userdb(?): Username contains disallowed 
> character: 0x2f
> Oct  6 18:06:26 host dovecot: imap(testuser): Error: Namespace 
> 'shared^user/box^': mkdir(/var/run/dovecot/user-not-found/user/box) failed: 
> Permission denied (euid=1000(user) egid=1000(user) missing +w perm: 
> /var/run/dovecot, euid is not dir owner)
> Oct  6 18:06:26 host dovecot: imap(testuser): Warning: Subscriptions file 
> /home/testuser/Maildir/subscriptions: Ignoring invalid entry: shared^user^box

Interesting. It tries to use "shared^user/box^" as the namespace prefix
instead of "shared^user^box^" as it should. I still don't see why
though, and can't reproduce it. Try what it logs with attached patch?

diff -r d991b5c99397 src/lib-storage/index/shared/shared-storage.c
--- a/src/lib-storage/index/shared/shared-storage.c	Mon Oct 25 16:27:42 2010 +0100
+++ b/src/lib-storage/index/shared/shared-storage.c	Mon Oct 25 17:01:29 2010 +0100
@@ -220,6 +220,7 @@
 	prefix = t_str_new(128);
 	str_append(prefix, ns->prefix);
 	var_expand(prefix, storage->ns_prefix_pattern, tab);
+	i_warning("ns_prefix_pattern=%s prefix=%s final=%s", storage->ns_prefix_pattern, ns->prefix, str_c(prefix));
 
 	*_ns = mail_namespace_find_prefix(user->namespaces, str_c(prefix));
 	if (*_ns != NULL) {

Reply via email to