操作系统 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 后配置向导中负责上述操作的部分是它询问您是使用普通密码还是散列密码的部分。