Sending email from grafana community app on 2410

I’ve installed the Grafana community app on TrueNAS 24.10, and its unclear to me how to configure smtp email sending. I don’t see a way to configure email in the TrueNAS app UI for Grafana and Grafana itself has no email setup UI.

On a VM based install I’d have a local listener on port 25 and edit /etc/grafana/grafana.ini to use localhost:25. Seems like the best email setup for a truenas container app would be to proxy through TrueNAS’s own email config, but I haven’t dug into that.

Suggestions for how to setup email sending in grafana?

I should have mentioned that I have email working an my TrueNAS setup and have added the GF_SMTP_ENABLED with a value of ‘true’, but when I try to set a test email in grafana the error message essentially says no one is home on port 25

SMTP Configuration for Grafana is documented here:

If you use environment variables the syntax is GF_<SectionName>_<KeyName> as outlined in Configure Grafana | Grafana documentation.

Some examples of environment variables which you have to set:

  • GF_SMTP_ENABLED (you already found that one)
  • GF_SMTP_HOST
  • GF_SMTP_USER
  • GF_SMTP_PASSWORD

Thanks. Is there a way to reference the host server’ss email setup. Meaning it would be nice to be able to proxy through the email setup I’ve already done in TrueNAS itself.

There is no way to reuse the host email setup that I know of.