First, I configure postfix null-client on server. It can send mail successfull I configure Alertmanager:
notification_config {
name: "alert_test"
email_config {
email: "abc@gmail.com"
}
}
aggregation_rule {
repeat_rate_seconds: 3600
notification_config_name: "alert_test"
}
And run command:
./alertmanager -notification.smtp.smarthost :25 -config.file alertmanager.conf
It display notice:
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
Can you help me to fix its?