普拉多VX

人生一路,不问来时,不知归期

0%

Grafana 7.0 SMTP邮箱配置

邮箱配置

Grafana 以qq邮箱为例

修改grafana.ini配置文件

1
2
3
4
5
6
7
8
9
10
11
12
13
[root@iZ2zecgq3cou36re3sxh4bZ ~]# vim  /etc/grafana/grafana.ini  # 找到smtp标签
#################################### SMTP / Emailing ##########################
[smtp]
enabled = true# 启用,默认是false
host = smtp.qq.com:465 # 邮箱服务器及端口
user = 923401910@qq.com
# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
password = xxxxxxxxxxx # 授权码/密码
;cert_file =
;key_file =
;skip_verify = false
from_address = 923401910@qq.com # 发件人账户,必须和user一致
from_name = Grafana #自定义的名字

重启

1
2
3
[root@iZ2zecgq3cou36re3sxh4bZ ~]# /etc/init.d/grafana-server restart
Restarting grafana-server (via systemctl): [ OK ]
[root@iZ2zecgq3cou36re3sxh4bZ ~]#

测试结果