Dovecot 身份验证失败“缺少参数”

Dovecot 身份验证失败“缺少参数”

我尝试配置 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.ext 文件:

    # 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/mail经过

有人能看到这个问题吗?

谢谢!

答案1

您的线路存在问题args

args = scheme=PLAIN username_format=/etc/maillpass
args = username_format=/etc/maillpass

Dovecot 期望最后一个参数是要加载的文件,而您则将文件名分配给参数username_format。如果您不需要模式username_format,请使用args类似

args = scheme=PLAIN /etc/maillpass
args = /etc/maillpass

这些选项的描述如下验证数据库/密码文件Dovecot wiki 中的部分。

相关内容