Dovecot 和 SharedFolders

Dovecot 和 SharedFolders

我想在 Dovecot 2.2.9 (Ubuntu) 中配置共享文件夹。我想将文件夹 SHARED 从用户 test 共享给用户 spamtrap。

我的配置:

10-邮件.conf

mail_location = maildir:/usr/local/office/mail/vmail/%d/%n

namespace {
  type = shared
  separator = .
  prefix = shared.%%u.
  inbox = no
  hidden = no
  location = maildir:/usr/local/office/mail/vmail/%d/%n:INDEXPVT=/usr/local/office/mail/vmail/%d/%n/shared.%%u
  subscriptions = yes
  list = yes

}

可能是指令位置出了问题。

90-acl.conf

plugin {
  acl = vfile
}
plugin {
  acl_shared_dict = file:/usr/local/office/mail/vmail/%d/%n/shared-mailboxes.db  # Файл создался автоматом в папке юзера test
  acl_anyone = allow
}

20-imap.conf

protocol imap {
  mail_plugins = $mail_plugins imap_acl
}

文件夹 SHARED 的文件 dovecot-acl:

user=spamtrap lrs

命令:

doveadm acl debug -u spamtrap shared.SHARED

回馈:

doveadm(spamtrap): Info: Mailbox 'INBOX' is in namespace 'shared.SHARED.'
doveadm(spamtrap): Info: Mailbox path: /usr/local/office/mail/vmail/domain.tld/spamtrap
doveadm(spamtrap): Info: Per-user private flags in mailbox: \Seen
doveadm(spamtrap): Info: User [email protected] has no rights for mailbox
doveadm(spamtrap): Error: User [email protected] is missing 'lookup' right
doveadm(spamtrap): Info: Mailbox shared.SHARED is NOT visible in LIST

通过 telnet 使用以下命令设置权限:

. Setacl SHARED [email protected] lrws

我不明白哪里出了问题。有人能帮帮我吗?

提前致谢!

答案1

使用工具 doveadm 解决了该问题:

以下是未来的手册:

Dovecot - 共享文件夹

相关内容