AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 632127
Accepted
Antonis Christofides
Antonis Christofides
Asked: 2014-09-30 07:24:06 +0800 CST2014-09-30 07:24:06 +0800 CST 2014-09-30 07:24:06 +0800 CST

Exim 在 gnutls_handshake 期间说“请求无效”

  • 772

我有 Debian wheezy 并设置 Exim 来监听端口 587,用户可以使用 TLS 进行身份验证。我正在使用 Thunderbird 31.1.2 对其进行测试。当我尝试发送消息时,Thunderbird 会显示:

发送消息失败。无法发送消息,因为与 SMTP 服务器 smtp.gaspatchmodels.com 的连接在事务处理过程中丢失。重试或联系您的网络管理员。

Exim 在主日志中显示了这一点:

2014-09-29 18:03:22 来自 ppp-94-68-63-22.home.otenet.gr ([192.168.1. 68]) [94.68.63.22] (gnutls_handshake) 的连接出现 TLS 错误:请求是无效的。

如果我嗅探流量,我看到客户端说“STARTTLS”,服务器响应“220 TLS 继续”,然后客户端发送二进制数据,之后连接似乎被丢弃。

如果我运行exim,-d这就是我得到的:

15332 SMTP<< STARTTLS
15332 initialising GnuTLS as a server
15332 GnuTLS global init required.
15332 initialising GnuTLS server session
15332 Expanding various TLS configuration options for session credentials.
15332 certificate file = /etc/exim4/exim.crt
15332 key file = /etc/exim4/exim.key
15332 TLS: cert/key registered
15332 verify certificates = /etc/ssl/certs/ca-certificates.crt size=245341
15332 Added 159 certificate authorities.
15332 Initialising GnuTLS server params.
15332 Loading default hard-coded DH params
15332 Loaded fixed standard D-H parameters
15332 GnuTLS using default session cipher/priority "NORMAL"
15332 host in tls_verify_hosts? no (option unset)
15332 host in tls_try_verify_hosts? no (option unset)
15332 TLS: a client certificate will not be requested.
15332 SMTP>> 220 TLS go ahead
15332 Received TLS SNI "[my domain name]" (unused for certificate selection)
15332 LOG: MAIN
15332   TLS error on connection from ppp-94-68-63-22.home.otenet.gr ([192.168.1.68]) [94.68.63.22] (gnutls_handshake): The request is invalid.
15332 TLS failed to start

对我来说,“请求无效”的信息传达了 Thunderbird 有过错的意思;但是我不敢相信是这种情况,因为它既不能在我的 Thunderbird 上也不能在我客户的 Thunderbird 上工作,而且因为它在两天前工作(然后我从挤压更新,删除了配置,并重新创建它ansible)。我在配置中看不到任何相关的东西

MAIN_TLS_ENABLE = true

在/etc/exim4/conf.d/main/000_localmacros.

我可以从 gnutls 获得更多调试信息吗?比如为什么认为请求无效?

exim
  • 1 1 个回答
  • 850 Views

1 个回答

  • Voted
  1. Best Answer
    Antonis Christofides
    2014-10-01T01:23:41+08:002014-10-01T01:23:41+08:00

    我找到了问题所在。我在配置中犯了一个错误:/etc/exim4/exim.crt,而不是包含主机证书+链证书,包含主机私钥+链证书。

    我想知道这是一个错误exim还是gnutls错误。“请求无效”似乎是针对此问题的不恰当错误消息。

    • 0

相关问题

  • Postfix 或 exim:自动/程序化和转发电子邮件设置

  • 将所有(未被拒绝的)垃圾邮件重定向到 sa-exim 中的特殊邮箱

  • 设置 Exim 转发邮件

  • 我可以在 Exchange 2007 的服务器端强制执行邮件规则吗?

  • 用于从多个 IP 地址发送电子邮件的 Linux 电子邮件服务器

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve