Dovecot 2.3.3 的问题 - mkdir 权限因 +w perm: /var, dir owned by 0:0 mode=0755 而被拒绝)

Troubles with Dovecot 2.3.3 - mkdir permission denied due to +w perm: /var, dir owned by 0:0 mode=0755)

我在 ubuntu 20.04 服务器上安装了 postfix 邮件服务器,当我在 运行 命令时在 dovecot 上收到以下错误:

sudo journalctl -eu dovecot

Jan 30 13:44:54 mail.wokforge.com dovecot[297622]: lmtp(298030): Connect from local
Jan 30 13:44:54 mail.wokforge.com dovecot[297622]: lmtp(info)<298030>: Error: mkdir(/home/info/Maildir) failed: Permission denied (euid=1002(info) egid=1002(info) missing +w perm: /home, dir owned by 0:0 mode=075>
Jan 30 13:44:54 mail.wokforge.com dovecot[297622]: lmtp(info)<298030>: Error: mkdir(/home/info/Maildir) failed: Permission denied (euid=1002(info) egid=1002(info) missing +w perm: /home, dir owned by 0:0 mode=075>
Jan 30 13:44:54 mail.wokforge.com dovecot[297622]: lmtp(info)<298030>: Error: lmtp-server: conn unix:pid=298029,uid=116 [2]: rcpt info@wokforge.com: Mailbox INBOX: Failed to autocreate mailbox: Internal error occ>
Jan 30 13:44:54 mail.wokforge.com dovecot[297622]: lmtp(info)<298030>: msgid=20220128054541.9AE1FC0EA1@mail.wokforge.com: save failed to open mailbox INBOX: Mailbox INBOX: Failed to autocreate mailbox: Internal>
Jan 30 13:44:54 mail.wokforge.com dovecot[297622]: lmtp(298030): Disconnect from local: Client has quit the connection (state=READY)
Jan 30 13:45:19 mail.wokforge.com dovecot[297622]: imap-login: Login: user=, method=PLAIN, rip=197.156.190.166, lip=10.0.0.165, mpid=298034, TLS, session=<Q+P04MzWOlrFnL6m>
Jan 30 13:45:21 mail.wokforge.com dovecot[297622]: imap(info)<298034><Q+P04MzWOlrFnL6m>: Error: mkdir(/home/info/Maildir) failed: Permission denied (euid=1002(info) egid=1002(info) missing +w perm: /home, dir owned by 0:0 mode=0755)
Jan 30 13:45:21 mail.wokforge.com dovecot[297622]: imap(info)<298034><Q+P04MzWOlrFnL6m>: Error: mkdir(/home/info/Maildir) failed: Permission denied (euid=1002(info) egid=1002(info) missing +w perm: /home, dir owned by 0:0 mode=0755)
Jan 30 13:45:21 mail.wokforge.com dovecot[297622]: imap(info)<298034><Q+P04MzWOlrFnL6m>: Error: mkdir(/home/info/Maildir) failed: Permission denied (euid=1002(info) egid=1002(info) missing +w perm: /home, dir owned by 0:0 mode=0755)
Jan 30 13:45:21 mail.wokforge.com dovecot[297622]: imap(info)<298034><Q+P04MzWOlrFnL6m>: Error: Mailbox Drafts: Failed to autocreate mailbox: Internal error occurred. Refer to server log for more information. [2022-01-30 13:45:21]
Jan 30 13:45:21 mail.wokforge.com dovecot[297622]: imap(info)<298034><Q+P04MzWOlrFnL6m>: Error: mkdir(/home/info/Maildir) failed: Permission denied (euid=1002(info) egid=1002(info) missing +w perm: /home, dir owned by 0:0 mode=0755)
Jan 30 13:45:21 mail.wokforge.com dovecot[297622]: imap(info)<298034><Q+P04MzWOlrFnL6m>: Error: mkdir(/home/info/Maildir) failed: Permission denied (euid=1002(info) egid=1002(info) missing +w perm: /home, dir owned by 0:0 mode=0755)
Jan 30 13:45:21 mail.wokforge.com dovecot[297622]: imap(info)<298034><Q+P04MzWOlrFnL6m>: Error: Mailbox Junk: Failed to autocreate mailbox: Internal error occurred. Refer to server log for more information. [2022-01-30 13:45:21]
Jan 30 13:45:21 mail.wokforge.com dovecot[297622]: imap(info)<298034><Q+P04MzWOlrFnL6m>: Error: mkdir(/home/info/Maildir) failed: Permission denied (euid=1002(info) egid=1002(info) missing +w perm: /home, dir owned by 0:0 mode=0755)
Jan 30 13:45:21 mail.wokforge.com dovecot[297622]: imap(info)<298034><Q+P04MzWOlrFnL6m>: Error: mkdir(/home/info/Maildir) failed: Permission denied (euid=1002(info) egid=1002(info) missing +w perm: /home, dir owned by 0:0 mode=0755)
Jan 30 13:45:21 mail.wokforge.com dovecot[297622]: imap(info)<298034><Q+P04MzWOlrFnL6m>: Error: Mailbox Trash: Failed to autocreate mailbox: Internal error occurred. Refer to server log for more information. [2022-01-30 13:45:21]
Jan 30 13:45:21 mail.wokforge.com dovecot[297622]: imap(info)<298034><Q+P04MzWOlrFnL6m>: Error: mkdir(/home/info/Maildir) failed: Permission denied (euid=1002(info) egid=1002(info) missing +w perm: /home, dir owned by 0:0 mode=0755)
Jan 30 13:45:21 mail.wokforge.com dovecot[297622]: imap(info)<298034><Q+P04MzWOlrFnL6m>: Error: mkdir(/home/info/Maildir) failed: Permission denied (euid=1002(info) egid=1002(info) missing +w perm: /home, dir owned by 0:0 mode=0755)
Jan 30 13:45:21 mail.wokforge.com dovecot[297622]: imap(info)<298034><Q+P04MzWOlrFnL6m>: Error: Mailbox INBOX: Failed to autocreate mailbox: Internal error occurred. Refer to server log for more information. [2022-01-30 13:45:21]
Jan 30 13:45:21 mail.wokforge.com dovecot[297622]: imap(info)<298034><Q+P04MzWOlrFnL6m>: Error: mkdir(/home/info/Maildir) failed: Permission denied (euid=1002(info) egid=1002(info) missing +w perm: /home, dir owned by 0:0 mode=0755)
Jan 30 13:45:21 mail.wokforge.com dovecot[297622]: imap(info)<298034><Q+P04MzWOlrFnL6m>: Error: mkdir(/home/info/Maildir) failed: Permission denied (euid=1002(info) egid=1002(info) missing +w perm: /home, dir owned by 0:0 mode=0755)
Jan 30 13:45:21 mail.wokforge.com dovecot[297622]: imap(info)<298034><Q+P04MzWOlrFnL6m>: Error: mkdir(/home/info/Maildir) failed: Permission denied (euid=1002(info) egid=1002(info) missing +w perm: /home, dir owned by 0:0 mode=0755)

目录 /home/info/ 似乎不存在。尝试使用 sudo mkdir -p /home/info/Maildir 创建目录并更改 ownerchip sudo chown -R info:info /home/info