Ad Widget

Collapse

Not able to send authenticated SMTP emails on Zabbix 3.0.8

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • asomwanshi
    Junior Member
    • Aug 2016
    • 5

    #1

    Not able to send authenticated SMTP emails on Zabbix 3.0.8

    Hi,

    I installed zabbix server 3.0.8 using rpm on centos 6.
    I have now set up email media and using it in one of the actions for trigger.

    When the action gets executed mail is not sent and following message is displayed:
    "Support for SMTP authentication was not compiled in"

    I am not sure why compilation should matter if I have used rpm to install.

    curl version is : curl 7.40.0 (x86_64-redhat-linux-gnu) libcurl/7.40.0 NSS/3.19.1 Basic ECC zlib/1.2.8 libidn/1.18 libssh2/1.4.2


    I get following message in logs when I start zabbix server:

    27429:20170407:092015.226 Starting Zabbix Server. Zabbix 3.0.8 (revision 65976).
    27429:20170407:092015.226 ****** Enabled features ******
    27429:20170407:092015.226 SNMP monitoring: YES
    27429:20170407:092015.226 IPMI monitoring: YES
    27429:20170407:092015.226 Web monitoring: YES
    27429:20170407:092015.226 VMware monitoring: YES
    27429:20170407:092015.226 SMTP authentication: NO
    27429:20170407:092015.226 Jabber notifications: YES
    27429:20170407:092015.226 Ez Texting notifications: YES
    27429:20170407:092015.226 ODBC: YES
    27429:20170407:092015.226 SSH2 support: YES
    27429:20170407:092015.226 IPv6 support: YES
    27429:20170407:092015.226 TLS support: YES
    27429:20170407:092015.226 ******************************

    Can anyone please tell me why this would happen?
    Attached Files
  • batchenr
    Senior Member
    • Sep 2016
    • 440

    #2
    Originally posted by asomwanshi
    Hi,

    I installed zabbix server 3.0.8 using rpm on centos 6.
    I have now set up email media and using it in one of the actions for trigger.

    When the action gets executed mail is not sent and following message is displayed:
    "Support for SMTP authentication was not compiled in"

    I am not sure why compilation should matter if I have used rpm to install.

    curl version is : curl 7.40.0 (x86_64-redhat-linux-gnu) libcurl/7.40.0 NSS/3.19.1 Basic ECC zlib/1.2.8 libidn/1.18 libssh2/1.4.2


    I get following message in logs when I start zabbix server:

    27429:20170407:092015.226 Starting Zabbix Server. Zabbix 3.0.8 (revision 65976).
    27429:20170407:092015.226 ****** Enabled features ******
    27429:20170407:092015.226 SNMP monitoring: YES
    27429:20170407:092015.226 IPMI monitoring: YES
    27429:20170407:092015.226 Web monitoring: YES
    27429:20170407:092015.226 VMware monitoring: YES
    27429:20170407:092015.226 SMTP authentication: NO
    27429:20170407:092015.226 Jabber notifications: YES
    27429:20170407:092015.226 Ez Texting notifications: YES
    27429:20170407:092015.226 ODBC: YES
    27429:20170407:092015.226 SSH2 support: YES
    27429:20170407:092015.226 IPv6 support: YES
    27429:20170407:092015.226 TLS support: YES
    27429:20170407:092015.226 ******************************

    Can anyone please tell me why this would happen?
    i have SMTP authentication: NO and it does sends mails.
    can you look at Reports->Action log see if it try to send mail and what it failed

    Comment

    • Atsushi
      Senior Member
      • Aug 2013
      • 2028

      #3
      In the package provided by Zabbix LLC, it is built by OS standard package and built.
      For RHEL 6 (CentOS 6), the standard curl package version is 7.19.
      And SMTP Authentication can not be used because it determines whether SMTP Authentication can be used during Zabbix package build.

      You will need to rebuild the Zabbix binaries using the new curl library.
      Or, if you use RHEL 7 (CentOS 7), you can use SMTP Authentication with the package published by Zabbix LLC.

      Comment

      • harbinger16
        Junior Member
        • Sep 2017
        • 1

        #4
        For those that are having trouble with smtp authentication in Centos 6, here is what I did to compile in authentication:

        # use whatever url you need to download the source
        curl -L -O 'https://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/3.4.1/zabbix-3.4.1.tar.gz?r=&ts=1505492115&use_mirror=svwh'

        mv zabbix-3.4.1.tar.gz\?r=\&ts=1505492115\&use_mirror=svwh zabbix-3.4.1.tar.gz

        tar -xf zabbix-3.4.1.tar.gz

        cd zabbix-3.4.1

        ./configure --enable-server --with-mysql --with-net-snmp --with-libcurl --with-libxml2 --with-openssl --with-ssh2 --with-openipmi --with-ldap

        make install

        # had to move the binary since the rpm installed "/usr/sbin/zabbix_server_mysql" and that is what the service expected
        (if needed) mv /usr/local/sbin/zabbix_server /usr/sbin/zabbix_server_mysql

        Comment

        Working...