<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hello Aki,<br>
      <br>
      yes, that's it - thank you.<br>
      For reference this works:<br>
      <br>
      sudo doveadm import -u <a class="moz-txt-link-abbreviated" href="mailto:destination@company.net">destination@company.net</a>
      maildir:/var/vmail/company.net/some.name/Maildir  some_name ALL<br>
      <br>
      Thanks again<br>
      <br>
      Carsten<br>
      <br>
      On 23.04.2018 15:06, Aki Tuomi wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:20180423130624.F190453E4AC5@limesurvey-3.limesurvey.org">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <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
          <a class="moz-txt-link-rfc2396E" href="mailto:carsten.schmitz@limesurvey.org"><carsten.schmitz@limesurvey.org></a> </div>
        <div>Date: 23/04/2018 15:46 (GMT+02:00) </div>
        <div>To: <a class="moz-txt-link-abbreviated" href="mailto:dovecot@dovecot.org">dovecot@dovecot.org</a> </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" moz-do-not-send="true">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" moz-do-not-send="true">someuser1@somedomain.net</a>):
        Error: Can't open mailbox '<a class="moz-txt-link-abbreviated"
          href="mailto:a@somedomain.net" moz-do-not-send="true">a@somedomain.net</a>':
        Mailbox doesn't exist: <a class="moz-txt-link-abbreviated"
          href="mailto:archive@somedomain.net" moz-do-not-send="true">archive@somedomain.net</a></p>
      <p>doveadm(<a class="moz-txt-link-abbreviated"
          href="mailto:someuser2@somedomain.net" moz-do-not-send="true">someuser2@somedomain.net</a>):
        Error: Can't open mailbox '<a class="moz-txt-link-abbreviated"
          href="mailto:a@somedomain.net" moz-do-not-send="true">a@somedomain.net</a>':
        Mailbox doesn't exist: <a class="moz-txt-link-abbreviated"
          href="mailto:archive@somedomain.net" moz-do-not-send="true">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>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>