<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div style="font-family:Arial;">We don't use shared mailboxes or non-user sieve at all at FastMail, so it gets less testing than most things. I'd love to have contributions of good test cases to Cassandane from someone who knows exactly how this should work so we can make sieve good for the shared case too.<br></div>
<div style="font-family:Arial;"> </div>
<div style="font-family:Arial;">It's somewhat tricky now that FastMail is sponsoring the bulk of Cyrus work, obviously the stuff we use gets the most love!<br></div>
<div style="font-family:Arial;"> </div>
<div style="font-family:Arial;">Cheers,</div>
<div style="font-family:Arial;"> </div>
<div style="font-family:Arial;">Bron.</div>
<div> </div>
<div> </div>
<div>On Fri, Mar 18, 2016, at 23:30, Alvin Starr via Info-cyrus wrote:<br></div>
<blockquote type="cite"><div style="font-family:Arial;">I have had mixed luck with direct mailbox delivery(+ addressing) and
    when I say mixed I mean mostly bad.<br></div>
<div style="font-family:Arial;">
    I wanted to try using it for direct delivery of copies of all sent
    messages.<br></div>
<div style="font-family:Arial;">
    I found I needed special permissions on all the mailboxes and
    duplicate delivery detection would not work in that configuration.<br></div>
<div style="font-family:Arial;">
    So I dropped it.<br></div>
<div style="font-family:Arial;"> </div>
<div style="font-family:Arial;">
    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></div>
<div style="font-family:Arial;"> </div>
<div style="font-family:Arial;"> </div>
<div style="font-family:Arial;"> </div>
<div style="font-family:Arial;"> </div>
<div>On 03/18/2016 07:35 AM, Merlin Hartley
      wrote:<br></div>
<blockquote type="cite" cite="mid:425FF821-CBB2-4886-9516-E7ADAF686C12@mrc-mbu.cam.ac.uk"><div style="font-family:Arial;">Sorry I wasn’t clear: we are using an alias with +plus addressing
      and lmtp to deliver into the shared mailbox
      <br></div>
<div>I have the shared mailbox working just fine… it is
        only the sieve on shared mailboxes that is failing...<br></div>
<div> </div>
<div> </div>
<div><div>aliases file:<br></div>
<div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;"><span class="colour" style="color:rgb(52, 187, 199)">mbujobs</span><span class="colour" style="color:rgb(213, 59, 211)">:</span> <span class="colour" style="color:rgb(195, 55, 32)">+shared</span>/mbujobs<br></div>
</div>
</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;"> </div>
<div>exim router:<br></div>
<div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;color:rgb(52, 187, 199);">imap_shared_accept:<br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;">  <span class="colour" style="color:rgb(52, 189, 38)">driver</span> = accept<br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;">  <span class="colour" style="color:rgb(52, 189, 38)">local_parts</span> = ^<span class="colour" style="color:rgb(213, 59, 211)">\\</span>+[^/]+/.+<br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;">  <span class="colour" style="color:rgb(52, 189, 38)">transport</span> = local_delivery_<span class="highlight" style="background-color:rgb(153, 153, 0)">cyrus</span><br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;">  cannot_route_message = Unknown
          <span class="colour" style="color:rgb(52, 189, 38)">user</span><br></div>
