'SMTP Unencrypted connection in alertmanger

I'm facing an issue after configuring email in alertmanager as of the below log

level=warn ts=2022-04-12T16:35:29.370Z caller=notify.go:724 component=dispatcher receiver=email integration=email[0] msg="Notify attempt failed, will retry later" attempts=1 err="*smtp.plainAuth auth: unencrypted connection"

This is what I have configured in alertmanger:

global:
  resolve_timeout: 5m
  smtp_require_tls: false
  smtp_smarthost: smtp.demo.solutions:587
  smtp_from: [email protected]
  smtp_auth_username: [email protected]
  smtp_auth_password: mail@123
  http_config:
    tls_config:
      insecure_skip_verify: true
route:
  group_by: ['...']
  group_wait: 30s
  group_interval: 5m
  repeat_interval: 12h
  receiver: 'email'
  routes:
  - match:
      alertname: Watchdog
    receiver: 'null'
receivers:
- name: 'null'
- name: 'email'
  email_configs:
  - to: '[email protected], [email protected], [email protected]'
    headers:
      subject: '{{ template "custom_mail_subject" . }}'
    html: '{{ template "custom_mail_html" . }}'
templates:
- '/etc/alertmanager/config/mail.tmpl'

So what could be the issue and solution to it.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source