alertmanager配置好了邮件告警,但是无法收到邮件,alertmanager.log日志如下:
level=error ts=2021-08-12T10:51:17.235759877Z caller=email.go:147 msg=“failed to close SMTP connection” err=“x509: certificate is valid for mail.service.test.cn, not mail.in.service.test.cn”
level=error ts=2021-08-12T10:51:43.718760827Z caller=email.go:147 msg=“failed to close SMTP connection” err=“x509: certificate is valid for mail.service.test.cn, not mail.in.service.test.cn”
level=error ts=2021-08-12T10:52:41.07742121Z caller=email.go:147 msg=“failed to close SMTP connection” err=“x509: certificate is valid for mail.service.test.cn, not mail.in.service.test.cn”
level=error ts=2021-08-12T10:53:33.155078534Z caller=notify.go:339 component=dispatcher msg=“Error on notify” err=“starttls failed: x509: certificate is valid for mail.service.test.cn, not mail.in.service.test.cn”
level=error ts=2021-08-12T10:53:33.155199631Z caller=dispatch.go:264 component=dispatcher msg=“Notify for alerts failed” num_alerts=1 err=“starttls failed: x509: certificate is valid for mail.service.test.cn, not mail.in.service.test.cn”
level=error ts=2021-08-12T11:01:33.161492016Z caller=email.go:147 msg=“failed to close SMTP connection” err=“x509: certificate is valid for mail.service.test.cn, not mail.in.service.test.cn”
现在报错信息如下:
level=error ts=2021-08-12T19:17:25.053044474Z caller=email.go:147 msg=“failed to close SMTP connection” err=“write tcp 10.30.xx.1:53145->10.30.xx.2:25: use of closed network connection”
level=error ts=2021-08-12T19:17:27.271730275Z caller=email.go:147 msg=“failed to close SMTP connection” err=“write tcp 10.30.xx.1:53159->10.30.xx.2:25: use of closed network connection”
level=error ts=2021-08-12T19:17:33.715002817Z caller=email.go:147 msg=“failed to close SMTP connection” err=“write tcp 10.30.xx.1:53175->10.30.xx.2:25: use of closed network connection”
level=error ts=2021-08-12T19:17:40.238189504Z caller=email.go:147 msg=“failed to close SMTP connection” err=“write tcp 10.30.xx.1:53197->10.30.xx.2:25: use of closed network connection”
level=error ts=2021-08-12T19:17:48.982331404Z caller=email.go:147 msg=“failed to close SMTP connection” err=“write tcp 10.30.xx.1:53241->10.30.xx.2:25: use of closed network connection”
level=error ts=2021-08-12T19:18:09.190726778Z caller=email.go:147 msg=“failed to close SMTP connection” err=“write tcp 10.30.xx.1:53317->10.30.xx.2:25: use of closed network connection”
level=error ts=2021-08-12T19:18:44.919456324Z caller=email.go:147 msg=“failed to close SMTP connection” err=“write tcp 10.30.xx.1:53441->10.30.xx.2:25: use of closed network connection”
level=error ts=2021-08-12T19:19:24.603175171Z caller=email.go:147 msg=“failed to close SMTP connection” err=“write tcp 10.30.xx.1:53587->10.30.xx.2:25: use of closed network connection”
level=error ts=2021-08-12T19:20:18.152998932Z caller=notify.go:339 component=dispatcher msg=“Error on notify” err="*smtp.plainAuth failed: unencrypt
ed connection"
level=error ts=2021-08-12T19:20:18.153125647Z caller=dispatch.go:264 component=dispatcher msg=“Notify for alerts failed” num_alerts=1 err="*smtp.pla
inAuth failed: unencrypted connection"
这个参数值我设置的就是false,但是出现的报错就是这个:
level=error ts=2021-08-12T19:17:25.053044474Z caller=email.go:147 msg=“failed to close SMTP connection” err=“write tcp 10.30.xx.1:53145->10.30.xx.2:25: use of closed network connection”
level=error ts=2021-08-12T19:17:27.271730275Z caller=email.go:147 msg=“failed to close SMTP connection” err=“write tcp 10.30.xx.1:53159->10.30.xx.2:25: use of closed network connection”
level=error ts=2021-08-12T19:17:33.715002817Z caller=email.go:147 msg=“failed to close SMTP connection” err=“write tcp 10.30.xx.1:53175->10.30.xx.2:25: use of closed network connection”
level=error ts=2021-08-12T19:17:40.238189504Z caller=email.go:147 msg=“failed to close SMTP connection” err=“write tcp 10.30.xx.1:53197->10.30.xx.2:25: use of closed network connection”
level=error ts=2021-08-12T19:17:48.982331404Z caller=email.go:147 msg=“failed to close SMTP connection” err=“write tcp 10.30.xx.1:53241->10.30.xx.2:25: use of closed network connection”
level=error ts=2021-08-12T19:18:09.190726778Z caller=email.go:147 msg=“failed to close SMTP connection” err=“write tcp 10.30.xx.1:53317->10.30.xx.2:25: use of closed network connection”
level=error ts=2021-08-12T19:18:44.919456324Z caller=email.go:147 msg=“failed to close SMTP connection” err=“write tcp 10.30.xx.1:53441->10.30.xx.2:25: use of closed network connection”
level=error ts=2021-08-12T19:19:24.603175171Z caller=email.go:147 msg=“failed to close SMTP connection” err=“write tcp 10.30.xx.1:53587->10.30.xx.2:25: use of closed network connection”
level=error ts=2021-08-12T19:20:18.152998932Z caller=notify.go:339 component=dispatcher msg=“Error on notify” err="*smtp.plainAuth failed: unencrypt
ed connection"
level=error ts=2021-08-12T19:20:18.153125647Z caller=dispatch.go:264 component=dispatcher msg=“Notify for alerts failed” num_alerts=1 err="*smtp.pla
inAuth failed: unencrypted connection"