Dovecot 未尝试对客户端 Centos 7 进行身份验证

Dovecot 未尝试对客户端 Centos 7 进行身份验证

我们刚刚安装了电子邮件,但系统无法识别客户端登录尝试,在邮件日志中显示消息“已断开连接(0 秒内未进行身份验证尝试):用户 = <>”。

该服务器是 Verelox 服务器上的 Centos 7。

鸽舍-n:

[root@mail log]# dovecot -n
# 2.2.10: /etc/dovecot/dovecot.conf
# OS: Linux 3.10.0-229.1.2.el7.x86_64 x86_64 CentOS Linux release 7.3.1611 (Core)
auth_mechanisms = plain login
disable_plaintext_auth = no
first_valid_uid = 1000
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 /var/spool/postfix/private/auth {
    group = postfix
    mode = 0666
    user = postfix
  }
}
ssl = no
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
userdb {
  driver = passwd
}

后配置-n

[root@mail log]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailbox_size_limit = 1073741824
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 10485760
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = xxxxxx.net
myhostname = mail.xxxxxxx.net
mynetworks = 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
sample_directory = /usr/share/doc/postfix-2.10.1/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP
smtpd_recipient_restrictions = permit_mynetworks,permit_auth_destination,permit_sasl_authenticated,reject
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
unknown_local_recipient_reject_code = 550
[root@mail log]#

日志:

Jul  7 10:15:49 mail dovecot: imap-login: Aborted login (no auth attempts in 0 secs): user=<>, rip=xx.xxx.xx.xxx, lip=xx.xxx.xx.xxx, session=<8RFuhLdTPgBe0Qq7>
Jul  7 10:17:58 mail dovecot: pop3-login: Aborted login (no auth attempts in 0 secs): user=<>, rip=xx.xxx.xx.xxx, lip=xx.xxx.xx.xxx, session=<ODQajLdTSgBe0Qq7>
Jul  7 10:17:58 mail dovecot: imap-login: Aborted login (no auth attempts in 0 secs): user=<>, rip=xx.xxx.xx.xxx, lip=xx.xxx.xx.xxx, session=<qjUajLdTSABe0Qq7>
Jul  7 10:17:58 mail dovecot: imap-login: Aborted login (no auth attempts in 0 secs): user=<>, rip=xx.xxx.xx.xxx, lip=xx.xxx.xx.xxx, session=<ykUajLdTTABe0Qq7>
Jul  7 10:17:58 mail dovecot: pop3-login: Aborted login (no auth attempts in 0 secs): user=<>, rip=xx.xxx.xx.xxx, lip=xx.xxx.xx.xxx, session=<nUYajLdTTgBe0Qq7>

谁能帮我这个?

答案1

ssl = no

可能没有帮助。检查路径名以及证书和密钥是否确实存在。

相关内容