Linux
dovecot: imap-login: Disconnected auth failed user=<>
作業系統 Ubuntu Linux 18.04.2
Webmin 版本 1.900(最新)
Usermin 版本 1.751(最新)
Virtualmin 版本 6.06-2(最新)
我對 Dovecot 和 Usermin/Virtualmin 有疑問。該問題僅影響域使用者(主要虛擬伺服器使用者) - 創建的所有其他使用者,可以登錄到 Usermin 並訪問電子郵件正常。
因此,當我創建一個名為 test.com 的新虛擬伺服器時,我點擊“編輯使用者部分”中的“登錄到 usermin”按鈕,然後 Usermin 打開並登錄使用者“test”。您將立即在 syslog 和郵件中看到這一點。日誌:
Jul 7 00:49:17 ns1 dovecot: imap-login: Disconnected (auth failed, 1 attempts in 6 secs): user=<>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<abVjLgqNer1/AAAB> Jul 7 00:49:17 ns1 dovecot: imap-login: Disconnected (auth failed, 1 attempts in 8 secs): user=<>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<eapMLgqNeL1/AAAB> Jul 7 00:49:28 ns1 dovecot: imap-login: Disconnected (auth failed, 1 attempts in 10 secs): user=<>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<4ynZLgqNfL1/AAAB> Jul 7 00:49:45 ns1 dovecot: imap-login: Disconnected (auth failed, 1 attempts in 27 secs): user=<>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<sKHZLgqNfr1/AAAB> Jul 7 00:49:45 ns1 dovecot: imap-login: Disconnected (auth failed, 1 attempts in 17 secs): user=<>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<t5RqLwqNgL1/AAAB>
身份驗證日誌:
Jul 7 00:49:06 ns1 perl: pam_unix(usermin:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= user=root
我在這裡發現了類似的問題:
https
://www.virtualmin.com/node/38732 不同之處在於我的使用者在日誌中顯示為空白。另外,我在目錄 /home/test/.usermin/mailbox和這裡沒有 inbox.imap 文件:
https ://www.virtualmin.com/node/64389
我該如何解決這個問題?有任何想法嗎?
服務 dovecot 狀態 = 活動(執行)
dovecot -n 2.2.33.2 (d6601f4ec): /etc/dovecot/dovecot.conf Pigeonhole version 0.4.21 (92477967) OS: Linux 4.15.0-54-generic x86_64 Ubuntu 18.04.2 LTS auth_mechanisms = plain login disable_plaintext_auth = no mail_location = maildir:~/Maildir mail_privileged_group = mail 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 } protocols = imap pop3 pop3 ssl_ca = </dovecot.key.ca ssl_cert = </etc/dovecot/private/dovecot.pem ssl_cipher_list = ECDHE-RSA-AES256-SHA384:AES256-SHA256:AES256-SHA256:RC4:HIGH:MEDIUM:+TLSv1:+TLSv1.1:+TLSv1.2:!MD5:!ADH:!aNULL:!eNULL:!NULL:!DH:!ADH:!EDH:!AESGCM ssl_client_ca_dir = /etc/ssl/certs ssl_key = # hidden, use -P to show it userdb { driver = passwd } local_name test.com { ssl_cert = </home/test/ssl.cert ssl_key = # hidden, use -P to show it } local_name www.test.com { ssl_cert = </home/test/ssl.cert ssl_key = # hidden, use -P to show it } local_name mail.test.com { ssl_cert = </home/test/ssl.cert ssl_key = # hidden, use -P to show it }
經過一整天的測試,我發現當沒有執行 Virtualmin 後配置嚮導時會發生此問題。在這種情況下,該文件
/etc/usermin/mailbox/config
將保留為預設配置mail_system=4
。將此更改為mail_system=1
,可以解決使用散列密碼時的問題。Virtualmin 後配置嚮導中負責上述操作的部分是它詢問您是使用普通密碼還是散列密碼的部分。