Sieve for shared mailboxes

Merlin Hartley merlin at mrc-mbu.cam.ac.uk
Wed Apr 6 09:22:15 EDT 2016


Thanks Nic that looks useful

Unfortunately ‘info' doesn’t seem to function on our installation:

localhost> lm shared/mbujobs
shared/mbujobs (\HasChildren)  
localhost> lam shared/mbujobs
jt lrswipkxtecda
merlin lrs
anonymous p
ij lrswipkxtecda
localhost> info shared/mbujobs
localhost> 
localhost> exit


Also doesn’t seem able to set or retrieve info from the server:
localhost> setinfo comment MBU mail server
localhost> info
localhost> 

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...

[root at mercury ~]# cyradm -U merlin localhost
verify error:num=19:self signed certificate in certificate chain
IMAP Password: 
              localhost> lam user/merlin
merlin lrswipcda
localhost> lam shared/mbujobs
jt lrswipkxtecda
merlin lrswipkxtecda
anonymous p
ij lrswipkxtecda
cyrus lrswipkxtecda
localhost> mboxcfg shared/mbujobs sieve mbujobs
localhost> info shared/mbujobs
localhost> info
localhost> 


--
Merlin Hartley
IT Systems Engineer
MRC Mitochondrial Biology Unit
Cambridge, CB2 0XY
United Kingdom

> On 6 Apr 2016, at 12:41, Nic Bernstein <nic at onlight.com <mailto:nic at onlight.com>> wrote:
> 
> On 03/18/2016 05:48 AM, Merlin Hartley via Info-cyrus wrote:
>> ...
>> Of course, over-time more complexity is always required and I have recently implemented a few shared mailboxes (rather than just sharing user mailboxes).
>> Inevitably, the users are now asking for an auto-reply to be configured for some of these shared mailboxes…
>> 
>> 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...
>> 
>> I have followed the instructions on this page:
>> https://cyrusimap.org/imap/admin/sieve.html?highlight=sieve#managing-sieve-scripts <https://cyrusimap.org/imap/admin/sieve.html?highlight=sieve#managing-sieve-scripts>
>> 
>> But the last step doesn’t seem to do anything…
>> 
>> So I have a few related questions:
>> 
>> 1) how can I query a mailbox to read the flags set by mboxconfig?
> 
> Use the 'info' command in cyradm, like so:
> root at 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
>   sieve: global
>   size: 801640500
> 
> localhost> quit
> Note the "sieve: global" line.
> 
>> 2) has anyone got sieve working with shared mailboxes?
> 
> Yes, happily and consistently, currently with 2.4.10, and up, on various installations.
> 
>> 3) is it possible to invoke a sieveshell in the context of a shared mailbox?
> 
> "...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.
> 
>> 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.
> 
> Take a look at the output of the 'info' command in cyradm, and if it doesn't make sense, please post again.
> 
> In my experience, the most common cause of problems with sieve and shared mailboxes is bad scripts.
> 
> Cheers,
>     -nic
> -- 
> Nic Bernstein                             nic at onlight.com <mailto:nic at onlight.com>
> Onlight Inc.                              www.onlight.com <http://www.onlight.com/>
> 6525 W Bluemound Rd., Ste 24	          v. 414.272.4477
> Milwaukee, Wisconsin  53213-4073	  f. 414.290.0335

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20160406/c10dbebb/attachment-0001.html>


More information about the Info-cyrus mailing list