No SMTP option found in grafana.ini file

Hi All,

We have grafana pod running in our AWS EKS cluster.
When I login to the pod and check the etc/grafana/grafana.ini file there is no option for configuring smtp:-

bash-5.1$ cat grafana.ini
[analytics]
check_for_updates = false
reporting_enabled = false
[grafana_net]
url = https://grafana.net
[log]
mode = console
[server]
root_url = https://monitoring.xxxxxx.xxxx.
serve_from_sub_path = true
[paths]
data = /var/lib/grafana/data
logs = /var/log/grafana
plugins = /var/lib/grafana/plugins
[auth.anonymous]
enabled = true
org_name = Main Org.
org_role = Viewer

Am I checking it correctly or missing something? Can I still configure SMTP?

You have not said what version of Grafana.

For my v8.1.5 Grafana running in Ubuntu the email section is as below, so I guess you could try adding/uncommenting what you need and see if it works?:

################################### SMTP / Emailing ##########################
[smtp]
;enabled = false
;host = localhost:25
;user =
# 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 = admin@grafana.localhost
;from_name = Grafana
# EHLO identity in SMTP dialog (defaults to instance_name)
;ehlo_identity = dashboard.example.com

[emails]
;welcome_email_on_sign_up = false
;templates_pattern = emails/*.html

Hi codlord,

Thanks for the reply. Ours is Grafana v8.0.7, just that our Grafana is running as a stateful set/pods on our AWS EKS cluster. Does that make any difference?

Just for reference, my default grafana.ini file is 924 lines - it looks like you are missing a lot in the file.

Check the sample.ini file for reference.

I don’t know if the way you are running on AWS makes a difference or not as I know nothing about running Grafana that way. Just thought it might be something easy to test until/unless someone else comes along with the “right” answer :slight_smile: