cyrus super user -- able to login in as any user with a superuser password

Nic Bernstein nic at onlight.com
Wed Jun 18 13:32:38 EDT 2014


On 06/18/2014 09:55 AM, mayak wrote
> hi all,
>
> thanks! the proxyservers option is working great -- with one login, i am able to use imapfilter to groom all account/folders of old messages ...
>
> cheers

Mayak,
If that is your purpose, you may be much better served by simply using
mailbox annotations and the built-in expiration system.

For example, a client of ours uses this script as a daily cronjob to
make sure the proper annotations are set on all desired mailboxes:

    #!/bin/sh
    #
    # set_cyrus_annotations.sh - Set the standard annotations for the Spam,
    #                            Trash and systems mailbvoxes so they expire
    #                            properly.
    #
    USER="cyradmin"
    PASS="password"
    HOST="localhost"

    cyradm -u $USER -w "$PASS" $HOST << _EOF_
    mboxcfg systems expire 60
    mboxcfg user.%.Spam expire 7
    mboxcfg user.%.Trash expire 2
    _EOF_

The normal expiration mechanisms (cyr_expire in cyrus.conf) of Cyrus
will then clean up those mailboxes on the desired schedule.  The biggest
advantage is that this all happens local to the server, without tying up
network resources with protocol discussions, local processing, etc.

Cheers,
    -nic

-- 
Nic Bernstein                             nic at onlight.com
Onlight, Inc.                             www.onlight.com
219 N. Milwaukee St., Suite 2a            v. 414.272.4477
Milwaukee, Wisconsin  53202

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20140618/511e1f4f/attachment.html 


More information about the Info-cyrus mailing list