<div> </div>
<div>exit transport:<br></div>
<div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;color:rgb(52, 187, 199);">local_delivery_<span class="highlight" style="background-color:rgb(153, 153, 0)"><span class="colour" style="color:rgb(0, 0, 0)">cyrus</span></span>:<br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;color:rgb(52, 189, 38);"><span class="colour" style="color:rgb(0, 0, 0)">  </span>driver<span class="colour" style="color:rgb(0, 0, 0)"> = </span><span class="colour" style="color:rgb(195, 55, 32)">lmtp</span><br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;color:rgb(83, 48, 225);"> 
            socket = /var/lib/imap/socket/<span class="colour" style="color:rgb(195, 55, 32)">lmtp</span><br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;color:rgb(52, 189, 38);"><span class="colour" style="color:rgb(0, 0, 0)">  </span>batch_max<span class="colour" style="color:rgb(0, 0, 0)"> = </span><span class="colour" style="color:rgb(195, 55, 32)">20</span><br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;">  <span class="colour" style="color:rgb(52, 189, 38)">user</span> = <span class="highlight" style="background-color:rgb(153, 153, 0)">cyrus</span><br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;">  <span class="colour" style="color:rgb(52, 189, 38)">group</span> = mail<br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;">  <span class="colour" style="color:rgb(52, 189, 38)">transport_filter</span> = /usr/bin/tr -d
            <span class="colour" style="color:rgb(213, 59, 211)">\\</span><span class="colour" style="color:rgb(195, 55, 32)">000</span><br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;color:rgb(52, 189, 38);"><span class="colour" style="color:rgb(0, 0, 0)">  </span>delivery_date_add<br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;color:rgb(52, 189, 38);"><span class="colour" style="color:rgb(0, 0, 0)">  </span>envelope_to_add<br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;color:rgb(52, 189, 38);"><span class="colour" style="color:rgb(0, 0, 0)">  </span>return_path_add<br></div>
</div>
<div><div style="font-family:Arial;"> </div>
<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-line-break:after-white-space;"><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-line-break:after-white-space;"><div style="font-family:Arial;">--<br></div>
<div style="font-family:Arial;">
                Merlin Hartley<br></div>
<div style="font-family:Arial;">
                IT Systems Engineer<br></div>
<div style="font-family:Arial;">
                MRC Mitochondrial Biology Unit<br></div>
</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-line-break:after-white-space;">Cambridge,
                CB2 0XY<br></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-line-break:after-white-space;">United
                Kingdom<br></div>
</div>
</div>
<div style="font-family:Arial;"> </div>
<div style=""><blockquote type="cite"><div>On 18 Mar 2016, at 11:29, Alvin Starr via
                Info-cyrus <<a href="mailto:info-cyrus@lists.andrew.cmu.edu">info-cyrus@lists.andrew.cmu.edu</a>>
                wrote:<br></div>
<div style="font-family:Arial;"> </div>
<div><div bgcolor="#FFFFFF"><div style="font-family:Arial;">Sieve is
                  run as part of the mail delivery into the mailbox.<br></div>
<div style="font-family:Arial;">
                  That would either be deliver or the lmtp interface.<br></div>
<div style="font-family:Arial;"> </div>
<div style="font-family:Arial;">
                  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></div>
<div style="font-family:Arial;"> </div>
<div style="font-family:Arial;"> </div>
<div style="font-family:Arial;"> </div>
<div>On 03/18/2016 06:48 AM,
                    Merlin Hartley via Info-cyrus wrote:<br></div>
<blockquote type="cite" cite="mid:CC0CAD0F-8365-437E-AD84-5AAC1CEDBE2A@mrc-mbu.cam.ac.uk"><div style="font-family:Arial;">Greetings
                    <br></div>
<div> </div>
<div>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.<br></div>
<div> </div>
<div>Of course, over-time more complexity
                      is always required and I have recently implemented
                      a few shared mailboxes (rather than just sharing
                      user mailboxes).<br></div>
<div>Inevitably, the users are now asking
                      for an auto-reply to be configured for some of
                      these shared mailboxes…<br></div>
<div> </div>
<div>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...<br></div>
<div> </div>
<div>I have followed the instructions on
                      this page:<br></div>
<div><a href="https://cyrusimap.org/imap/admin/sieve.html?highlight=sieve#managing-sieve-scripts">https://cyrusimap.org/imap/admin/sieve.html?highlight=sieve#managing-sieve-scripts</a><br></div>
<div> </div>
<div>But the last step doesn’t seem to do
                      anything…<br></div>
<div> </div>
<div>So I have a few related questions:<br></div>
<div> </div>
<div>1) how can I query a mailbox to read
                      the flags set by mboxconfig?<br></div>
<div>2) has anyone got sieve working with
                      shared mailboxes?<br></div>
<div>3) is it possible to invoke a
                      sieveshell in the context of a shared mailbox?<br></div>
<div> </div>
<div>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.<br></div>
<div> </div>
<div>Many thanks!<br></div>
<div> </div>
<div> </div>
<div>Merlin<br></div>
<div> </div>
<div> </div>
<div>P.S. Here is some relevant server
                      info:<br></div>
