Dovecot:缺少 +w perm:/var/mail,我们不在第 8 组(邮件)

Kre*_*ker 4 dovecot

我无法弄清楚我错过了什么。我正在设置一个新的邮件服务器,每次收到电子邮件时都会出现此错误。
用户在群邮件内

mail:x:8:dovecot,user.name
Run Code Online (Sandbox Code Playgroud)

perms 目录在这里 /var/mail

drwxrwsr-x  3 root mail   4096 nov 11 12:20 mail/
Run Code Online (Sandbox Code Playgroud)

这是 dovecot 配置

# 2.2.22 (fe789d2): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.13 (7b14904)
# OS: Linux 4.4.0-47-generic x86_64 Ubuntu 16.04.1 LTS ext4
auth_mechanisms = plain login
mail_location = mbox:/var/mail/%u
namespace inbox {
  inbox = yes
  location =
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix =
}
passdb {
  driver = pam
}
protocols = " imap pop3"
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
}
ssl = no
userdb {
  driver = passwd
}
Run Code Online (Sandbox Code Playgroud)

Sli*_*eer 8

你读过这个文档吗?

你必须添加

mail_privileged_group = 邮件

或者通过/var/mail设置粘性位使世界可写,允许任何人创建新文件但不能覆盖或删除其他人拥有的现有文件

chmod a+rwxt /var/mail