[Dovecot] Problem importing messages with lazy_expunged configured

Angel L. Mateo amateo at um.es
Tue Nov 13 15:22:50 EET 2012


Hello,

	I have a problem importing messages since I have configured lazy_expunge.

	My lazy_expunge configuration (that is correctly working when a message 
is expunged) is:

plugin {
   lazy_expunge = BORRADOS.
}

namespace {
   hidden = yes
   list = no
   location = maildir:~/Maildir/expunged
   prefix = BORRADOS.
   separator = .
}

	but when I try to import messages I get:

amateo_adm at myotis31:~$ sudo doveadm -vD import -u angel.luis 
maildir:/tmp/angel.luis '' mailbox INBOX
doveadm(root): Debug: Loading modules from directory: 
/usr/lib/dovecot/modules
doveadm(root): Debug: Module loaded: 
/usr/lib/dovecot/modules/lib02_lazy_expunge_plugin.so
doveadm(root): Debug: Module loaded: 
/usr/lib/dovecot/modules/lib10_quota_plugin.so
doveadm(root): Debug: Module loaded: 
/usr/lib/dovecot/modules/lib20_zlib_plugin.so
doveadm(root): Debug: Loading modules from directory: 
/usr/lib/dovecot/modules/doveadm
doveadm(root): Debug: Skipping module doveadm_acl_plugin, because 
dlopen() failed: 
/usr/lib/dovecot/modules/doveadm/lib10_doveadm_acl_plugin.so: undefined 
symbol: acl_user_module (this is usually intentional, so just ignore 
this message)
doveadm(root): Debug: Skipping module doveadm_expire_plugin, because 
dlopen() failed: 
/usr/lib/dovecot/modules/doveadm/lib10_doveadm_expire_plugin.so: 
undefined symbol: expire_set_deinit (this is usually intentional, so 
just ignore this message)
doveadm(root): Debug: Module loaded: 
/usr/lib/dovecot/modules/doveadm/lib10_doveadm_quota_plugin.so
doveadm(root): Debug: Module loaded: 
/usr/lib/dovecot/modules/doveadm/lib10_doveadm_zlib_plugin.so
doveadm(root): Debug: Skipping module doveadm_fts_plugin, because 
dlopen() failed: 
/usr/lib/dovecot/modules/doveadm/lib20_doveadm_fts_plugin.so: undefined 
symbol: fts_backend_rescan (this is usually intentional, so just ignore 
this message)
doveadm(root): Debug: Effective uid=0, gid=0, home=/home/amateo_adm
doveadm(root): Debug: Quota root: name=User quota backend=dict 
args=:file:/home/amateo_adm/Maildir/dovecot.quota
doveadm(root): Debug: Quota rule: root=User quota mailbox=* 
bytes=10737418240 messages=0
doveadm(root): Debug: Quota rule: root=User quota mailbox=Trash 
bytes=+1073741824 messages=0
doveadm(root): Debug: dict quota: user=doveadm, 
uri=file:/home/amateo_adm/Maildir/dovecot.quota, noenforcing=0
doveadm(root): Debug: maildir++: root=/tmp/angel.luis, index=, control=, 
inbox=/tmp/angel.luis, alt=
doveadm(root): Fatal: lazy_expunge: Unknown namespace: 'BORRADOS.'

	in /tmp/<user> I don't have any "expunged" folder, it is just a maildir.

	In order to use it I have to deactivate this plugin in the running 
command with something like "sudo doveadm -vD -o mail_plugins='quota 
zlib' import -u <user> maildir:/tmp/<user> '' mailbox INBOX".

	Any idea?

-- 
Angel L. Mateo Martínez
Sección de Telemática
Área de Tecnologías de la Información
y las Comunicaciones Aplicadas (ATICA)
http://www.um.es/atica
Tfo: 868889150
Fax: 868888337
-------------- next part --------------
# 2.1.9: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.19um1 x86_64 Ubuntu 12.04.1 LTS 
auth_cache_size = 20 M
auth_cache_ttl = 1 days
auth_master_user_separator = *
auth_verbose = yes
default_process_limit = 1024
disable_plaintext_auth = no
log_timestamp = %Y-%m-%d %H:%M:%S
login_trusted_networks = 155.54.211.176/28
mail_location = maildir:~/Maildir:INDEX=/var/indexes/%n
mail_plugins = quota zlib lazy_expunge
mail_privileged_group = mail
maildir_very_dirty_syncs = yes
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave imapflags
mdbox_rotate_size = 20 M
namespace {
  inbox = yes
  location = 
  prefix = 
  separator = .
}
namespace {
  hidden = yes
  list = no
  location = maildir:~/Maildir/expunged
  prefix = BORRADOS.
  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 cache_key=%n dovecot
  driver = pam
}
plugin {
  lazy_expunge = BORRADOS.
  quota = dict:User quota::file:%h/Maildir/dovecot.quota
  quota_rule = *:storage=10G
  quota_rule2 = Trash:storage=+1G
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
  sieve_extensions = +imapflags
  sieve_max_redirects = 15
  zlib_save = gz
  zlib_save_level = 6
}
postmaster_address = postmaster at um.es
protocols = imap pop3 lmtp sieve
service anvil {
  client_limit = 3075
}
service auth {
  client_limit = 4096
  unix_listener auth-userdb {
    mode = 0666
  }
}
service doveadm {
  inet_listener {
    port = 24245
  }
}
service imap {
  process_limit = 5120
  process_min_avail = 6
  vsz_limit = 512 M
}
service ipc {
  unix_listener ipc {
    user = dovecot
  }
}
service lmtp {
  inet_listener lmtp {
    port = 24
  }
  process_min_avail = 10
  vsz_limit = 512 M
}
service pop3 {
  process_min_avail = 6
}
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 lda {
  mail_plugins = quota zlib lazy_expunge sieve
}
protocol imap {
  mail_plugins = quota zlib lazy_expunge imap_quota
}
protocol lmtp {
  mail_plugins = quota zlib lazy_expunge sieve
}
protocol pop3 {
  pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, in=%i, out=%o
}
local 155.54.211.160/27/27 {
  doveadm_password = <password>
}


More information about the dovecot mailing list