imap 登錄:已斷開連接
我有一個帶有公共 dns 條目的電子郵件伺服器,可以正常發送和接收。
我正在嘗試將其作為 imap 帳戶添加到 Outlook,但它一直失敗。伺服器錯誤顯示
Oct 30 15:29:04 mail.example.local dovecot[17250]: imap-login: Disconnected (auth failed, 1 attempts in 4 secs): user=<user@example.local>, method=PLAIN, rip=12.123.456.789, lip=123.4.56.7, session=<yjdfyjfkugih>
Oct 30 15:29:08 mail.example.local auth[17491]: pam_unix(dovecot:auth): check pass; user unknown
cat /etc/pam.d/dovecot #%PAM-1.0 auth required pam_nologin.so auth include password-auth account include password-auth session include password-auth auth required pam_unix.so nullok account required pam_unix.so
`cat auth-system.conf.ext PAM authentication. Preferred nowadays by most systems. PAM is typically used with either userdb passwd or userdb static. REMEMBER: You’ll need /etc/pam.d/dovecot file created for PAM authentication to actually work. <doc/wiki/PasswordDatabase.PAM.txt> passdb { driver = pam
[session=yes] [setcred=yes] [failure_show_msg=yes] [max_requests=<n>]
[cache_key=<key>] [<service name>]
#args = dovecot }`
在遵循本指南http://xmodulo.com/enable-user-authentication-postfix-smtp-server-sasl.html之後,我已經解決了這個問題
它仍然沒有工作,但事實證明這是因為我的密碼有一個“£”導致了這個問題。