Hi Team,
I am using grafana 9.0.4 on the container and trying to configure the SMTP to send the alerts over email. For the same, i have passed the required field and created my own container from grafana 9.0.4 version. Below is the docker file I used to create my own grafana image.
FROM grafana/grafana:9.0.4
ENV GF_SMTP_ENABLED=true \
GF_SMTP_HOST=<my company SMTP server> \
GF_SMTP_FROM_ADDRESS=<my company email id> \
GF_SERVER_DOMAIN=<my application server hostname> \
GF_SMTP_FROM_NAME=<my company email ID name> \
GF_SMTP_USER=<username to authenticate with SMTP server> \
GF_SMTP_PASSWORD=<Password to authenticate with SMTP server> \
GF_SERVER_HTTP_PORT=3000
After creating the image I created the container. to test the SMTP, I have gone to alerting and contact points and created a new contact point with my company email ID to test the alert.
So when I send the test alert it’s failing to send the alert and shows me an error message that
Failed to send test alert: Failed to send a notification to email address: unencrypted connection. image as below.
And from container logs i see below logs,
logger=alerting.notifier.email t=2022-09-22T15:39:24.775014379Z level=error msg="Missing receiver"
logger=alerting.notifier.email t=2022-09-22T15:39:24.775115337Z level=error msg="Missing group labels"
logger=context traceID=00000000000000000000000000000000 userId=1 orgId=1 uname=admin t=2022-09-22T15:39:25.147177545Z level=info msg="Request Completed" method=POST path=/api/alertmanager/grafana/config/api/v1/receivers/test status=207 remote_addr=172.17.0.1 time_ms=394 duration=394.994208ms size=460 referer="http://localhost:3001/alerting/notifications/receivers/new?alertmanager=grafana" traceID=00000000000000000000000000000000
So anyone please guide me on how to resolve this problem?