Hi,
if i delete the home directory and all content below an existing account user@example.org. Then run:
/usr/bin/doveadm quota recalc -u user@example.org
and afterwards:
/usr/bin/doveadm -o imapc_user=user@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 user@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(user@example.org): Debug: auth input: user@example.org home=/mail/dovecot/example.org/user uid=501 gid=123 quota_rule=*:bytes=2000M:messages=0 doveadm(user@example.org): Debug: Added userdb setting: plugin/quota_rule=*:bytes=2000M:messages=0 doveadm(user@example.org): Debug: Effective uid=501, gid=123, home=/mail/dovecot/example.org/user doveadm(user@example.org): Debug: Quota root: name=User quota backend=dict args=:proxy::quota doveadm(user@example.org): Debug: Quota rule: root=User quota mailbox=* bytes=2097152000 messages=0 doveadm(user@example.org): Debug: Quota rule: root=User quota mailbox=Trash bytes=+104857600 messages=0 doveadm(user@example.org): Debug: Quota warning: bytes=1992294400 (95%) messages=0 reverse=no command=quota-warning 95 user@example.org doveadm(user@example.org): Debug: Quota warning: bytes=1677721600 (80%) messages=0 reverse=no command=quota-warning 80 user@example.org doveadm(user@example.org): Debug: dict quota: user=user@example.org, uri=proxy::quota, noenforcing=0 doveadm(user@example.org): Debug: fs: root=/mail/dovecot/example.org/user/mail, index=, control=, inbox=, alt= doveadm(user@example.org): Debug: Namespace : Using permissions from /mail/dovecot/example.org/user/mail: mode=0700 gid=-1 dsync(user@example.org): Debug: Effective uid=501, gid=123, home=/mail/dovecot/example.org/user dsync(user@example.org): Debug: Quota root: name=User quota backend=dict args=:proxy::quota dsync(user@example.org): Debug: Quota rule: root=User quota mailbox=* bytes=2097152000 messages=0 dsync(user@example.org): Debug: Quota rule: root=User quota mailbox=Trash bytes=+104857600 messages=0 dsync(user@example.org): Debug: Quota warning: bytes=1992294400 (95%) messages=0 reverse=no command=quota-warning 95 user@example.org dsync(user@example.org): Debug: Quota warning: bytes=1677721600 (80%) messages=0 reverse=no command=quota-warning 80 user@example.org dsync(user@example.org): Debug: dict quota: user=user@example.org, uri=proxy::quota, noenforcing=0 dsync(user@example.org): Debug: imapc: root=, index=, control=, inbox=, alt= dsync(user@example.org): Debug: imapc(local-mailbox:18143): Looking up IP address dsync(user@example.org): Debug: imapc(local-mailbox:18143): Connecting to 10.129.3.196:18143 dsync(user@example.org): Debug: imapc(local-mailbox:18143): Server capabilities: IMAP4 IMAP4rev1 AUTH=LOGIN ACL NAMESPACE CHILDREN SORT QUOTA THREAD=ORDEREDSUBJECT UNSELECT IDLE dsync(user@example.org): Debug: imapc(local-mailbox:18143): Authenticating as user@example.org dsync(user@example.org): Debug: imapc(local-mailbox:18143): Authenticated successfully dsync(user@example.org): Error: Can't delete mailbox INBOX: INBOX can't be deleted. dsync(user@example.org): Debug: Namespace : /mail/dovecot/example.org/user/mail/mailboxes/Trash doesn't exist yet, using default permissions dsync(user@example.org): Debug: Namespace : Using permissions from /mail/dovecot/example.org/user/mail: mode=0700 gid=-1 dsync(user@example.org): Debug: Namespace : /mail/dovecot/example.org/user/mail/mailboxes/Sent doesn't exist yet, using default permissions dsync(user@example.org): Debug: Namespace : Using permissions from /mail/dovecot/example.org/user/mail: mode=0700 gid=-1 dsync(user@example.org): Info: INBOX: only in dest (guid=54c23c119d04eb4f005100004f99b03d) dsync(user@example.org): Info: Trash: only in source (guid=7f5af7ba291b2df1a11d573bdb55d7e9) dsync(user@example.org): Info: Sent: only in source (guid=bfb2e03fdce327671e82bf173b1ccb8b) dsync(user@example.org): Info: INBOX: only in source (guid=c92f64f79f0d1ed01e6d5b314f04886c) dsync(user@example.org): Error: Trying to open a non-listed mailbox with guid=54c23c119d04eb4f005100004f99b03d dsync(user@example.org): Error: msg iteration failed: Couldn't open mailbox 54c23c119d04eb4f005100004f99b03d dsync(user@example.org): Error: Trying to open a non-listed mailbox with guid=54c23c119d04eb4f005100004f99b03d dsync(user@example.org): Error: Mailbox INBOX changed its GUID (c92f64f79f0d1ed01e6d5b314f04886c -> 54c23c119d04eb4f005100004f99b03d) dsync(user@example.org): Error: msg iteration failed: Couldn't open mailbox c92f64f79f0d1ed01e6d5b314f04886c dsync(user@example.org): Error: Mailbox INBOX changed its GUID (c92f64f79f0d1ed01e6d5b314f04886c -> 54c23c119d04eb4f005100004f99b03d) dsync(user@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