influxdata / influxdata/kapacitor

SMTP protocol for sending email not working

Open
#1,472 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.4k
Forks
479
Avg merge
4d 16h
Merged PRs (30d)
4

Description

Hello!
I'm trying to send email using Gmail SMTP.
I tried to implement the advice given in #660 but whithout success...
My kapacitor.conf (I'm still testing so I send emails to myself):
```
[smtp]
enabled = true
host = "smtp.gmail.com"
port = 587
username = "blabla@gmail.com"
password = "*********"
no-verify = false
global = false
state-changes-only = false
from = "blabla@gmail.com"
to = ["blabla@gmail.com"]
idle-timeout = "300s"
```
The relevant part of my tick.script (the log is functioning well):
```
// Alert
alert
.log('/tmp/GENERAL_alert.log')
.email('blabla@gmail.com')
```
Any idea on what I am doing wrong?
Thanks!

Contributor guide

Open the contributing guide

Research direction

Start with the SMTP settings in kapacitor.conf and the alert expression in the tick.script, then reproduce the Gmail SMTP configuration while checking the available alert or SMTP output. Done means the configured alert sends an email successfully through Gmail SMTP; the issue does not provide an error message or named test.

Written by the indexing model from the issue text.

Assessment

Domain
observability-sre
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.