
到底是什麼魯斯維普克克斯泰克達在賽勒斯?我已經聚集了從這裡它與賽勒斯郵箱的 ACL 有關,但有人可以對此提供更多資訊嗎?各個字母代表什麼嗎?
我第一次轉儲時發現了這一點mailboxes.db
,然後當我嘗試執行一些不允許的操作時(例如,在嘗試刪除郵箱而不向該郵箱應用刪除權限時,它會顯示在詳細輸出中)cyrus
用戶) 。
PS:我不知道這樣一個小問題是否會得到回答,但谷歌搜尋沒有產生任何具體信息,所以我認為最好問一下。
答案1
IMAP4 允許使用共用信箱。因此,對使用者對郵箱的權限進行一定的控制是有意義的。這些權限是透過存取控制清單 (ACL) 定義的。 Cyrus IMAPd 使用 ACL 來控制對任何類型郵箱的訪問,無論是私有、共用還是公用。
每個郵箱都包含一個 ACL,它是存取控制條目的清單。這些條目由使用者 ID 和使用者對特定郵箱擁有的權限組成。
權利是(RFC4314):
l - lookup (mailbox is visible to LIST/LSUB commands, SUBSCRIBE
mailbox)
r - read (SELECT the mailbox, perform STATUS)
s - keep seen/unseen information across sessions (set or clear
\SEEN flag via STORE, also set \SEEN during APPEND/COPY/
FETCH BODY[...])
w - write (set or clear flags other than \SEEN and \DELETED via
STORE, also set them during APPEND/COPY)
i - insert (perform APPEND, COPY into mailbox)
p - post (send mail to submission address for mailbox,
not enforced by IMAP4 itself)
k - create mailboxes (CREATE new sub-mailboxes in any
implementation-defined hierarchy, parent mailbox for the new
mailbox name in RENAME)
x - delete mailbox (DELETE mailbox, old mailbox name in RENAME)
t - delete messages (set or clear \DELETED flag via STORE, set
\DELETED flag during APPEND/COPY)
e - perform EXPUNGE and expunge as a part of CLOSE
a - administer (perform SETACL/DELETEACL/GETACL/LISTRIGHTS)
自 RFC4314(第 2.1.1 節)起,「c」和「d」已廢棄。
要在 cyrus 中管理 ACL,您可以使用 cyradm:
setaclmailbox shared.questions jenny lrs
listaclmailbox shared.questions
deleteaclmailbox shared.questions jenny
一些優化:
- 使用較短的指令名稱:
sam
,lam
,dam
- 對郵箱使用通配符:
sam shared.* jenny lrs
- 使用anyone為所有使用者設定權限:
sam shared.* anyone lrswipkxtecda
- 使用 all 來允許一切:
sam shared.* anyone all
- 在使用者名稱前面加上破折號可用來「刪除」信箱的權限:
sam shared.secret -edgar all
答案2
我猜這些是郵箱的 ACL 代碼。我只是猜測當你給的時候根本沒有上下文。
一些ACL代碼(來自h埃雷)。
l Look up the name of the mailbox (but not its contents).
r Read the contents of the mailbox.
s Preserve the "seen" and "recent" status of messages across IMAP sessions.
w Write (change message flags such as "recent," "answered," and "draft").
i Insert (move or copy) a message into the mailbox.
p Post a message in the mailbox by sending the message
c Create a new mailbox below the top-level mailbox (ordinary users cannot create top-level mailboxes).
d Delete a message and/or the mailbox itself.
a Administer the mailbox (change the mailbox's ACL).