我有一个使用centos 7连接到roundcube的dovecot邮件服务器。我有一个静态用户(vmail)和两个虚拟/ dovecot用户,这两个用户都在vmail权限下运行。是否可以仅使用一个系统用户来设置dovecot用户的权限(它们保存在/ etc / dovecot / passwd下)? 我尝试设置UID,但由于无法正常工作,似乎出现了错误。这也是dovecot.conf配置:
dovecot.conf
# by changing syslog configuration also, but this is easier.
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot-info.log
# Disable SSL for now.
ssl = no
disable_plaintext_auth = no
# We're using Maildir format
mail_location = maildir:~/Maildir
# mail_location = mbox:~/mail:INBOX=/home/%u/mail #mail_location =
maildir:~/Maildir
# If you're using POP3, you'll need this:
pop3_uidl_format = %08Xu%08Xv
# Authentication configuration:
auth_verbose = yes
auth_mechanisms = plain
passdb {
driver = passwd-file
args = /etc/dovecot/passwd
}
userdb {
driver = static
default_fields = uid=vmail gid=vmail home=/var/vmail/%u
override_fields =
}
end of dovecot.conf
我需要设置2个dovecot用户,一个具有rw权限,另一个具有rwx,但我找不到任何解决方案(使用这种东西的新手总数)。欢迎每一个建议!