Dovecot授权失败“缺less参数”

我尝试configuration鸽子,我得到了这个奇怪的日志:

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 l通过

有人可以看到这个问题吗?

谢谢!

你在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的AuthDatabase / PasswordFile部分中描述。