SMTP failed to send test alert

  • Version 10.2.2 (commit: 161e3cac5075540918e3a39004f2364ad104d5bb, branch: HEAD)

  • What are you trying to achieve?
    setup email notifications off of alerts triggered in grafana

  • How are you trying to achieve it?
    setting up grafana.ini file correctly or any other means I may be missing from my current setup

  • What happened?
    When sending a test email I receive an immediate response “SMTP not configured, check you grafana.ini”

  • What did you expect to happen?
    an email to be sent to the recipient

  • Can you copy/paste the configuration(s) that you are having problems with?

 #################################### SMTP / Emailing ##########################
  [smtp]
  enabled = True
  host = localhost:25
  ;user =
  ;password =
  ;cert_file =
  ;key_file =
  skip_verify = True
  from_address = admin@grafana.localhost
  from_name = Grafana
  ;ehlo_identity = dashboard.example.com
  startTLS_policy = NoStartTLS

  [emails]
  ;welcome_email_on_sign_up = false
  ;templates_pattern = emails/*.html, emails/*.txt
  ;content_types = text/html
  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    Pop up notification stating “SMTP not configured, check you grafana.ini”

Try to use:

enabled = true

Found the issue. The grafana.ini is not being used by our version. Instead its a default.ini that is being used by our vendors product. I was editing the wrong ini.

1 Like