El 16/09/11 12:08, Timo Sirainen escribió:
On Fri, 2011-09-16 at 11:51 +0200, Angel L. Mateo wrote:
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):
dovecot -n output would have been better. What do you use as
Yes, I know but I forgot it :-(. You have now the config.
mail_location? My guess is that you have specified INDEX or CONTROL path
there, which isn't currently compatible with this..
Yes, I'm using INDEX in mail_location
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.
In above config you're using 3 namespaces, not 1. This problem shouldn't
exist if you use just one namespace.
I have tried with both configurations with the same problem.
I have made another test, this time with 1 namespace and with
thunderbird directly expunging messages (to avoid moving them to trash
and then purging trash). With this, dovecot logs:
Sep 16 12:26:48 myotis30 dovecot: imap(angel.luis): Debug: Namespace
.EXPUNGED/: Using permissions from
/home/alumnos/46/113246/Maildir/expunged: mode=0700 gid=-1
Sep 16 12:26:48 myotis30 dovecot: imap(angel.luis): Debug: Namespace
.EXPUNGED/: Permission lookup failed from
/home/alumnos/46/113246/Maildir/expunged/.kk
Sep 16 12:26:48 myotis30 dovecot: imap(angel.luis): Debug: Namespace
.EXPUNGED/: Using permissions from
/home/alumnos/46/113246/Maildir/expunged: mode=0700 gid=-1
Sep 16 12:26:48 myotis30 dovecot: imap(angel.luis): Debug: Namespace
.EXPUNGED/: Permission lookup failed from
/home/alumnos/46/113246/Maildir/expunged/.kk
Sep 16 12:26:48 myotis30 dovecot: imap(angel.luis): Debug: Namespace
.EXPUNGED/: Using permissions from
/home/alumnos/46/113246/Maildir/expunged: mode=0700 gid=-1
but "kk" mail folder isn't created in the expunge namespace.
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.
With http://hg.dovecot.org/dovecot-2.0/rev/e57bd3e2ec27 it'll now log
the reason why it's not possible.
I'm going to try it...
--
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
# 2.0.13: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-4-amd64 x86_64 Ubuntu 10.04.3 LTS
auth_cache_size = 1 k
auth_cache_ttl = 58 mins
auth_debug = yes
auth_master_user_separator = *
auth_verbose = yes
default_process_limit = 1000
disable_plaintext_auth = no
dotlock_use_excl = no
hostname = myotis30
log_timestamp = %Y-%m-%d %H:%M:%S
mail_debug = yes
mail_fsync = always
mail_location = maildir:~/Maildir:INDEX=/var/indexes/%n
mail_nfs_storage = yes
mail_plugins = lazy_expunge
mail_privileged_group = mail
maildir_stat_dirs = yes
mdbox_rotate_size = 20 M
namespace {
inbox = yes
location =
prefix =
separator = /
}
namespace {
location = maildir:~/Maildir/expunged
prefix = .EXPUNGED/
separator = /
}
namespace {
location = maildir:~/Maildir/deleted
prefix = .DELETED/
separator = /
}
namespace {
location = maildir:~/Maildir/deleted/expunged
prefix = .DELETED/.EXPUNGED/
separator = /
}
passdb {
args = /etc/dovecot/master-users
driver = passwd-file
master = yes
pass = yes
}
passdb {
args = /etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
}
passdb {
args = session=yes dovecot
driver = pam
}
plugin {
autocreate = Sent
autocreate2 = Trash
autocreate3 = Drafts
autocreate4 = SPAM
lazy_expunge = .EXPUNGED/ .DELETED/ .DELETED/.EXPUNGED/
sieve = ~/.dovecot.sieve
sieve_dir = ~/sieve
sieve_max_redirects = 15
zlib_save = gz
zlib_save_level = 6
}
postmaster_address = postmas...@um.es
protocols = " imap lmtp pop3"
service auth {
unix_listener auth-userdb {
mode = 0666
}
}
service lmtp {
inet_listener lmtp {
port = 24
}
process_min_avail = 10
}
ssl = no
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
driver = prefetch
}
userdb {
args = /etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
}
protocol lmtp {
mail_plugins = lazy_expunge sieve
}
protocol lda {
mail_plugins = lazy_expunge sieve
}
protocol imap {
mail_plugins = lazy_expunge autocreate
}