[Dovecot] Deleted mailboxes with lazy_expunge

Angel L. Mateo amateo at um.es
Fri Sep 16 12:51:19 EEST 2011


Hello,

	I'm trying to configure lazy_expunge plugin (as a way to provide easy 
backup for mails). This is my configuration (as explained in dovecot wiki):

# Default namespace
namespace {
         prefix =
         separator = /
         inbox = yes
}

# namespaces for lazy_expunge plugin:
namespace {
   prefix = .EXPUNGED/
   separator = /
   location = maildir:~/Maildir/expunged
}
namespace {
   prefix = .DELETED/
   separator = /
   location = maildir:~/Maildir/deleted
}
namespace {
   prefix = .DELETED/.EXPUNGED/
   separator = /
   location = maildir:~/Maildir/deleted/expunged


lazy_expunge = .EXPUNGED/ .DELETED/ .DELETED/.EXPUNGED/

	I use just one namespace because I don't want to differentiate between 
deleting mails or deleting mailboxes, but I have the same problem using 
the 3 namespaces.

	With this configuration, when a user connects, if he doesn't have the 
expunged folder, dovecot logs:

Sep 16 10:53:35 myotis30 dovecot: imap(angel.luis): Debug: Namespace : 
type=private, prefix=.EXPUNGED/, sep=/, inbox=no, hidden=no, list=yes, 
subscriptions=yes location=maildir:~/Maildir/expunged
Sep 16 10:53:35 myotis30 dovecot: imap(angel.luis): Debug: maildir++: 
root=/home/alumnos/46/113246/Maildir/expunged, index=, control=, inbox=
Sep 16 10:53:35 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.EXPUNGED/: Permission lookup failed from 
/home/alumnos/46/113246/Maildir/expunged
Sep 16 10:53:35 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.EXPUNGED/: Using permissions from 
/home/alumnos/46/113246/Maildir/expunged: mode=0700 gid=-1

	and the expunged folder is created (without the cur, new neither tmp 
folders).

	When I delete a message in the INBOX folder (for example), dovecot logs:

Sep 16 10:57:19 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.EXPUNGED/: Permission lookup failed from 
/home/alumnos/46/113246/Maildir/expunged/.INBOX
Sep 16 10:57:19 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.EXPUNGED/: Using permissions from 
/home/alumnos/46/113246/Maildir/expunged: mode=0700 gid=-1
Sep 16 10:57:19 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.EXPUNGED/: Permission lookup failed from 
/home/alumnos/46/113246/Maildir/expunged/.INBOX
Sep 16 10:57:19 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.EXPUNGED/: Using permissions from 
/home/alumnos/46/113246/Maildir/expunged: mode=0700 gid=-1

	and the message is stored in the expunge namespace (that is an imap 
INBOX folder is created in the namespace, with its cur, new and tmp, and 
the message is stored).

	But when I try to delete a whole imap folder (in the example I delete 
it from trash folder because I use thunderbird and it previously move 
the folder to trash), dovecot logs:

Sep 16 11:45:46 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.DELETED/: Using permissions from 
/home/alumnos/46/113246/Maildir/deleted: mode=0700 gid=-1
Sep 16 11:45:46 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.DELETED/: Permission lookup failed from 
/home/alumnos/46/113246/Maildir/deleted/.Trash.kk-20110916-114546
Sep 16 11:45:46 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.DELETED/: Using permissions from 
/home/alumnos/46/113246/Maildir/deleted: mode=0700 gid=-1
Sep 16 11:45:46 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.DELETED/: Permission lookup failed from 
/home/alumnos/46/113246/Maildir/deleted/.Trash.kk-20110916-114546
Sep 16 11:45:46 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.DELETED/: Using permissions from 
/home/alumnos/46/113246/Maildir/deleted: mode=0700 gid=-1

	and my mail client reports the error "[CANNOT] Can't rename mailboxes 
accross specified storages" and the mail folder isn't created in the 
DELETED namespace.

	Any idea?

-- 
Angel L. Mateo Martínez
Sección de Telemática
Área de Tecnologías de la Información       _o)
y las Comunicaciones Aplicadas (ATICA)      / \\
http://www.um.es/atica                    _(___V
Tfo: 868887590
Fax: 868888337



More information about the dovecot mailing list