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

certbot letsencrypt - does mail server need to be included in Domains to avoid TLS library error?

· 52CE 我爱测

Host: Digital Ocean OS: CentOS 7 Mail Server: Postfix (new install) SSL: certbot and letsencrypt. I'm trying to track down an error I'm having with postfix and I think possibly my SSL certificate. When I use the sendmail command …

问题原文

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

Host: Digital Ocean

OS: CentOS 7

Mail Server: Postfix (new install)

SSL: certbot and letsencrypt.

I'm trying to track down an error I'm having with postfix and I think possibly my SSL certificate.

When I use the sendmail command to test postfix the mail doesn't send and I get an error.

Jan 16 19:57:15 centos-s-1vcpu-1gb-sfo2-01 postfix/smtp[1295]: warning: TLS library problem: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:794:
Jan 16 19:57:15 centos-s-1vcpu-1gb-sfo2-01 postfix/smtp[1295]: A123530230A9: Cannot start TLS: handshake failure

So I think maybe I have a problem with my SSL certificate and postfix but I'm not sure.

When I enter, certbot certificates I get this output.

Found the following matching certs:
  Certificate Name: examplesite.io
    Domains: examplesite.io www.examplesite.io
    Expiry Date: 2020-04-12 21:20:31+00:00 (VALID: 87 days)
    Certificate Path: /etc/letsencrypt/live/examplesite.io/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/examplesite.io/privkey.pem

In the Domains section I don't see mail.examplesite.io. Do I need to add that to the certificate or is that not related to my error?

I should add that I do have an MX record in my DNS records at Digital Ocean.

TYPE: MX

Hostname: examplesite.io

Value: mail handled by mail.examplesite.io

已采纳解答

原帖链接 · Kamil J · CC BY-SA 4.0

I would say yes, the match on SAN (Subject Alternative Name) in the certificate should match.

You don't need necessarily add it to the cert as it would anyway end up with issuing new cert. You can easily create new cert just for this domain and use it for postfix while "the current one" could be used for web (or also other services like just now).

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

资料来源与适用范围

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

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

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