我试图配置Dovecot,我得到了一个奇怪的日志:
Sep 14 23:02:02 hostname dovecot: auth: Fatal: passdb passwd-file: Missing args
Sep 14 23:02:02 hostname dovecot: master: Error: service(auth): command startup failed, throttling for 16 secs
Sep 14 23:02:02 hostname dovecot: pop3-login: Disconnected: Auth process broken (disconnected before auth was ready, waited 0 secs): user=<>, rip=77.124.48.11, lip=31.220.109.9, session=<nWjpEYM8vgBNfC8L>顺便提一下,这里是我试图用来存储用户名和密码的passwd文件的格式:
user:{plain}pass下面是auth-system.conf. here文件:
# Authentication for passwd-file users. Included from 10-auth.conf.
#
# passwd-like file with specified location.
# <doc/wiki/AuthDatabase.PasswdFile.txt>
passdb {
driver = passwd-file
args = scheme=PLAIN username_format=/etc/maillpass
}
userdb {
driver = passwd-file
args = username_format=/etc/maillpass
# Default fields that can be overridden by passwd-file
#default_fields = quota_rule=*:storage=1G
# Override fields from passwd-file
#override_fields = home=/home/virtual/%u
}顺便说一下,是的,是/etc/maillpass
有人能看到问题吗?
谢谢!
发布于 2016-09-15 19:35:44
在args行中有一个问题。
args = scheme=PLAIN username_format=/etc/maillpass
args = username_format=/etc/maillpassDovecot期望最后一个参数是要加载的文件,而是将文件名分配给username_format参数。如果不需要username_format模式,请使用args行,如
args = scheme=PLAIN /etc/maillpass
args = /etc/maillpass这些选项在Dovecot的AuthDatabase/PasswordFile部分中进行了描述。
https://serverfault.com/questions/803350
复制相似问题