当我尝试使用telnettesting我的IMAP服务器function时,遇到以下错误。
如果在testing期间,我省略@ domain.ex一切正常(如下图所示);
a login user password a OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY MOVE] Logged in
如果我尝试使用[email protected]。 我收到以下错误:
a login [email protected] password a NO [AUTHENTICATIONFAILED] Authentication failed.
有人知道我错在哪里?
dovecot -n的输出
# 2.2.10: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-openvz-042stab090.5-amd64 x86_64 CentOS Linux release 7.0.1406 (Core) auth_mechanisms = plain login disable_plaintext_auth = no mail_location = maildir:~/Maildir mbox_write_locks = fcntl namespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = } passdb { driver = pam } service auth { unix_listener auth-userdb { group = postfix user = postfix } } ssl = required ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_key = </etc/pki/dovecot/private/dovecot.pem userdb { driver = passwd }
对于身份validation驱动程序,您已selectpasswd驱动程序。 换句话说,用户将被查看/etc/passwd文件。 这里的/etc/passwd的内容看起来像。
通常/etc/passwd只包含用户名,缺less域部分。 所以,这显然是为什么失败。 这里有一些关于使用passwd auth的dovecot的资源 。