大网数据广告活动
服务器运维问答

cyradm delete mailbox permission denied

· 52CE 我爱测

I have a new ClearOs 7 system. It has Cyrus IMAP installed. In trying to copy the mailboxes from the old server, I seem to have screwed up one of them. It has a folder called Junk E-mail which is only partly there. I am trying to…

问题原文

原帖链接 · Nikki Locke · CC BY-SA 3.0

I have a new ClearOs 7 system. It has Cyrus IMAP installed. In trying to copy the mailboxes from the old server, I seem to have screwed up one of them. It has a folder called Junk E-mail which is only partly there.

I am trying to sort it out with cyradm, as follows:

    # cyradm --user root localhost
    localhost> lm
    user/harold (\HasChildren)
    user/harold/Drafts (\HasNoChildren)
    user/harold/Junk E-mail (\HasNoChildren)
    user/harold/NotSpam (\HasNoChildren)
    user/harold/SPAM (\HasNoChildren)
    user/harold/Sent (\HasNoChildren)
    user/harold/Sent Items (\HasNoChildren)
    user/harold/Trash (\HasNoChildren)
    localhost> sam user/harold root all
    localhost>  dm 'user/harold/Junk E-mail'
    deletemailbox: Permission denied

    # cyradm --user harold localhost
    localhost> lm
    INBOX (\HasChildren)               INBOX/Sent (\HasNoChildren)
    INBOX/Drafts (\HasNoChildren)      INBOX/Sent Items (\HasNoChildren)
    INBOX/NotSpam (\HasNoChildren)     INBOX/Trash (\HasNoChildren)
    INBOX/SPAM (\HasNoChildren)
    localhost> dm 'Junk E-mail'
    deletemailbox: Mailbox does not exist
    localhost> dm 'INBOX/Junk E-mail'
    deletemailbox: Permission denied

Unfortunately the permission denied messages mean that I cannot.

I have checked the ownership and permissions of the files in /var/spool/imap/h/user/harold, and they are all owned by user cyrus, group mail.

已采纳解答

原帖链接 · hiagop · CC BY-SA 4.0

Actually you need to set the right ACL for that mailbox before deleting it. If you can't delete your own mailbox means the ACLs for that are missing. You should check the answer given to a similar question here.

In advance, you can set the ACL needed for deleting using:

sam <mailbox-name-here> <user> c

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-01-17)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0 / CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。