<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>I already trued doveadm purge but with no luck. Also debug
parameter doesn't show any interesting output as you can see
below. It shows that it's moving about 70000 messages but in fact
it doesn't do anything. If I repeat the command the output is
still same. I just found that a few other people already explained
same problem, for example here:
<a class="moz-txt-link-freetext" href="https://dovecot.org/pipermail/dovecot/2021-February/121329.html">https://dovecot.org/pipermail/dovecot/2021-February/121329.html</a></p>
<p>Is there any chance to get it fixed in upstream?<br>
</p>
<pre>Apr 09 14:58:00 Debug: Loading modules from directory: /usr/lib/dovecot/modules
Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/lib01_acl_plugin.so
Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so
Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/lib20_fts_plugin.so
Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/lib20_zlib_plugin.so
Apr 09 14:58:00 Debug: Loading modules from directory: /usr/lib/dovecot/modules/doveadm
Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_acl_plugin.so
Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_quota_plugin.so
Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_sieve_plugin.so
Apr 09 14:58:00 Debug: Skipping module doveadm_fts_lucene_plugin, because dlopen() failed: /usr/lib/dovecot/modules/doveadm/lib20_doveadm_fts_lucene_plugin.so: undefined symbol: lucene_index_iter_deinit (this is usually intentional, so just ignore this message)
Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib20_doveadm_fts_plugin.so
Apr 09 14:58:00 Debug: Skipping module doveadm_mail_crypt_plugin, because dlopen() failed: /usr/lib/dovecot/modules/doveadm/libdoveadm_mail_crypt_plugin.so: undefined symbol: mail_crypt_box_get_pvt_digests (this is usually intentional, so just ignore this message)
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>)<27721><>: Debug: auth-master: userdb lookup(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Started userdb lookup
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>)<27721><>: Debug: auth-master: conn unix:/var/run/dovecot/auth-userdb: Connecting
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>)<27721><>: Debug: auth-master: conn unix:/var/run/dovecot/auth-userdb (pid=14462,uid=0): Client connected (fd=8)
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>)<27721><>: Debug: auth-master: userdb lookup(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): auth USER input: <a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a> quota_rule=*:bytes=20GB
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>)<27721><>: Debug: auth-master: userdb lookup(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Finished userdb lookup (<a class="moz-txt-link-abbreviated" href="mailto:username=myuser@mydomain.yyy">username=myuser@mydomain.yyy</a> quota_rule=*:bytes=20GB)
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>)<27721><>: Debug: Added userdb setting: plugin/quota_rule=*:bytes=20GB
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: Effective uid=2000, gid=2000, home=/var/vmail/mydomain.yyy.com/myuser
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: Quota root: name=User quota backend=dict args=:proxy::quota
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: Quota rule: root=User quota mailbox=* bytes=21474836480 messages=0
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: Quota rule: root=User quota mailbox=Trash ignored
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: Quota rule: root=User quota mailbox=Junk ignored
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: Quota warning: bytes=17179869184 (80%) messages=0 reverse=no command=quota-warning 90 <a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: Quota warning: bytes=18253611008 (85%) messages=0 reverse=no command=quota-warning 95 <a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: Quota warning: bytes=20401094656 (95%) messages=0 reverse=no command=quota-warning 105 <a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: Quota grace: root=User quota bytes=2147483648 (10%)
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: quota-dict: <a class="moz-txt-link-abbreviated" href="mailto:user=myuser@mydomain.yyy">user=myuser@mydomain.yyy</a>, uri=proxy::quota, noenforcing=0
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=mdbox:~/mdbox:ALT=/var/vmail-archive/mydomain.yyy.com/myuser/mdbox
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: fs: root=/var/vmail/mydomain.yyy.com/myuser/mdbox, index=, indexpvt=, control=, inbox=, alt=/var/vmail-archive/mydomain.yyy.com/myuser/mdbox
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: fts: No fts setting - plugin disabled
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: acl: initializing backend with data: vfile
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: acl: acl username = <a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: acl: owner = 1
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: acl vfile: Global ACLs disabled
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: Namespace : type=shared, prefix=shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=no location=mdbox:/var/vmail/%d/%n/mdbox:ALT=/var/vmail-archive/%d/%n/mdbox
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: shared: root=/var/run/dovecot, index=, indexpvt=, control=, inbox=, alt=
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: fts: No fts setting - plugin disabled
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: acl: initializing backend with data: vfile
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: acl: acl username = <a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: acl: owner = 0
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: acl vfile: Global ACLs disabled
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: quota: quota_over_flag check: quota_over_script unset - skipping
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: acl vfile: file /var/vmail/mydomain.yyy.com/myuser/mdbox/mailboxes/INBOX/dbox-Mails/dovecot-acl not found
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: acl vfile: file /var/vmail/mydomain.yyy.com/myuser/mdbox/mailboxes/dovecot-acl not found
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: acl vfile: file /var/vmail/mydomain.yyy.com/myuser/mdbox/mailboxes/Sent Items/dbox-Mails/dovecot-acl not found
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: Mailbox Sent Items: Mailbox opened because: altmove
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: altmove: box=Sent Items uid=4279
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: Namespace : Using permissions from /var/vmail/mydomain.yyy.com/myuser/mdbox: mode=0770 gid=default
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: altmove: box=Sent Items uid=4280
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: altmove: box=Sent Items uid=4281
Apr 09 14:58:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: altmove: box=Sent Items uid=4282
...
Apr 09 14:58:01 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: altmove: box=INBOX uid=165052
Apr 09 14:58:01 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: altmove: box=INBOX uid=165053
Apr 09 14:58:31 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: auth-master: conn unix:/var/run/dovecot/auth-userdb (pid=14462,uid=0): Disconnected: Connection closed (fd=8)
</pre>
<div class="moz-cite-prefix">On 4/9/21 2:40 PM, Aki Tuomi wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1899110216.12312.1617972022101@appsuite-dev-gw2.open-xchange.com">
<pre class="moz-quote-pre" wrap="">
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">On 09/04/2021 15:34 Zdeněk Zámečník <a class="moz-txt-link-rfc2396E" href="mailto:diego@dixy.cz"><diego@dixy.cz></a> wrote:
I am having troubles with moving emails from alternative storage to primary storage. If I call command like:
doveadm altmove -r -u <a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a> ALL
it is doing something (it took almost a minute at first time) but there are still emails in alternative storage. There is not reported any error. Below is my config:
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Try running
doveadm -D altmove -r -u <a class="moz-txt-link-abbreviated" href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a> ALL
maybe it sheds some light?
Also, try running doveadm purge after altmove.
Aki
</pre>
</blockquote>
</body>
</html>