<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi,</p>
    <p>you can do it via post-login script as explained in
      <a class="moz-txt-link-freetext" href="https://wiki.dovecot.org/Authentication/MasterUsers">https://wiki.dovecot.org/Authentication/MasterUsers</a></p>
    <p>I have a post login script similar to:</p>
    <p>#!/bin/bash<br>
      export USERNAME=${USER%@*}<br>
      export DOMAIN=${USER#*@}<br>
      exec "$@"<br>
    </p>
    <p>and works fine.</p>
    <p>Ciao<br>
    </p>
    <div class="moz-cite-prefix">Il 09/04/19 09:46, Ludwig Wieland via
      dovecot ha scritto:<br>
    </div>
    <blockquote type="cite"
      cite="mid:4EE5767E-3BDA-41E0-8A9B-89613CE93453@see.ch">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div class="">Thank you,</div>
      <div class=""><br class="">
      </div>
      <div class="">How and where ?</div>
      <div class=""><br class="">
      </div>
      <div class=""><br class="">
      </div>
      <div class="">I configured only this:</div>
      <div class="">
        <div style="margin: 0in; font-family: Courier; font-size:
          9.75pt; color: rgb(77, 47, 45);" class=""><span
            style="background:#DFDBC3" class="" lang="de">cat </span><span
            style="background-color: rgb(223, 219, 195); font-size:
            9.75pt;" class="">/Library/Server/Mail/Data/shared/</span><span
            style="font-size: 9.75pt; background-color: rgb(223, 219,
            195);" class="" lang="de">shared-mailboxes</span><span
            style="font-size: 9.75pt; background-color: rgb(223, 219,
            195);" class="" lang="de-CH"> </span></div>
        <div style="margin: 0in; font-family: Courier; font-size:
          9.75pt; color: rgb(77, 47, 45);" class=""><span
            style="background:#DFDBC3" class="">* user=masteruser lr</span></div>
        <!--EndFragment--></div>
      <div class=""><br class="">
      </div>
      <div class=""><br class="">
      </div>
      <div class="">masteruser is ok for all masters (mailmaster) ?</div>
      <div class=""><br class="">
      </div>
      <div class="">Luda</div>
      <br class="">
      <div>
        <blockquote type="cite" class="">
          <div class="">Am 09.04.2019 um 09:33 schrieb Aki Tuomi <<a
              href="mailto:aki.tuomi@open-xchange.com" class=""
              moz-do-not-send="true">aki.tuomi@open-xchange.com</a>>:</div>
          <br class="Apple-interchange-newline">
          <div class=""><span style="font-family: Helvetica; font-size:
              12px; font-style: normal; font-variant-caps: normal;
              font-weight: normal; letter-spacing: normal; text-align:
              start; text-indent: 0px; text-transform: none;
              white-space: normal; word-spacing: 0px;
              -webkit-text-stroke-width: 0px; float: none; display:
              inline !important;" class="">Hi!</span><br
              style="font-family: Helvetica; font-size: 12px;
              font-style: normal; font-variant-caps: normal;
              font-weight: normal; letter-spacing: normal; text-align:
              start; text-indent: 0px; text-transform: none;
              white-space: normal; word-spacing: 0px;
              -webkit-text-stroke-width: 0px;" class="">
            <br style="font-family: Helvetica; font-size: 12px;
              font-style: normal; font-variant-caps: normal;
              font-weight: normal; letter-spacing: normal; text-align:
              start; text-indent: 0px; text-transform: none;
              white-space: normal; word-spacing: 0px;
              -webkit-text-stroke-width: 0px;" class="">
            <span style="font-family: Helvetica; font-size: 12px;
              font-style: normal; font-variant-caps: normal;
              font-weight: normal; letter-spacing: normal; text-align:
              start; text-indent: 0px; text-transform: none;
              white-space: normal; word-spacing: 0px;
              -webkit-text-stroke-width: 0px; float: none; display:
              inline !important;" class="">You need to grant the master
              user rights in your ACL file.</span><br
              style="font-family: Helvetica; font-size: 12px;
              font-style: normal; font-variant-caps: normal;
              font-weight: normal; letter-spacing: normal; text-align:
              start; text-indent: 0px; text-transform: none;
              white-space: normal; word-spacing: 0px;
              -webkit-text-stroke-width: 0px;" class="">
            <br style="font-family: Helvetica; font-size: 12px;
              font-style: normal; font-variant-caps: normal;
              font-weight: normal; letter-spacing: normal; text-align:
              start; text-indent: 0px; text-transform: none;
              white-space: normal; word-spacing: 0px;
              -webkit-text-stroke-width: 0px;" class="">
            <span style="font-family: Helvetica; font-size: 12px;
              font-style: normal; font-variant-caps: normal;
              font-weight: normal; letter-spacing: normal; text-align:
              start; text-indent: 0px; text-transform: none;
              white-space: normal; word-spacing: 0px;
              -webkit-text-stroke-width: 0px; float: none; display:
              inline !important;" class="">Aki</span></div>
        </blockquote>
      </div>
      <br class="">
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Alessio Cecchi
Postmaster @ <a class="moz-txt-link-freetext" href="http://www.qboxmail.it">http://www.qboxmail.it</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/alessice">https://www.linkedin.com/in/alessice</a></pre>
  </body>
</html>