Grafana in Docker, SMTP notification failure


I am trying to get e-mail notifications working.

I am currently working with Grafana 8.4.3 in a Docker container, where Docker runs within wsl2 on Windows 10.

To make my SMTP notifications work I configured the grafana.ini with settings including access credentials (login and password) I got from my corporate smtp provider.

    - GF_SMTP_ENABLED=true
    - GF_SMTP_HOST=<server>:25
    - GF_SMTP_USER=user
    - GF_SMTP_Password="""password"""
    - GF_SMTP_startTLS_policy=OpportunisticStartTLS
    - GF_SMTP_FROM_ADDRESS=<e-mail adress>
    #- GF_SMTP_cert_file=
    #- GF_SMTP_key_file=
    - GF_APP_MODE=development
    - GF_SERVER_DOMAIN=<domain>
    - GF_RENDERING_SERVER_URL=http://grafana_renderer:8081/render
    - GF_RENDERING_CALLBACK_URL=http://grafana_com:3000/
    - GF_SERVER_ROOT_URL=http://md2gaahc:8080/
    - GF_LOG_FILTERS=rendering:debug

While testing the e-mail notification in Grafana I am getting 501 error.


I also get two errors in the Grafana log at the time I test the notification, but I am not sure if they are related. level=error msg="Missing receiver" level=error msg="Missing group labels"

The problems began since my SMTP provider started requesting login and password to access the service.

But there is one interesting thing. When I use Grafana for Windows (without Docker) and apply the same SMTP settings, the notifications work.

this sounds related to your Alerting version. Are you using the legacy alerting platform or the new alerting platform that was introdced in v8 as an opt-in? It is now default in 9.