我有典型的Dovecot + Postfix安装程序,带有Apache和Round多维数据集(在VPS中)。昨天我把一切都安排好了,一切顺利。是的,但是今天我发现一些用户根本无法登录,这让我感到惊讶。客户端提供如下消息(圆形立方体案例):
Login failed for $user from $ip. AUTHENTICATE PLAIN: Authentication failed.最糟糕的是,其他一些用户可以登录,这很奇怪,因为身份验证方法等等都是全局的。我在网上到处寻找解决方案,但什么也没有。我阅读了Dovecot wiki关于密码方案、密码数据库、身份验证机制等的内容。每当我尝试使用telnet/openssl登录时,我会得到:
$ openssl s_client -connect imap.domain.tld:143 -starttls imap
a login $user $password
a NO [AUTHENTICATIONFAILED] Authentication failed.最疯狂的部分是密码是正确的!passdb和userdb是正确设置的(它们在我以前的服务器中工作,并通过doveadm user和doveadm user进行了确认)。如果这不是很多,the日志就不会说任何话!!(即使在最冗长的配置、调试启用等情况下也是如此)。
下面是我的dovecot配置:
$ dovecot -n
# 2.2.29.1 (e0b76e3): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.18 (29cc74d)
# OS: Linux 4.9.155-gnu-0-lts x86_64
auth_debug = yes
auth_debug_passwords = yes
auth_mechanisms = plain login cram-md5
auth_verbose = yes
auth_verbose_passwords = yes
mail_location = maildir:~/Maildir
mail_plugins = " quota"
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext
namespace inbox {
inbox = yes
location =
mailbox Drafts {
auto = subscribe
special_use = \Drafts
}
mailbox Sent {
auto = subscribe
special_use = \Sent
}
mailbox Spam {
auto = subscribe
special_use = \Junk
}
mailbox Trash {
auto = subscribe
special_use = \Trash
}
prefix =
}
passdb {
args = /etc/passwd-file
auth_verbose = yes
driver = passwd-file
}
plugin {
quota = maildir:Cuota de usuario
quota_warning = storage=95%% quota-warning 95 %u
sieve = file:~/sieve;active=~/.dovecot.sieve
}
protocols = imap pop3 sieve
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
user = root
}
service imap-login {
inet_listener imap {
port = 143
}
inet_listener imaps {
port = 993
ssl = yes
}
}
service lmtp {
inet_listener lmtp {
port = 24
}
user = root
}
service pop3-login {
inet_listener pop3 {
port = 110
}
inet_listener pop3s {
port = 995
ssl = yes
}
}
ssl = required
ssl_protocols = TLSv1.2 TLSv1.1 !SSLv3
userdb {
args = /etc/passwd-file
auth_verbose = yes
driver = passwd-file
}
verbose_ssl = yes
protocol imap {
mail_plugins = " quota imap_quota imap_sieve"
ssl_cert = 请帮帮我,这让我很生气
发布于 2019-02-23 18:28:40
所以问题是,域指向的是一个不同的IPv4地址,它来自另一个具有类似设置的服务器(这就是为什么我认为它是我所说的同一台服务器)。另一台服务器有一个cron作业,用于从我的IPv4 DNS自动更新域的CloudFlare地址(因为我在这个服务器中有一个动态IP地址)。
https://serverfault.com/questions/955105
复制相似问题