Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Error sending email notification: starttls failed: x509: certificate signed by unknown authority #193
How can I get pass the TLS error for sending email notification to a remote server?
I configured the var:
I have this error:
I tried to use the prometheus config: tls_config :
Disable validation of the server certificate. [ insecure_skip_verify: ] http://prometheus.io/docs/operating/configuration/
I am not sure really where to put the tls_config parameters, anywhere is failing except here...
Any help welcome ;-)
You are setting the TLS options for scraping the cAdvisvor metrics endpoint. The error is related to validating certifcates when sending email notifications for which you cannot configure skipping verification.
@gregbkr maybe you can modify the source code
then, go build it.
referenced this issue
Mar 4, 2016
I bumped to this problem also when using self signed certificates but managed to solve it eventually. I created a blog post about it @ http://blog.amigapallo.org/2016/04/14/alertmanager-docker-container-self-signed-smtp-server-certificate/
Hope someone finds it helpful!
Could somebody elaborate how to turn off the use of STARTTLS? In the alertmanager.conf tried
but it still fails with
The SMTP settings are available in both the local and the global section. The global section is used as fallback, but the local section is more specific. This wasn’t clear to me when I implemented RequireTLS, so that’s why it’s only available in the local section.
One might argue that it’s good to encourage users to enable TLS, and not having a global setting to use has some nagging effect :). Then again, this is not my project, so I can’t comment on whether a PR which introduced RequireTLS in the global section would be accepted.