大网数据广告活动
服务器运维问答

Email server certificate valid according to CheckTLS, invalid according to Thunderbird

· 52CE 我爱测

I have set up an email server using docker-mailserver . DKIM , SPF , and DMARC are configured fine. SSL was set up using Let's Encrypt. Server has TLS and STARTTLS enabled. I ran a TLS/SSL test on https://www.checktls.com/TestRec…

问题原文

原帖链接 · thanks_in_advance · CC BY-SA 4.0

I have set up an email server using docker-mailserver.

DKIM, SPF, and DMARC are configured fine.

SSL was set up using Let's Encrypt. Server has TLS and STARTTLS enabled.

I ran a TLS/SSL test on https://www.checktls.com/TestReceiver , and it said that my SSL works fine:

I am able to use Mozilla Thunderbird to receive and send email via the server:

However, when logging in to Thunderbird to receive email via IMAP, or when sending via SMTP, I see this warning (I am still able to send and receive email if I click on the "Confirm Security Exception" button.)

I checked a couple of other email TLS/SSL testing sites (1 and 2) and they seem to think my certs are not set up correctly ("The certificate doesn't match hostname").

Thoughts?


Update: I've managed to reach the point where imap.domainname.com is recognized by Thunderbird to have a valid certificate, but not imap.domainname.com:143. What would be a fix for this please?

社区高分解答

原帖链接 · Tode · CC BY-SA 4.0

The error message says exactly what your screenshots show: hostname in certificate does not match. You check your certificate with mail.yourdomain.com, and it says valid, so you created your certificate exactly for this hostname. You configure thunderbird to use imap.yourdomain.com.

Unless you configured your certificates to contain subject alternative names and include "imap.yourdomain.com" the error message is absolutely correct.

By default every certificate includes exactly one hostname, and that has to match.

Another possibility would be to purchase a wildcard certificate *.yourdomain.com. Wildcard certificates are usually more expensive while normal certificates with subject alternative names can even be free when using „lets encrypt“ and renew them every 90 days.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-12-13)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。