Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-11042

send_email_curl() fails to send to O365

XMLWordPrintable

    • Sprint 15, Sprint 16
    • 0.5

      send_email_curl() prepends smtps:// for SSL/TLS email alerts.
      This however does't work for sending through O365 or even Gmail:

      e.g. curl with ssl to smtp://smtp.office365.com:587

      # curl smtp://smtp.office365.com:587 -v --ssl
      
      * Rebuilt URL to: smtp://smtp.office365.com:587/
      * Hostname was NOT found in DNS cache
      *   Trying 2a01:111:f400:1429::2...
      * Connected to smtp.office365.com (2a01:111:f400:1429::2) port 587 (#0)
      < 220 CO2PR05CA020.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 28 Jul 2016 09:50:32 +0000
      

      e.g. curl with ssl to smtps://smtp.office365.com:587 (what zabbix does if SSL/TLS is chosen

      # curl smtps://smtp.office365.com:587 -v --ssl
      
      * Rebuilt URL to: smtps://smtp.office365.com:587/
      * Hostname was NOT found in DNS cache
      *   Trying 2a01:111:f400:243c::2...
      * Connected to smtp.office365.com (2a01:111:f400:243c::2) port 587 (#0)
      * successfully set certificate verify locations:
      *   CAfile: none
        CApath: /etc/ssl/certs
      * SSLv3, TLS handshake, Client hello (1):
      * error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
      * Closing connection 0
      curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
      

      I think it would be best to leave the protocol used to the user.

            Unassigned Unassigned
            marsher Maros Bartko
            Team C
            Votes:
            5 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: