Grafana 无法发送到本地主机。来自 localhost[127.0.0.1] 的 SSL_accept 错误:-1

Grafana 无法发送到本地主机。来自 localhost[127.0.0.1] 的 SSL_accept 错误:-1

与 postfix 在同一台服务器上运行的 Grafana 尝试向其发送消息,但出现以下错误:

Feb 21 08:14:00 postfix/smtpd[10624]: SSL_accept error from localhost[127.0.0.1]: -1
Feb 21 08:14:00 ovh postfix/smtpd[10624]: warning: TLS library problem:
    error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate:
    ../ssl/record/rec_layer_s3.c:1407:SSL alert number 42:
Feb 21 08:14:00 postfix/smtpd[10624]: lost connection after STARTTLS 
    from localhost[127.0.0.1]
Feb 21 08:14:00 postfix/smtpd[10624]: disconnect from localhost[127.0.0.1] 
    ehlo=1 starttls=0/1 commands=1/2

我可以将 postfix 设置为仅接受来自本地主机的邮件吗?

答案1

好的,在 grafana.ini 中

[smtp]
enabled =true
;host = localhost:25
;user =
;password =
;cert_file =
;key_file =
skip_verify = true  <--- Setting this to true made the mail come through.

相关内容