<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML con formato previo Car";
        margin:0cm;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLconformatoprevioCar
        {mso-style-name:"HTML con formato previo Car";
        mso-style-priority:99;
        mso-style-link:"HTML con formato previo";
        font-family:"Consolas",serif;}
span.EstiloCorreo21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="ES" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Same here.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">doveadm altmove -r is broken, needs to be fixed. We want to recompres our ALT mdbox storage from LZMA to ZSTD and we can not do it because doveadm altmove -r does not work.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Regards <o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>De:</b> dovecot <dovecot-bounces@dovecot.org> <b>En nombre de
</b>Zdenek Zámecník<br>
<b>Enviado el:</b> viernes, 9 de abril de 2021 15:12<br>
<b>Para:</b> Aki Tuomi <aki.tuomi@open-xchange.com>; Dovecot Mailing List <dovecot@dovecot.org><br>
<b>Asunto:</b> Re: altmove reverse doesn't work<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<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 href="https://dovecot.org/pipermail/dovecot/2021-February/121329.html">https://dovecot.org/pipermail/dovecot/2021-February/121329.html</a><o:p></o:p></p>
<p>Is there any chance to get it fixed in upstream?<o:p></o:p></p>
<pre>Apr 09 14:58:00 Debug: Loading modules from directory: /usr/lib/dovecot/modules<o:p></o:p></pre>
<pre>Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/lib01_acl_plugin.so<o:p></o:p></pre>
<pre>Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so<o:p></o:p></pre>
<pre>Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/lib20_fts_plugin.so<o:p></o:p></pre>
<pre>Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/lib20_zlib_plugin.so<o:p></o:p></pre>
<pre>Apr 09 14:58:00 Debug: Loading modules from directory: /usr/lib/dovecot/modules/doveadm<o:p></o:p></pre>
<pre>Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_acl_plugin.so<o:p></o:p></pre>
<pre>Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_quota_plugin.so<o:p></o:p></pre>
<pre>Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_sieve_plugin.so<o:p></o:p></pre>
<pre>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)<o:p></o:p></pre>
<pre>Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib20_doveadm_fts_plugin.so<o:p></o:p></pre>
<pre>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)<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>)<27721><>: Debug: auth-master: userdb lookup(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Started userdb lookup<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>)<27721><>: Debug: auth-master: conn unix:/var/run/dovecot/auth-userdb: Connecting<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a 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)<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>)<27721><>: Debug: auth-master: userdb lookup(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): auth USER input: <a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a> quota_rule=*:bytes=20GB<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>)<27721><>: Debug: auth-master: userdb lookup(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Finished userdb lookup (<a href="mailto:username=myuser@mydomain.yyy">username=myuser@mydomain.yyy</a> quota_rule=*:bytes=20GB)<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>)<27721><>: Debug: Added userdb setting: plugin/quota_rule=*:bytes=20GB<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: Effective uid=2000, gid=2000, home=/var/vmail/mydomain.yyy.com/myuser<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: Quota root: name=User quota backend=dict args=:proxy::quota<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: Quota rule: root=User quota mailbox=* bytes=21474836480 messages=0<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: Quota rule: root=User quota mailbox=Trash ignored<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: Quota rule: root=User quota mailbox=Junk ignored<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: Quota warning: bytes=17179869184 (80%) messages=0 reverse=no command=quota-warning 90 <a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a><o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: Quota warning: bytes=18253611008 (85%) messages=0 reverse=no command=quota-warning 95 <a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a><o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: Quota warning: bytes=20401094656 (95%) messages=0 reverse=no command=quota-warning 105 <a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a><o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: Quota grace: root=User quota bytes=2147483648 (10%)<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: quota-dict: <a href="mailto:user=myuser@mydomain.yyy">user=myuser@mydomain.yyy</a>, uri=proxy::quota, noenforcing=0<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a 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<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a 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<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: fts: No fts setting - plugin disabled<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: acl: initializing backend with data: vfile<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: acl: acl username = <a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a><o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: acl: owner = 1<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: acl vfile: Global ACLs disabled<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a 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<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: shared: root=/var/run/dovecot, index=, indexpvt=, control=, inbox=, alt=<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: fts: No fts setting - plugin disabled<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: acl: initializing backend with data: vfile<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: acl: acl username = <a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a><o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: acl: owner = 0<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: acl vfile: Global ACLs disabled<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: quota: quota_over_flag check: quota_over_script unset - skipping<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a 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<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a 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<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a 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<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: Mailbox Sent Items: Mailbox opened because: altmove<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: altmove: box=Sent Items uid=4279<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a 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<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: altmove: box=Sent Items uid=4280<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: altmove: box=Sent Items uid=4281<o:p></o:p></pre>
<pre>Apr 09 14:58:00 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: altmove: box=Sent Items uid=4282<o:p></o:p></pre>
<pre>...<o:p></o:p></pre>
<pre>Apr 09 14:58:01 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: altmove: box=INBOX uid=165052<o:p></o:p></pre>
<pre>Apr 09 14:58:01 doveadm(<a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a>): Debug: altmove: box=INBOX uid=165053<o:p></o:p></pre>
<pre>Apr 09 14:58:31 doveadm(<a 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)<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> <o:p></o:p></pre>
<div>
<p class="MsoNormal">On 4/9/21 2:40 PM, Aki Tuomi wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre><o:p> </o:p></pre>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>On 09/04/2021 15:34 Zdeněk Zámečník <a href="mailto:diego@dixy.cz"><diego@dixy.cz></a> wrote:<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>I am having troubles with moving emails from alternative storage to primary storage. If I call command like:<o:p></o:p></pre>
<pre>doveadm altmove -r -u <a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a> ALL<o:p></o:p></pre>
<pre>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: <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
</blockquote>
<pre><o:p> </o:p></pre>
<pre>Try running<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>doveadm -D altmove -r -u <a href="mailto:myuser@mydomain.yyy">myuser@mydomain.yyy</a> ALL<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>maybe it sheds some light?<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Also, try running doveadm purge after altmove.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Aki<o:p></o:p></pre>
</blockquote>
</div>
</body>
</html>