A quick Cyrus account management tutorial:

NOTE THAT I'M USING unixhierarchysep (see /etc/imapd.conf for more info). If you're not, you should replace '/' with '.' below.


Create a mailbox in the default partition:

____SNIP____
cm user/spamfoo
____SNIP____


Create a mailbox in the 'alpha' partition:

____SNIP____
cm user/spamfoo alpha
____SNIP____


Delete a mailbox:

____SNIP____
dm user/spamfoo
____SNIP____


Give the cyrus (admin) user perms to change a folder (and all
subfolders)...including deletion rights:

____SNIP____
sam user/spamfoo cyrus lrswipcda
____SNIP____

or (a quicker way)

____SNIP____
sam user/spamfoo cyrus all
____SNIP____




List the ACL's for a mailbox:

____SNIP____
lam user/spamfoo
spamfoo lrswipcda
cyrus lrswipcda
____SNIP____


Give a user a 10MB quota:

____SNIP____
sq user/spamfoo (STORAGE 10000)
quota:10000
____SNIP____


List a user's quota:

____SNIP____
lq user/spamfoo
 STORAGE 0/10000 (0%)
____SNIP____

And these are the raw imap commands:

Create a mailbox in the default partition:

____SNIP____
CREATE user/spamfoo
____SNIP____


Create a mailbox in the 'alpha' partition:

____SNIP____
CREATE user/spamfoo alpha
____SNIP____


Delete a mailbox:

____SNIP____
DELETE user/spamfoo
____SNIP____


Give the cyrus (admin) user perms to change a folder (and all
subfolders)...including deletion rights:

____SNIP____
SETACL user/spamfoo cyrus lrswipcda
____SNIP____


List the ACL's for a mailbox:

____SNIP____
GETACL user/spamfoo
spamfoo lrswipcda
cyrus lrswipcda
____SNIP____


Give a user a 10MB quota:

____SNIP____
SETQUOTA user/spamfoo (STORAGE 10000)
quota:10000
____SNIP____


List a user's quota:

____SNIP____
GETQUOTA user/spamfoo
 STORAGE 0/10000 (0%)
____SNIP____