There is a cryptic comment here 
<https://prometheus.io/docs/alerting/latest/configuration/#configuration-file>
:

  # The default SMTP TLS requirement.
  # *Note that Go does not support unencrypted connections to remote SMTP 
endpoints.*
  [ smtp_require_tls: <bool> | default = true ]

What I think it means is that Go does not support unencrypted SMTP 
connections *with authentication*.  There is more detail here:
https://github.com/prometheus/alertmanager/issues/1358

In other words: if you are using smtp_auth_username and smtp_auth_password, 
then in effect smtp_require_tls is forced to be True.

On Tuesday, 12 April 2022 at 08:50:46 UTC+1 [email protected] wrote:

> In alertmanager.yml,I tried
>  smtp_require_tls: false in global and insecure_skip_verify: true in 
> receivers,
>
> both of them failed with:
> level=error ts=2022-04-12T07:11:19.061Z 
> caller=dispatch.go:354 
> component=dispatcher 
> msg="Notify for alerts failed" 
> default/email[0]: notify retry canceled after 8 attempts: establish TLS 
> connection to server: x509: certificate signed by unknown authority"
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/ec531df7-a072-43fb-80ee-abd4966ef48en%40googlegroups.com.

Reply via email to