<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    I have had mixed luck with direct mailbox delivery(+ addressing) and
    when I say mixed I mean mostly bad.<br>
    I wanted to try using it for direct delivery of copies of all sent
    messages.<br>
    I found I needed special permissions on all the mailboxes and
    duplicate delivery detection would not work in that configuration.<br>
    So I dropped it.<br>
    <br>
    My guess would be that you may need to setup a shared mailbox or
    group mail account that would process the mail into the shared
    mailbox and then you could use sieve.<br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 03/18/2016 07:35 AM, Merlin Hartley
      wrote:<br>
    </div>
    <blockquote
      cite="mid:425FF821-CBB2-4886-9516-E7ADAF686C12@mrc-mbu.cam.ac.uk"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      Sorry I wasn’t clear: we are using an alias with +plus addressing
      and lmtp to deliver into the shared mailbox
      <div class="">I have the shared mailbox working just fine… it is
        only the sieve on shared mailboxes that is failing...</div>
      <div class=""><br class="">
      </div>
      <div class=""><br class="">
      </div>
      <div class="">
        <div class="">aliases file:</div>
        <div class="">
          <div style="margin: 0px; font-size: 10px; line-height: normal;
            font-family: Menlo;" class=""><span style="color: rgb(52,
              187, 199);" class="">mbujobs</span><span style="color:
              rgb(213, 59, 211);" class="">:</span> <span style="color:
              rgb(195, 55, 32);" class="">+shared</span>/mbujobs</div>
        </div>
      </div>
      <div style="margin: 0px; font-size: 10px; line-height: normal;
        font-family: Menlo;" class=""><br class="">
      </div>
      <div class="">exim router:</div>
      <div class="">
        <div style="margin: 0px; font-size: 10px; line-height: normal;
          font-family: Menlo; color: rgb(52, 187, 199);" class="">imap_shared_accept:</div>
        <div style="margin: 0px; font-size: 10px; line-height: normal;
          font-family: Menlo;" class="">  <span
            style="font-variant-ligatures: no-common-ligatures; color:
            #34bd26" class="">driver</span> = accept</div>
        <div style="margin: 0px; font-size: 10px; line-height: normal;
          font-family: Menlo;" class="">  <span
            style="font-variant-ligatures: no-common-ligatures; color:
            #34bd26" class="">local_parts</span> = ^<span
            style="font-variant-ligatures: no-common-ligatures; color:
            #d53bd3" class="">\\</span>+[^/]+/.+</div>
        <div style="margin: 0px; font-size: 10px; line-height: normal;
          font-family: Menlo;" class="">  <span
            style="font-variant-ligatures: no-common-ligatures; color:
            #34bd26" class="">transport</span> = local_delivery_<span
            style="font-variant-ligatures: no-common-ligatures;
            background-color: #999900" class="">cyrus</span></div>
        <div style="margin: 0px; font-size: 10px; line-height: normal;
          font-family: Menlo;" class="">  cannot_route_message = Unknown
          <span style="font-variant-ligatures: no-common-ligatures;
            color: #34bd26" class="">user</span></div>
        <div class=""><br class="">
        </div>
        <div class="">exit transport:</div>
        <div class="">
          <div style="margin: 0px; font-size: 10px; line-height: normal;
            font-family: Menlo; color: rgb(52, 187, 199);" class="">local_delivery_<span
              style="font-variant-ligatures: no-common-ligatures; color:
              #000000; background-color: #999900" class="">cyrus</span>:</div>
          <div style="margin: 0px; font-size: 10px; line-height: normal;
            font-family: Menlo; color: rgb(52, 189, 38);" class=""><span
              style="font-variant-ligatures: no-common-ligatures; color:
              #000000" class="">  </span>driver<span
              style="font-variant-ligatures: no-common-ligatures; color:
              #000000" class=""> = </span><span
              style="font-variant-ligatures: no-common-ligatures; color:
              #c33720" class="">lmtp</span></div>
          <div style="margin: 0px; font-size: 10px; line-height: normal;
            font-family: Menlo; color: rgb(83, 48, 225);" class=""> 
            socket = /var/lib/imap/socket/<span style="color: rgb(195,
              55, 32);" class="">lmtp</span></div>
          <div style="margin: 0px; font-size: 10px; line-height: normal;
            font-family: Menlo; color: rgb(52, 189, 38);" class=""><span
              style="font-variant-ligatures: no-common-ligatures; color:
              #000000" class="">  </span>batch_max<span
              style="font-variant-ligatures: no-common-ligatures; color:
              #000000" class=""> = </span><span
              style="font-variant-ligatures: no-common-ligatures; color:
              #c33720" class="">20</span></div>
          <div style="margin: 0px; font-size: 10px; line-height: normal;
            font-family: Menlo;" class="">  <span
              style="font-variant-ligatures: no-common-ligatures; color:
              #34bd26" class="">user</span> = <span
              style="font-variant-ligatures: no-common-ligatures;
              background-color: #999900" class="">cyrus</span></div>
          <div style="margin: 0px; font-size: 10px; line-height: normal;
            font-family: Menlo;" class="">  <span
              style="font-variant-ligatures: no-common-ligatures; color:
              #34bd26" class="">group</span> = mail</div>
          <div style="margin: 0px; font-size: 10px; line-height: normal;
            font-family: Menlo;" class="">  <span
              style="font-variant-ligatures: no-common-ligatures; color:
              #34bd26" class="">transport_filter</span> = /usr/bin/tr -d
            <span style="font-variant-ligatures: no-common-ligatures;
              color: #d53bd3" class="">\\</span><span
              style="font-variant-ligatures: no-common-ligatures; color:
              #c33720" class="">000</span></div>
          <div style="margin: 0px; font-size: 10px; line-height: normal;
            font-family: Menlo; color: rgb(52, 189, 38);" class=""><span
              style="font-variant-ligatures: no-common-ligatures; color:
              #000000" class="">  </span>delivery_date_add</div>
          <div style="margin: 0px; font-size: 10px; line-height: normal;
            font-family: Menlo; color: rgb(52, 189, 38);" class=""><span
              style="font-variant-ligatures: no-common-ligatures; color:
              #000000" class="">  </span>envelope_to_add</div>
          <div style="margin: 0px; font-size: 10px; line-height: normal;
            font-family: Menlo; color: rgb(52, 189, 38);" class=""><span
              style="font-variant-ligatures: no-common-ligatures; color:
              #000000" class="">  </span>return_path_add</div>
        </div>
        <div class=""><br class="">
          <div class="">
            <div style="color: rgb(0, 0, 0); letter-spacing: normal;
              orphans: auto; text-align: start; text-indent: 0px;
              text-transform: none; white-space: normal; widows: auto;
              word-spacing: 0px; -webkit-text-stroke-width: 0px;
              word-wrap: break-word; -webkit-nbsp-mode: space;
              -webkit-line-break: after-white-space;" class="">
              <div style="color: rgb(0, 0, 0); letter-spacing: normal;
                orphans: auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;
                word-wrap: break-word; -webkit-nbsp-mode: space;
                -webkit-line-break: after-white-space;" class="">--<br
                  class="">
                Merlin Hartley<br class="">
                IT Systems Engineer<br class="">
                MRC Mitochondrial Biology Unit</div>
              <div style="color: rgb(0, 0, 0); letter-spacing: normal;
                orphans: auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;
                word-wrap: break-word; -webkit-nbsp-mode: space;
                -webkit-line-break: after-white-space;" class="">Cambridge,
                CB2 0XY</div>
              <div style="color: rgb(0, 0, 0); letter-spacing: normal;
                orphans: auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;
                word-wrap: break-word; -webkit-nbsp-mode: space;
                -webkit-line-break: after-white-space;" class="">United
                Kingdom</div>
            </div>
          </div>
          <br class="">
          <div style="">
            <blockquote type="cite" class="">
              <div class="">On 18 Mar 2016, at 11:29, Alvin Starr via
                Info-cyrus <<a moz-do-not-send="true"
                  href="mailto:info-cyrus@lists.andrew.cmu.edu" class="">info-cyrus@lists.andrew.cmu.edu</a>>
                wrote:</div>
              <br class="Apple-interchange-newline">
              <div class="">
                <meta content="text/html; charset=windows-1252"
                  http-equiv="Content-Type" class="">
                <div text="#000000" bgcolor="#FFFFFF" class=""> Sieve is
                  run as part of the mail delivery into the mailbox.<br
                    class="">
                  That would either be deliver or the lmtp interface.<br
                    class="">
                  <br class="">
                  If your users are dragging and dropping the messages
                  into the shared mailboxes then I don't believe that
                  you can have sieve run on the mbox to mbox transfer.<br
                    class="">
                  <br class="">
                  <br class="">
                  <div class="moz-cite-prefix">On 03/18/2016 06:48 AM,
                    Merlin Hartley via Info-cyrus wrote:<br class="">
                  </div>
                  <blockquote
                    cite="mid:CC0CAD0F-8365-437E-AD84-5AAC1CEDBE2A@mrc-mbu.cam.ac.uk"
                    type="cite" class="">
                    <meta http-equiv="Content-Type" content="text/html;
                      charset=windows-1252" class="">
                    Greetings
                    <div class=""><br class="">
                    </div>
                    <div class="">I have been managing our mail domain
                      on a cyrus-imap (&exim) server since 2005 and
                      it has always been great for our ~150 users.</div>
                    <div class=""><br class="">
                    </div>
                    <div class="">Of course, over-time more complexity
                      is always required and I have recently implemented
                      a few shared mailboxes (rather than just sharing
                      user mailboxes).</div>
                    <div class="">Inevitably, the users are now asking
                      for an auto-reply to be configured for some of
                      these shared mailboxes…</div>
                    <div class=""><br class="">
                    </div>
                    <div class="">We are already using sieve scripts
                      (managed with Roundcubemail talking through the
                      firewall to timsieved) so it seems natural to use
                      this technology here too...</div>
                    <div class=""><br class="">
                    </div>
                    <div class="">I have followed the instructions on
                      this page:</div>
                    <div class=""><a moz-do-not-send="true"
