-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Alert manager unable to send unsecured emails #1236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The issue you linked says the fix for that regression was added to go1.9.2, which was used to compile v0.13.0. |
i have same problem
|
level=error ts=2018-05-23T16:22:43.848809749Z caller=dispatch.go:266 component=dispatcher msg="Notify forr="*smtp.plainAuth failed: unencrypted connection" I have the same....Dose anyone know how to fix this problem? Alertmanager.ymlglobal: @brian-brazil , we need your help |
I also had this problem. This issue (golang/go#22166) suggest that it has been fixed in Go 1.10.x although I doubt it. I ran dockerized alertmanager 0.15.0-rc.3 which is built with go1.10.3 and I still have the same problem. According to AcalephStorage/consul-alerts#208 Go SMTP lib does not support non-TLS connection against non-local servers. |
As stated in the SMTP godoc, the library will allow plain authentication only if TLS is used or the server is local. So you'll have to fulfill one of the conditions to make it work. I'm afraid there's nothing much that can be done on the AlertManager's side. |
@simonpasquier That's understandable then but I would say that it would be nice to have it stated in the alertmanager's docs. If the application exposes |
…s#1243) * netclass_linux: remove varying labels from the 'up' metric This moves the variable label values such as 'operstate' out of the 'network_up' metric and into a separate metric called '_info'. This allows the 'up' metric to remain continous over state changes. Fixes prometheus#1236 Signed-off-by: Paul Gier <[email protected]>
Bump. Running into the same issue, need answers. |
just change the |
We just upgraded Alertmanager from version 0.9.1 to 0.13.0 and Prometheus from 1.8.1 to 2.1. The Alertmanager's email receiver doesn't work anymore with identical configuration.
In the log, we have an error:
msg="Notify attempt failed" attempt=10 integration=email err="*smtp.plainAuth failed: unencrypted connection"
Could it be related to this issue in net/smtp?
golang/go#22166
Th smtp related configuration is:
global:
smtp_smarthost: 'smtpserver:25'
smtp_from: 'user@domain'
smtp_auth_username: 'user'
smtp_requiere_tls: false
...
receivers:
email_configs:
headers:
subject: 'testing'
html: 'some body'
Also we tested requiere_tls parameter in email_configs section for the case it doesn't read the global parameter.
The text was updated successfully, but these errors were encountered: