首先,我在服务器上配置 postfix null-client。它可以成功发送邮件我配置Alertmanager:
notification_config {
name: "alert_test"
email_config {
email: "abc@gmail.com"
}
}
aggregation_rule {
repeat_rate_seconds: 3600
notification_config_name: "alert_test"
}
并运行命令:
./alertmanager -notification.smtp.smarthost :25 -config.file alertmanager.conf
它显示通知:
ERRO[0002] Error sending email notification: starttls failed: tls: either ServerName or InsecureSkipVerify must be specified in the tls.Config file=notifier.go line=758
你能帮我修复它吗?