Mail Alert Contact Point

Hello, I am having trouble setting up the mail notification in Grafana. I am not quite fit in the topic yet, please excuse that.
I have installed grafana, prometheus according to the following instructions:

I am now trying to test the mail notifications, but always get an error that the grafana.ini needs to be edited. I have entered the following for smtp:
enabled = true
user =
#If the password contains # or ; you have to wrap it with triple quotes. Ex “”“#password;”“”
password = Testing123!
;cert_file =
;key_file =
skip_verify = true
from_address =
from_name = Gandalf Grafana
#EHLO identity in SMTP dialog (defaults to instance_name)
;ehlo_identity =
#SMTP startTLS policy (defaults to ‘OpportunisticStartTLS’)
;startTLS_policy = NoStartTLS
But unfortunately this does not work, can you help me?

I can also find the grafana.ini inside the container, how can I edit it?


Did you restart the grafana service? A change in the ini file requires a restart

Yes, i´ve restarted the Container.
I just found a grafana.ini file inside the container under /etc/grafana/, but I am unsure how to include it under volumes so I can edit it.

It should be found under conf folder

Oh and you are using an unofficial docker image. U should probably reach out to that repo owner

Ok, I will redeploy grafana and try again. The alert function would be very important to me, is the alert manager absolutely necessary for this? But maybe this is the wrong forum for this question.
Sorry for my bad language and naivety. But I’m trying to learn the ropes.

1 Like

if i understand right,
you have to store this file in diffèrent the persistent volume,
i think this link can help you :

Thanks for your help. Now, i´ve edited the envirement Settings with the SMTP data, and now i get Mails.
But unfortunately the links inside the message route to “localhost”, i would like to link this to an ip address. in grafana.ini i changed the domain=IPADDRESS, but that didn’t work, still localhost. Is there another place to change the address?

i’m not expert in docker but i think this is about network settings in your docker compose file
this link may help you :