Hi,
if i delete the home directory and all content below an existing account
u...@example.org. Then run:
/usr/bin/doveadm quota recalc -u u...@example.org
and afterwards:
/usr/bin/doveadm -o imapc_user=u...@example.org -o imapc_password=imappw
-o imapc_host=local-mailbox -o imapc_features=rfc822.size -o
imapc_port=18143 -D -v backup -R -f -u u...@example.org imapc:
i get the following errors:
doveadm(root): Debug: Loading modules from directory:
/usr/lib/dovecot/modules
doveadm(root): Debug: Module loaded:
/usr/lib/dovecot/modules/lib10_quota_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_lookup (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: Skipping module doveadm_zlib_plugin, because
dlopen() failed:
/usr/lib/dovecot/modules/doveadm/lib10_doveadm_zlib_plugin.so: undefined
symbol: i_stream_create_deflate (this is usually intentional, so just
ignore this message)
doveadm(root): Debug: Skipping module doveadm_fts_plugin, because
dlopen() failed:
/usr/lib/dovecot/modules/doveadm/lib20_doveadm_fts_plugin.so: undefined
symbol: fts_list_backend (this is usually intentional, so just ignore
this message)
doveadm(u...@example.org): Debug: auth input: u...@example.org
home=/mail/dovecot/example.org/user uid=501 gid=123
quota_rule=*:bytes=2000M:messages=0
doveadm(u...@example.org): Debug: Added userdb setting:
plugin/quota_rule=*:bytes=2000M:messages=0
doveadm(u...@example.org): Debug: Effective uid=501, gid=123,
home=/mail/dovecot/example.org/user
doveadm(u...@example.org): Debug: Quota root: name=User quota
backend=dict args=:proxy::quota
doveadm(u...@example.org): Debug: Quota rule: root=User quota mailbox=*
bytes=2097152000 messages=0
doveadm(u...@example.org): Debug: Quota rule: root=User quota
mailbox=Trash bytes=+104857600 messages=0
doveadm(u...@example.org): Debug: Quota warning: bytes=1992294400 (95%)
messages=0 reverse=no command=quota-warning 95 u...@example.org
doveadm(u...@example.org): Debug: Quota warning: bytes=1677721600 (80%)
messages=0 reverse=no command=quota-warning 80 u...@example.org
doveadm(u...@example.org): Debug: dict quota: user=u...@example.org,
uri=proxy::quota, noenforcing=0
doveadm(u...@example.org): Debug: fs:
root=/mail/dovecot/example.org/user/mail, index=, control=, inbox=, alt=
doveadm(u...@example.org): Debug: Namespace : Using permissions from
/mail/dovecot/example.org/user/mail: mode=0700 gid=-1
dsync(u...@example.org): Debug: Effective uid=501, gid=123,
home=/mail/dovecot/example.org/user
dsync(u...@example.org): Debug: Quota root: name=User quota backend=dict
args=:proxy::quota
dsync(u...@example.org): Debug: Quota rule: root=User quota mailbox=*
bytes=2097152000 messages=0
dsync(u...@example.org): Debug: Quota rule: root=User quota
mailbox=Trash bytes=+104857600 messages=0
dsync(u...@example.org): Debug: Quota warning: bytes=1992294400 (95%)
messages=0 reverse=no command=quota-warning 95 u...@example.org
dsync(u...@example.org): Debug: Quota warning: bytes=1677721600 (80%)
messages=0 reverse=no command=quota-warning 80 u...@example.org
dsync(u...@example.org): Debug: dict quota: user=u...@example.org,
uri=proxy::quota, noenforcing=0
dsync(u...@example.org): Debug: imapc: root=, index=, control=, inbox=, alt=
dsync(u...@example.org): Debug: imapc(local-mailbox:18143): Looking up
IP address
dsync(u...@example.org): Debug: imapc(local-mailbox:18143): Connecting
to 10.129.3.196:18143
dsync(u...@example.org): Debug: imapc(local-mailbox:18143): Server
capabilities: IMAP4 IMAP4rev1 AUTH=LOGIN ACL NAMESPACE CHILDREN SORT
QUOTA THREAD=ORDEREDSUBJECT UNSELECT IDLE
dsync(u...@example.org): Debug: imapc(local-mailbox:18143):
Authenticating as u...@example.org
dsync(u...@example.org): Debug: imapc(local-mailbox:18143):
Authenticated successfully
dsync(u...@example.org): Error: Can't delete mailbox INBOX: INBOX can't
be deleted.
dsync(u...@example.org): Debug: Namespace :
/mail/dovecot/example.org/user/mail/mailboxes/Trash doesn't exist yet,
using default permissions
dsync(u...@example.org): Debug: Namespace : Using permissions from
/mail/dovecot/example.org/user/mail: mode=0700 gid=-1
dsync(u...@example.org): Debug: Namespace :
/mail/dovecot/example.org/user/mail/mailboxes/Sent doesn't exist yet,
using default permissions
dsync(u...@example.org): Debug: Namespace : Using permissions from
/mail/dovecot/example.org/user/mail: mode=0700 gid=-1
dsync(u...@example.org): Info: INBOX: only in dest
(guid=54c23c119d04eb4f005100004f99b03d)
dsync(u...@example.org): Info: Trash: only in source
(guid=7f5af7ba291b2df1a11d573bdb55d7e9)
dsync(u...@example.org): Info: Sent: only in source
(guid=bfb2e03fdce327671e82bf173b1ccb8b)
dsync(u...@example.org): Info: INBOX: only in source
(guid=c92f64f79f0d1ed01e6d5b314f04886c)
dsync(u...@example.org): Error: Trying to open a non-listed mailbox with
guid=54c23c119d04eb4f005100004f99b03d
dsync(u...@example.org): Error: msg iteration failed: Couldn't open
mailbox 54c23c119d04eb4f005100004f99b03d
dsync(u...@example.org): Error: Trying to open a non-listed mailbox with
guid=54c23c119d04eb4f005100004f99b03d
dsync(u...@example.org): Error: Mailbox INBOX changed its GUID
(c92f64f79f0d1ed01e6d5b314f04886c -> 54c23c119d04eb4f005100004f99b03d)
dsync(u...@example.org): Error: msg iteration failed: Couldn't open
mailbox c92f64f79f0d1ed01e6d5b314f04886c
dsync(u...@example.org): Error: Mailbox INBOX changed its GUID
(c92f64f79f0d1ed01e6d5b314f04886c -> 54c23c119d04eb4f005100004f99b03d)
dsync(u...@example.org): Debug: imapc(local-mailbox:18143): Disconnected
is this an intented behaviour or is this a bug in quota recalc? if i
delete the home directory again after the quota recalc recreated it no
errors are reported and the mail are all copied as intended.
Kind regards
Reinhard
dovecot -n
# 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-40-server x86_64 Ubuntu 10.04.4 LTS
auth_cache_negative_ttl = 0
auth_cache_size = 10 M
auth_cache_ttl = 1 mins
auth_verbose = yes
auth_verbose_passwords = sha1
deliver_log_format = mailbox: deliver: msgid=%m from=%f: %$
dict {
quota = mysql:/etc/dovecot/conf.d/dovecot-dict-sql.conf.ext
}
disable_plaintext_auth = no
doveadm_password = xxx
instance_name = dovecot-mailbox
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
login_greeting = Mailbox
login_log_format = mailbox: login: %$: %s
login_trusted_networks = 10.10.10.0/24
mail_debug = yes
mail_fsync = always
mail_gid = vmail
mail_home = /mail/dovecot/%d/%n
mail_location = mdbox:~/mail
mail_log_prefix = "mailbox: mail: %s(%u): "
mail_plugins = quota
mail_privileged_group = vmail
mail_uid = vmail
managesieve_implementation_string = Sieve
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
mdbox_rotate_interval = 1 weeks
mdbox_rotate_size = 50 M
mmap_disable = yes
passdb {
args = /etc/dovecot/conf.d/dovecot-sql.conf.ext
driver = sql
}
plugin {
quota = dict:User quota::proxy::quota
quota_rule = *:storage=10G
quota_rule2 = Trash:storage=+100M
quota_warning = storage=95%% quota-warning 95 %u
quota_warning2 = storage=80%% quota-warning 80 %u
sieve = ~/.dovecot.sieve
sieve_dir = ~/sieve
}
protocols = imap pop3 lmtp sieve
service auth {
unix_listener auth-userdb {
group = dovecot
mode = 0660
user = dovecot
}
}
service dict {
unix_listener dict {
group = vmail
mode = 0660
}
}
service doveadm {
inet_listener doveadm-server {
port = 19000
}
}
service imap-login {
inet_listener imap {
port = 19143
}
}
service imap-postlogin {
executable = script-login /usr/local/bin/dovecot-postlogin
user = $default_internal_user
}
service imap {
executable = imap imap-postlogin
}
service lmtp {
inet_listener lmtp {
address = *
port = 19024
}
}
service managesieve-login {
inet_listener sieve {
port = 19200
}
}
service pop3-login {
inet_listener pop3 {
port = 19110
}
}
service pop3-postlogin {
executable = script-login /usr/local/bin/dovecot-postlogin
user = $default_internal_user
}
service pop3 {
executable = pop3 pop3-postlogin
}
service quota-warning {
executable = script /usr/local/bin/quota-warning
extra_groups = dovecot
unix_listener quota-warning {
user = vmail
}
user = vmail
}
ssl = no
userdb {
driver = prefetch
}
userdb {
args = /etc/dovecot/conf.d/dovecot-sql.conf.ext
driver = sql
}
verbose_proctitle = yes
protocol imap {
imap_client_workarounds = delay-newmail tb-extra-mailbox-sep
mail_plugins = quota imap_quota
}
protocol lmtp {
mail_plugins = quota sieve
}