<div> </div>
<div><div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;">[root@mercury merlin]# sieveshell -u
                          cyrus -a cyrus localhost<br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;">connecting to localhost<br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;">Please enter your password: <br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;">> list<br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;">mbu_jobs  <- active script<br></div>
</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;"> </div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:normal;">[root@mercury ~]# ls
                          /var/lib/imap/sieve/global/<br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:normal;"><span class="colour" style="color:rgb(52, 187, 199)"><b>defaultbc</b></span> 
                          mbu_jobs.bc  mu_jobs.script<br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:normal;"> </div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:normal;"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:normal;">[root@mercury ~]# cyrus-admin <br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:normal;">verify error:num=19:self signed
                            certificate in certificate chain<br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:normal;">localhost> mboxconfig
                            shared/mbujobs sieve mbu_jobs<br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:normal;">localhost> <br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:normal;"> </div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:normal;"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:normal;">[root@mercury ~]# yum
                              list cyrus-imapd<br></div>
</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:normal;"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:normal;">Installed Packages<br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:normal;">cyrus-imapd.x86_64      
                                                            2.5.0-4.9   
                                                               
                              @cyrus-imapd_2.5.x<br></div>
<div>(which is a Kolab repository I
                              installed onto my CentOS 6 server)<br></div>
</div>
</div>
</div>
</div>
<div> </div>
<div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;">[root@mercury ~]# uname -a<br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;">Linux <a href="http://mercury.mrc-mbu.cam.ac.uk/">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<br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:10px;line-height:normal;font-family:Menlo;"> </div>
<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-line-break:after-white-space;"><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-line-break:after-white-space;"><div style="font-family:Arial;">--<br></div>
<div style="font-family:Arial;">
                            Merlin Hartley<br></div>
<div style="font-family:Arial;">
                            IT Systems Engineer<br></div>
<div style="font-family:Arial;">
                            MRC Mitochondrial Biology Unit<br></div>
</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-line-break:after-white-space;">Cambridge, CB2 0XY<br></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-line-break:after-white-space;">United Kingdom<br></div>
</div>
</div>
<div style="font-family:Arial;"> </div>
</div>
<div style="font-family:Arial;"> </div>
<div style="font-family:Arial;"> </div>
<pre>----
Cyrus Home Page: <a href="http://www.cyrusimap.org/">http://www.cyrusimap.org/</a>
List Archives/Info: <a href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a>
To Unsubscribe:
<a href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a><br></pre></blockquote><div style="font-family:Arial;"> </div>
<pre>-- 
Alvin Starr                   ||   voice: (905)513-7688
Netvel Inc.                   ||   Cell:  (416)806-0133
<a href="mailto:alvin@netvel.net">alvin@netvel.net</a>||
<br></pre></div>
<div style="font-family:Arial;">----<br></div>
<div style="font-family:Arial;">
                Cyrus Home Page: <a href="http://www.cyrusimap.org/">http://www.cyrusimap.org/</a><br></div>
<div style="font-family:Arial;">
                List Archives/Info: <a href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a><br></div>
<div style="font-family:Arial;">
                To Unsubscribe:<br></div>
<div style="font-family:Arial;">
                <a href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a><br></div>
</div>
</blockquote></div>
<div style="font-family:Arial;"> </div>
</div>
</div>
</blockquote><div style="font-family:Arial;"> </div>
<pre>-- 
Alvin Starr                   ||   voice: (905)513-7688
Netvel Inc.                   ||   Cell:  (416)806-0133
<a href="mailto:alvin@netvel.net">alvin@netvel.net</a>||
<br></pre><div>----<br></div>
<div>Cyrus Home Page: <a href="http://www.cyrusimap.org/">http://www.cyrusimap.org/</a><br></div>
<div>List Archives/Info: <a href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a><br></div>
<div>To Unsubscribe:<br></div>
<div><a href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a><br></div>
</blockquote><div style="font-family:Arial;"> </div>
<div id="sig567075"><div class="signature">-- <br></div>
<div class="signature">  Bron Gondwana<br></div>
<div class="signature">  brong@fastmail.fm<br></div>
<div class="signature"> </div>
</div>
<div style="font-family:Arial;"> </div>
</body>
</html>