Tuesday, June 24, 2008

Delete mailbox on cyrus-imap

To delete mailbox on cyrus-imap you have to give permission. By default admin doesn't have permission deleting mailbox.


moonlight# cyradm -u cyrus localhost
Password:
localhost> lm
user.bafrin (\HasChildren) user.john.Sent (\HasNoChildren)
user.bafrin.Drafts (\HasNoChildren) user.john.Trash (\HasNoChildren)
user.bafrin.Sent (\HasNoChildren) user.wahyu (\HasChildren)
user.bafrin.Trash (\HasNoChildren) user.wahyu.Drafts (\HasNoChildren)
user.john (\HasChildren) user.wahyu.Sent (\HasNoChildren)
user.john.Drafts (\HasNoChildren) user.wahyu.Trash (\HasNoChildren)
localhost> dm user.john
deletemailbox: Permission denied
localhost>
localhost> lam user.john
john lrswipkxtecda
localhost> dm user.john
deletemailbox: Permission denied
localhost> sam user.john cyrus c
localhost> lam user.john
john lrswipkxtecda
cyrus kxc
localhost> dm user.test
deletemailbox: Mailbox does not exist
localhost> dm user.john
localhost> lm
user.bafrin (\HasChildren) user.wahyu (\HasChildren)
user.bafrin.Drafts (\HasNoChildren) user.wahyu.Drafts (\HasNoChildren)
user.bafrin.Sent (\HasNoChildren) user.wahyu.Sent (\HasNoChildren)
user.bafrin.Trash (\HasNoChildren) user.wahyu.Trash (\HasNoChildren)
localhost>

No comments:

Post a Comment