sudo vim /etc/grafana/grafana.ini
#################################### SMTP / Emailing ##########################
[smtp]
enabled = true
host = mail.cuchost.com:25
user = admin@xxx.com //邮箱服务器账号,非自己邮箱账号
# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
password = xxxxx //邮箱服务器密码
;cert_file =
;key_file =
;skip_verify = false
from_address = admin@xxx.com //同邮箱服务器账号
from_name = Grafana //随意
# EHLO identity in SMTP dialog (defaults to instance_name)
;ehlo_identity = dashboard.example.com
# SMTP startTLS policy (defaults t