<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thanks Nic that looks useful<div class=""><br class=""></div><div class="">Unfortunately ‘info' doesn’t seem to function on our installation:<div class=""><br class=""><div class=""><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">localhost> lm shared/mbujobs</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">shared/mbujobs (\HasChildren) </span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">localhost> lam shared/mbujobs</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">jt lrswipkxtecda</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">merlin lrs</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">anonymous p</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">ij lrswipkxtecda</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">localhost> info shared/mbujobs</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">localhost> </span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">localhost> exit</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br 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" class=""><br class=""></span></div><div class="">Also doesn’t seem able to set or retrieve info from the server:</div><div class=""><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">localhost> setinfo comment MBU mail server</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">localhost> info</span></div></div><div class=""><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">localhost> </span></div></div><div class=""><br class="webkit-block-placeholder"></div><div class="">For clarity I was using the local ‘cyrus’ user who is listed as an admin in imapd.conf - I have also tried with ‘merlin’ (me) - no dice...</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">[root@mercury ~]# cyradm -U merlin localhost</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">verify error:num=19:self signed certificate in certificate chain</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">IMAP Password: </span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> localhost> lam user/merlin</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">merlin lrswipcda</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">localhost> lam shared/mbujobs</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">jt lrswipkxtecda</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">merlin lrswipkxtecda</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">anonymous p</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">ij lrswipkxtecda</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">cyrus lrswipkxtecda</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">localhost> mboxcfg shared/mbujobs sieve mbujobs</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">localhost> info shared/mbujobs</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">localhost> info</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">localhost> </span></div></div><div class=""><br class=""></div><div class=""><br class=""></div><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 class=""><blockquote type="cite" class=""><div class="">On 6 Apr 2016, at 12:41, Nic Bernstein <<a href="mailto:nic@onlight.com" class="">nic@onlight.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type" class="">
<div bgcolor="#FFFFFF" text="#000000" class="">
On 03/18/2016 05:48 AM, Merlin Hartley via Info-cyrus wrote:<br class="">
<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=ISO-8859-1" class="">
...</blockquote>
<blockquote cite="mid:CC0CAD0F-8365-437E-AD84-5AAC1CEDBE2A@mrc-mbu.cam.ac.uk" type="cite" 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 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>
</blockquote>
<br class="">
Use the 'info' command in cyradm, like so:<br class="">
<blockquote class="">
<pre class="">root@mail:~# /usr/lib/cyrus/bin/cyradm -U cyrus localhost
Password:
localhost> info tech.support
{tech.support}:
duplicatedeliver: false
lastpop:
lastupdate: 6-Apr-2016 04:01:01 -0500
partition: default
pop3newuidl: true
sharedseen: false
<b class=""> sieve: global</b>
size: 801640500
localhost> quit
</pre>
</blockquote>
Note the "sieve: global" line.<br class="">
<br class="">
<blockquote cite="mid:CC0CAD0F-8365-437E-AD84-5AAC1CEDBE2A@mrc-mbu.cam.ac.uk" type="cite" class="">
<div class="">2) has anyone got sieve working with shared
mailboxes?</div>
</blockquote>
<br class="">
Yes, happily and consistently, currently with 2.4.10, and up, on
various installations.<br class="">
<br class="">
<blockquote cite="mid:CC0CAD0F-8365-437E-AD84-5AAC1CEDBE2A@mrc-mbu.cam.ac.uk" type="cite" class="">
<div class="">3) is it possible to invoke a sieveshell in the
context of a shared mailbox?</div>
</blockquote>
<br class="">
"...context of a shared mailbox..." doesn't really mean anything
here. You must do it as a user who has access to the shared
mailbox, as the page on the website explains.<br class="">
<br class="">
<blockquote cite="mid:CC0CAD0F-8365-437E-AD84-5AAC1CEDBE2A@mrc-mbu.cam.ac.uk" type="cite" class="">
<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>
</blockquote>
<br class="">
Take a look at the output of the 'info' command in cyradm, and if it
doesn't make sense, please post again.<br class="">
<br class="">
In my experience, the most common cause of problems with sieve and
shared mailboxes is bad scripts.<br class="">
<br class="">
Cheers,<br class="">
-nic<br class="">
<pre class="moz-signature" cols="72">--
Nic Bernstein <a class="moz-txt-link-abbreviated" href="mailto:nic@onlight.com">nic@onlight.com</a>
Onlight Inc. <a class="moz-txt-link-abbreviated" href="http://www.onlight.com/">www.onlight.com</a>
6525 W Bluemound Rd., Ste 24 v. 414.272.4477
Milwaukee, Wisconsin 53213-4073 f. 414.290.0335
</pre>
</div>
</div></blockquote></div><br class=""></div></div></div></body></html>