SMTP config in defaults.ini

Hello team,

We want to delete the root policy which we are not able to do. We want to disable the smtp in defaults.ini file.

I disabled the whole smtp config and smtp enabled = false but both are not working. Restarting the grafana

Logs error:
Failed to start grafana. error: invalid email address for SMTP from_address config invalid email address for SMTP from_address config

Could you please help me?
Thanks in Advance.

Thanks & regards,
Bharath Kumar.

welcome to forum @chembakayalabharath

please share what you changed in the ini file?

#################################### SMTP / Emailing #####################
[smtp]
enabled = true
host = smtp-mail.outlook.com:587
user = $email

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

password = $PASSWORD
cert_file =
key_file =
skip_verify = true
from_address = $EMAIL
from_name = Grafana
ehlo_identity =
startTLS_policy =

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

This is the current current configuration I am using. I want to disable this config.

How to achieve this?

See the settings to use here

Is this an on prem grafana oss? Or a docker container instance?

It’s a docker container instance