smtp:SSL_CTX_load_verify_locations:没有此文件或目录

smtp:SSL_CTX_load_verify_locations:没有此文件或目录

Debian GNU/Linux 11.4(bullseye)、Linux 5.10.0-17-amd64

已安装OpenSMTPD 6.8.0p2-3 amd64(包括opensmtpd-extras 6.7.1-2 amd64)并尝试测试发送邮件,但每次smtp调用(除smtp -h)都会导致此错误消息:

~# smtp -v
smtp: SSL_CTX_load_verify_locations: No such file or directory

服务器本身正在运行:

:~# telnet localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 SERVERNAME.local ESMTP OpenSMTPD
quit
221 2.0.0 Bye
Connection closed by foreign host.

这个错误信息是在哪里产生的?他到底在寻找哪个文件或目录?在互联网上搜索这个错误信息,我一无所获。

smtpd.conf看起来像这样:

#       $OpenBSD: smtpd.conf,v 1.10 2018/05/24 11:40:17 gilles Exp $

# This is the smtpd server system-wide configuration file.
# See smtpd.conf(5) for more information.

table aliases file:/etc/aliases

# To accept external mail, replace with: listen on all
#
listen on localhost

action "local" maildir alias <aliases>
action "relay" relay host "smtp://mailrelay.local" mail-from "@mydomain.info"

# Uncomment the following to accept external mail for domain "example.org"
#
# match from any for domain "example.org" action "local"
match for local action "local"
match from local for any action "relay"

相关内容