time="2021-03-03T08:46:47Z" level=error msg="Error on notify: require_tls: true (default), but "smtp.icoremail.net:465" does not advertise the STARTTLS extension" source="notify.go:283"
time="2021-03-03T08:46:47Z" level=error msg="Notify for 1 alerts failed: require_tls: true (default), but "smtp.icoremail.net:465" does not advertise the STARTTLS extension" source="dispatch.go:262"
将 require_tls这是为false之后报错:
time="2021-03-03T08:29:52Z" level=error msg="Error on notify: *smtp.plainAuth failed: wrong host name" source="notify.go:283"
time="2021-03-03T08:29:52Z" level=error msg="Notify for 1 alerts failed: *smtp.plainAuth failed: wrong host name" source="dispatch.go:262"
最后在设置false的基础上 升级了alertmanager的版本从v0.15.2 升级到v0.16.1 解决
完整配置
smtp_smarthost: 'smtp.mxhichina.com:465'
smtp_from: 'chengl@xxxx.com'
smtp_auth_username: 'chengl@xxxx.com'
smtp_auth_password: 'xxxx'
smtp_require_tls: false