所以我正在尝试设置一个松鼠邮件Web服务器。这些是我遵循的说明
这是我在错误日志中找到的
Apr 26 17:53:01 tvpc-Inspiron-545 dovecot: imap(testygee): Error: User initialization failed: Namespace '': mkdir(/home/testygee/mail) failed: Permission denied (euid=1001(testygee) egid=1001(testygee) missing +w perm: /home, dir owned by 0:0 mode=0755)
Apr 26 17:53:01 tvpc-Inspiron-545 dovecot: imap: Error: Invalid user settings. Refer to server log for more information.
# 2.2.22 (fe789d2): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.13 (7b14904)
# OS: Linux 4.13.0-39-generic x86_64 Ubuntu 16.04.3 LTS
mail_location = mbox:~/mail:INBOX=/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"
ssl = no
userdb {
driver = passwd
}
protocol imap {
mail_location = mbox:~/mail:INBOX=/var/mail/%u
}
这是dovecot的设置。知道我哪里错了吗?我假设错误是在dovecot而不是postfix
答案 0 :(得分:0)
(意识到这是一个非常老的问题,)在这种情况下查看实际错误:
mkdir(/home/testygee/mail) failed: Permission denied (euid=1001(testygee)
egid=1001(testygee) missing +w perm: /home, dir owned by 0:0 mode=0755)
问题在于用户dovecot正在运行,因为(testygee)没有创建该文件夹的权限。可能的解决方案是通过更改文件夹所有权或权限,将文件夹的写权限授予用户'testygee'。我会尝试:
chown testygee:testygee /home/testygee/
看看这是否对您没有帮助。