1

Topic: docker container can't find iRedMail.crt

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):  2021041301 (mariadb backend, dockerized eidtion: https://www.iredmail.org/)
- Deployed with iRedMail Easy or the downloadable installer? docker container "iredmail/mariadb"
- Linux/BSD distribution name and version: Ubuntu 20.04.2 LTS \n \l
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): ---
- Web server (Apache or Nginx):---
- Manage mail accounts with iRedAdmin-Pro?---
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

我使用了 find / -name *.crt|grep -i ired 命令,没有找到 iRedMail.crt 文件。使用golang 进行 tls 连接时提示我:x509: certificate is not valid for any names, but wanted to match smtp.mydomain.ct

I used `find / -name *.crt|grep -i ired` , but didn't find file iRedMail.crt . And when I used golang tls to connect, I got "x509: certificate is not valid for any names, but wanted to match smtp.mydomain.ct".

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: docker container can't find iRedMail.crt

lhq wrote:

我使用了 find / -name *.crt|grep -i ired 命令,没有找到 iRedMail.crt 文件。使用golang 进行 tls 连接时提示我:x509: certificate is not valid for any names, but wanted to match smtp.mydomain.ct

使用 iRedMail Easy 部署的 iRedMail 服务器,SSL 证书文件在 /opt/iredmail/ssl/ 目录下。
使用 GoLang 的 smtp 库,请设置 tls 忽略 ssl 证书检测。

3

Re: docker container can't find iRedMail.crt

ZhangHuangbin wrote:
lhq wrote:

我使用了 find / -name *.crt|grep -i ired 命令,没有找到 iRedMail.crt 文件。使用golang 进行 tls 连接时提示我:x509: certificate is not valid for any names, but wanted to match smtp.mydomain.ct

使用 iRedMail Easy 部署的 iRedMail 服务器,SSL 证书文件在 /opt/iredmail/ssl/ 目录下。
使用 GoLang 的 smtp 库,请设置 tls 忽略 ssl 证书检测。

谢谢,使用忽略证书可用了。