以下是我当前的 vmail 配置。
auth_mechanisms = plain login
auth_username_format = %n
protocols = imap lmtp
# Search for valid users in /etc/passwd
userdb {
driver = passwd
args = uid=vmail gid=vmail home=/home/vmail/%u
}
# Fallback: Use plain old PAM to find user passwords
passdb {
driver = pam
}
# Our mail for each user will be in ~/Mail, and the inbox will be ~/Mail/Inbox
# The LAYOUT option is also important because otherwise, the boxes will be `.Sent` instead of `Sent`.
mail_location = maildir:~/Mail:INBOX=~/Mail/Inbox:LAYOUT=fs
我已经确认,如果我使用常规用户主目录,我可以接收电子邮件,但使用 vmail 时则无法接收。