Grafana email alerting error

Configuring email alert channel, got following error in the log:

t=2017-05-07T00:47:13+0000 lvl=info msg=“Sending alert notification to” logger=alerting.notifier.email addresses=[xxxxxx@xxx.x]
t=2017-05-07T00:47:23+0000 lvl=eror msg=“Failed to send alert notification email” logger=alerting.notifier.email error="dial tcp 123.125.50.112:25: i/o timeout"
t=2017-05-07T00:47:23+0000 lvl=eror msg=“Failed to send alert notifications” logger=context userId=1 orgId=1 uname=admin error="dial tcp 123.125.50.112:25: i/o timeout"
t=2017-05-07T00:47:23+0000 lvl=eror msg=“Request Completed” logger=context userId=1 orgId=1 uname=admin method=POST path=/api/alert-notifications/test status=500 remote_addr=172.18.0.1 time_ms=10.013µs size=48

Anyone has idea what’s the problem?

SMTP server timeout I think

Using Gmail’s SMTP is working fine. The configuration is given below, hope this is useful.

#################################### SMTP / Emailing #####################
[smtp]
enabled = true
host = smtp.gmail.com:465
user = abcd@gamil.com
// If the password contains # or ; you have to wrap it with trippel quotes. Ex “”"#password;"""
password ="password123"
cert_file =
key_file =
skip_verify = true
from_address = abcd@gamil.com
from_name = Grafana

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

1 Like