href="https://cyrusimap.org/imap/admin/sieve.html?highlight=sieve#managing-sieve-scripts"
                        class="">https://cyrusimap.org/imap/admin/sieve.html?highlight=sieve#managing-sieve-scripts</a></div>
                    <div class=""><br class="">
                    </div>
                    <div class="">But the last step doesn’t seem to do
                      anything…</div>
                    <div class=""><br class="">
                    </div>
                    <div class="">So I have a few related questions:</div>
                    <div class=""><br class="">
                    </div>
                    <div class="">1) how can I query a mailbox to read
                      the flags set by mboxconfig?</div>
                    <div class="">2) has anyone got sieve working with
                      shared mailboxes?</div>
                    <div class="">3) is it possible to invoke a
                      sieveshell in the context of a shared mailbox?</div>
                    <div class=""><br class="">
                    </div>
                    <div class="">I seem to have successfully created
                      the global scripts (a ‘global’ folder has appeared
                      in the sievedir) - just can’t seem to attach it to
                      a shared mailbox.</div>
                    <div class=""><br class="">
                    </div>
                    <div class="">Many thanks!</div>
                    <div class=""><br class="">
                    </div>
                    <div class=""><br class="">
                    </div>
                    <div class="">Merlin</div>
                    <div class=""><br class="">
                    </div>
                    <div class=""><br class="">
                    </div>
                    <div class="">P.S. Here is some relevant server
                      info:</div>
                    <div class=""><br class="">
                    </div>
                    <div class="">
                      <div class="">
                        <div class="" style="margin: 0px; font-size:
                          10px; line-height: normal; font-family:
                          Menlo;">[root@mercury merlin]# sieveshell -u
                          cyrus -a cyrus localhost</div>
                        <div class="" style="margin: 0px; font-size:
                          10px; line-height: normal; font-family:
                          Menlo;">connecting to localhost</div>
                        <div class="" style="margin: 0px; font-size:
                          10px; line-height: normal; font-family:
                          Menlo;">Please enter your password: </div>
                        <div class="" style="margin: 0px; font-size:
                          10px; line-height: normal; font-family:
                          Menlo;">> list</div>
                        <div class="" style="margin: 0px; font-size:
                          10px; line-height: normal; font-family:
                          Menlo;">mbu_jobs  <- active script</div>
                      </div>
                      <div class="" style="margin: 0px; font-size: 10px;
                        line-height: normal; font-family: Menlo;"><br
                          class="">
                      </div>
                      <div class="" style="margin: 0px; font-size: 10px;
                        line-height: normal; font-family: Menlo;">
                        <div class="" style="margin: 0px; line-height:
                          normal;">[root@mercury ~]# ls
                          /var/lib/imap/sieve/global/</div>
                        <div class="" style="margin: 0px; line-height:
                          normal;"><span class="" style="color: rgb(52,
                            187, 199);"><b class="">defaultbc</b></span> 
                          mbu_jobs.bc  mu_jobs.script</div>
                        <div class="" style="margin: 0px; line-height:
                          normal;"><br class="">
                        </div>
                        <div class="" style="margin: 0px; line-height:
                          normal;">
                          <div class="" style="margin: 0px; line-height:
                            normal;">[root@mercury ~]# cyrus-admin </div>
                          <div class="" style="margin: 0px; line-height:
                            normal;">verify error:num=19:self signed
                            certificate in certificate chain</div>
                          <div class="" style="margin: 0px; line-height:
                            normal;">localhost> mboxconfig
                            shared/mbujobs sieve mbu_jobs</div>
                          <div class="" style="margin: 0px; line-height:
                            normal;">localhost> </div>
                          <div class="" style="margin: 0px; line-height:
                            normal;"><br class="">
                          </div>
                          <div class="" style="margin: 0px; line-height:
                            normal;">
                            <div style="margin: 0px; line-height:
                              normal;" class="">[root@mercury ~]# yum
                              list cyrus-imapd</div>
                          </div>
                          <div class="" style="margin: 0px; line-height:
                            normal;">
                            <div style="margin: 0px; line-height:
                              normal;" class="">Installed Packages</div>
                            <div style="margin: 0px; line-height:
                              normal;" class="">cyrus-imapd.x86_64      
                                                            2.5.0-4.9   
                                                               
                              @cyrus-imapd_2.5.x</div>
                            <div class="">(which is a Kolab repository I
                              installed onto my CentOS 6 server)</div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <div class=""><br class="">
                    </div>
                    <div class="">
                      <div style="margin: 0px; font-size: 10px;
                        line-height: normal; font-family: Menlo;"
                        class="">[root@mercury ~]# uname -a</div>
                      <div style="margin: 0px; font-size: 10px;
                        line-height: normal; font-family: Menlo;"
                        class="">Linux <a moz-do-not-send="true"
                          href="http://mercury.mrc-mbu.cam.ac.uk/"
                          class="">mercury.mrc-mbu.cam.ac.uk</a>
                        2.6.32-573.18.1.el6.x86_64 #1 SMP Tue Feb 9
                        22:46:17 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux</div>
                      <div style="margin: 0px; font-size: 10px;
                        line-height: normal; font-family: Menlo;"
                        class=""><br class="">
                      </div>
                      <div class="">
                        <div style="letter-spacing: normal; orphans:
                          auto; text-align: start; text-indent: 0px;
                          text-transform: none; white-space: normal;
                          widows: auto; word-spacing: 0px;
                          -webkit-text-stroke-width: 0px; word-wrap:
                          break-word; -webkit-nbsp-mode: space;
                          -webkit-line-break: after-white-space;"
                          class="">
                          <div style="letter-spacing: normal; orphans:
                            auto; text-align: start; text-indent: 0px;
                            text-transform: none; white-space: normal;
                            widows: auto; word-spacing: 0px;
                            -webkit-text-stroke-width: 0px; word-wrap:
                            break-word; -webkit-nbsp-mode: space;
                            -webkit-line-break: after-white-space;"
                            class="">--<br class="">
                            Merlin Hartley<br class="">
                            IT Systems Engineer<br class="">
                            MRC Mitochondrial Biology Unit</div>
                          <div style="letter-spacing: normal; orphans:
                            auto; text-align: start; text-indent: 0px;
                            text-transform: none; white-space: normal;
                            widows: auto; word-spacing: 0px;
                            -webkit-text-stroke-width: 0px; word-wrap:
                            break-word; -webkit-nbsp-mode: space;
                            -webkit-line-break: after-white-space;"
                            class="">Cambridge, CB2 0XY</div>
                          <div style="letter-spacing: normal; orphans:
                            auto; text-align: start; text-indent: 0px;
                            text-transform: none; white-space: normal;
                            widows: auto; word-spacing: 0px;
                            -webkit-text-stroke-width: 0px; word-wrap:
                            break-word; -webkit-nbsp-mode: space;
                            -webkit-line-break: after-white-space;"
                            class="">United Kingdom</div>
                        </div>
                      </div>
                      <br class="">
                    </div>
                    <br class="">
                    <fieldset class="mimeAttachmentHeader"></fieldset>
                    <br class="">
                    <pre class="" wrap="">----
Cyrus Home Page: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.cyrusimap.org/">http://www.cyrusimap.org/</a>
List Archives/Info: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a>
To Unsubscribe:
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a></pre>
                  </blockquote>
                  <br class="">
                  <pre class="moz-signature" cols="72">-- 
Alvin Starr                   ||   voice: (905)513-7688
Netvel Inc.                   ||   Cell:  (416)806-0133
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:alvin@netvel.net">alvin@netvel.net</a>              ||
</pre>
                </div>
                ----<br class="">
                Cyrus Home Page: <a moz-do-not-send="true"
                  href="http://www.cyrusimap.org/" class="">http://www.cyrusimap.org/</a><br
                  class="">
                List Archives/Info: <a moz-do-not-send="true"
                  href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/"
                  class="">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a><br
                  class="">
                To Unsubscribe:<br class="">
                <a moz-do-not-send="true"
                  href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus"
                  class="">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a></div>
            </blockquote>
          </div>
          <br class="">
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Alvin Starr                   ||   voice: (905)513-7688
Netvel Inc.                   ||   Cell:  (416)806-0133
<a class="moz-txt-link-abbreviated" href="mailto:alvin@netvel.net">alvin@netvel.net</a>              ||
</pre>
  </body>
</html>