#################################### SMTP / Emailing #####################
[smtp]
enabled = true
host = :25
user = @.com
password =""
;cert_file =
;key_file =
skip_verify = true
from_address = dineshtest2019@.com
from_name = Grafana
[emails]
welcome_email_on_sign_up = false
Here is my log for your reference:
t=2019-12-04T05:44:30-0700 lvl=info msg=“Sending alert notification to” logger=alerting.notifier.email addresses=[dineshtest2019@.com]
t=2019-12-04T05:44:32-0700 lvl=eror msg=“Failed to send alert notification email” logger=alerting.notifier.email error=“Failed to send notification to email address: dineshtest2019@.com: dial tcp [::1]:25: connectex: No connection could be made because the target machine actively refused it.”
t=2019-12-04T05:44:32-0700 lvl=eror msg=“failed to send notification” logger=alerting.notifier uid= error=“Failed to send notification to email address: dineshtest2019@.com: dial tcp [::1]:25: connectex: No connection could be made because the target machine actively refused it.”
In above, I have not provided exact domain, host and password details as am not supposed to share and hence is put under ‘<>’.
I tried without user and password as well but it doesn’t seem to be working.
I tested sending an email through PS1 script from the Grafana app server and it is working. So SMTP connection is allowed for that IP with default port# 25.
Ports 465 and 587 also tried still unable to send emails.
So, I need to understand what could be the issue and how to fix it? We can’t enable SSL/TLS for this alerting in SMTP server as doing so would impact other connections.
Please help with solution as am entering 7th day due to this issue and am in need to deploy my solution to First Prod run within few days.
Thank you.
Regards,
DinesH