After configuring SMTP settings getting an error "SMTP not configured, check your grafana.ini config file's [smtp] section"

Hi guys, I am new to Grafana. This is my grafana.ini file.

[analytics]
check_for_updates = true
[auth]
sigv4_auth_enabled = true
[grafana_net]
url = https://grafana.net
[log]
mode = console
[paths]
data = /var/lib/grafana/data
logs = /var/log/grafana
plugins = /var/lib/grafana/plugins
provisioning = /etc/grafana/provisioning
[smpt]
ehlo_identity =
enabled = true
from_address = admin@grafana.com
from_name = Grafana
host = smtp.xx.net:587
password = xxxx
skip_verify = true
user = xxxxx

But when I create a notification channel in Grafana and test it, I am getting an error saying SMTP not configured, check your grafana.ini config file’s [smtp] section Can anyone point out where I’m going wrong!?

Hi,

You have a typo in the file :smile: , you should have

should be smtp

Hope it helps.

Good Luck

1 Like

Oh my god I was looking where everything went wrong almost 3 days :joy: , Thank you so much, you are a life saver

1 Like

[smtp]
enabled = true
host = smtp.gmail.com:587
user = grafana.alert.monitoring@gmail.com

If the password contains # or ; you have to wrap it with triple quotes. Ex “”“#password;”“”

password = ***********
;cert_file =
;key_file =
skip_verify = false
from_address = grafana.alert.monitoring@gmail
from_name = Grafana

EHLO identity in SMTP dialog (defaults to instance_name)

;ehlo_identity = dashboard.examp

SMTP startTLS policy (defaults to ‘OpportunisticStartTLS’)

;startTLS_policy = OpportunisticStartTLS … it is not working saing could not connect to smto chekc grafana.ini file