<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body><div>The command you are looking for is doveadm import</div><div><br></div><div id="composer_signature"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">---<div>Aki Tuomi</div><div>Dovecot oy</div></div><div><br></div><div style="font-size:100%;color:#000000"><!-- originalMessage --><div>-------- Original message --------</div><div>From: Carsten Schmitz <carsten.schmitz@limesurvey.org> </div><div>Date: 23/04/2018 15:46 (GMT+02:00) </div><div>To: dovecot@dovecot.org </div><div>Subject: Merging mailboxes with doveadm </div><div><br></div></div>
<p>Hello,</p>
<p>I am trying to merge(=copy) all mails of all user mailboxes into
one mailbox for one-time archival purposes.</p>
<p>The command I am using is</p>
<p> sudo doveadm -v copy -A <a class="moz-txt-link-abbreviated" href="mailto:archive@somedomain.net">archive@somedomain.net</a> ALL</p>
<p><br>
</p>
<p>The error I get for every mailbox is:<br>
</p>
<p>doveadm(<a class="moz-txt-link-abbreviated" href="mailto:someuser1@somedomain.net">someuser1@somedomain.net</a>): Error: Can't open mailbox
'<a class="moz-txt-link-abbreviated" href="mailto:a@somedomain.net">a@somedomain.net</a>': Mailbox doesn't exist: <a class="moz-txt-link-abbreviated" href="mailto:archive@somedomain.net">archive@somedomain.net</a></p>
<p>doveadm(<a class="moz-txt-link-abbreviated" href="mailto:someuser2@somedomain.net">someuser2@somedomain.net</a>): Error: Can't open mailbox
'<a class="moz-txt-link-abbreviated" href="mailto:a@somedomain.net">a@somedomain.net</a>': Mailbox doesn't exist: <a class="moz-txt-link-abbreviated" href="mailto:archive@somedomain.net">archive@somedomain.net</a></p>
<p>[etc...]<br>
</p>
<p>I don't exactly understand why. I think I am don't understand the
'destination' parameter correctly, so somebody can enlighten me,
please?</p>
<p>Thank you</p>
<p><br>
</p>
<p>Carsten<br>
</p>
<p><br>
</p>
<p><br>
</p>
</body></html>