Dovecot, авторизация через файл
Добавлено: 2016-12-02 12:26:24
Делаю авторизацию на почтовом сервере(exim4+dovecot) с аутентификацией виртуальных юзеров через файл.
Конфиг dovecot:
auth-passwdfile.conf
passwd
Но когда авторизуюсь в почтовом клиенте, пишет следующее:
dovecot.log
dovecot-info.log
Поправьте что сделал ни так?
Конфиг dovecot:
Код: Выделить всё
disable_plaintext_auth = no
auth_username_format = %Lu
auth_verbose = yes
auth_mechanisms = plain login
!include auth-passwdfile.conf.ext
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot-info.log
mail_location = maildir:/var/mail/%u
ssl = no
Код: Выделить всё
passdb {
driver = passwd-file
args = scheme=plain username_format=%u /etc/dovecot/passwd
}
userdb {
driver = passwd-file
args = username_format=%u /etc/dovecot/passwd
{
Код: Выделить всё
zxc:{PLAIN}hello123
dovecot.log
Код: Выделить всё
Feb 13 13:20:35 auth: Error: passwd-file /etc/dovecot/passwd: User zxc is missing userdb info
Feb 13 13:20:35 auth-worker(13988): Error: passwd-file /etc/dovecot/passwd: User zxc is missing userdb info
Feb 13 13:20:37 imap(zxc): Fatal: Level not defined for user [zxc]
Feb 13 13:20:39 imap(zxc): Fatal: Level not defined for user [zxc]
Feb 13 13:21:11 imap(zxc): Fatal: Level not defined for user [zxc]
Feb 13 13:21:13 imap(zxc): Fatal: Level not defined for user [zxc]
Feb 13 13:29:21 auth: Error: passwd-file /etc/dovecot/passwd: User zxc is missing userdb info
Feb 13 13:29:21 auth-worker(14293): Error: passwd-file /etc/dovecot/passwd: User zxc is missing userdb info
Feb 13 13:29:21 auth-worker(14294): Error: passwd-file /etc/dovecot/passwd: User zxc is missing userdb info
Код: Выделить всё
Feb 13 13:21:15 auth: Info: passwd-file(zxc@mail.net,192.168.0.15,<CAW/x9iZdwDAqAAP>): unknown user
Feb 13 13:21:19 auth-worker(13988): Info: pam(zxc@mail.net,192.168.0.15): pam_authenticate() failed: Authentication failure (password mismatch?)