Get the App
SLTechnology News&Howtos  ›  Network Security  › 

The solution of "Support for SMTP authentication was not compiled in" in zabbix3.x email

Shulou Source: shulou.com Published: 2022-06-01 01:15:52 09月17日 Update

As shown in the question, after configuring STMP in the panel of zabbix, the "Support for SMTP authentication was not compiled in" error occurred when testing to send mail. In fact, the reason for this problem is that the libcurl version on our machines is too low. We can know from the official documentation of zabbix that if zabbix3.x wants to use SMTP, it needs version 7.20.0 or above of curl and the zabbix server needs to add a-with-libcurl module when compiling and installing. The official text is as follows:

To make SMTP authentication options available, Zabbix server should be compiled with the-with-libcurl compilation option with cURL 7.20.0 or higher.

Then, I passed

[root@localhost] # curl-V

This command checks the curl version on my machine. Sure enough, the version is too low.

Curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.21 Basic ECC zlib/1.2.3 libidn/1.18 libssh3/1.4.2Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftpFeatures: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

So the solution is simple: upgrade curl, then recompile and install the zabbix server

(1) upgrade curl:

[root@localhost ~] # rpm-Uvh http://www.city-fan.org/ftp/contrib/yum-repo/rhel6/x86_64/city-fan.org-release-1-13.rhel6.noarch.rpm[root@localhost ~] # yum install libcurl

Note: if you find this error:

Error: Package: libcurl-7.49.1-3.1.cf.rhel6.x86_64 (city-fan.org) Requires: libnghttp2.so.14 () (64bit) You could try using-- skip-broken to work around the problem You could try running: rpm-Va-- nofiles-- nodigest

It can be solved as follows:

[root@localhost ~] # rpm-Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/libnghttp2-1.6.0-1.el6.1.x86_64.rpm[root@localhost ~] # yum install libnghttp2

Then reinstall curl:

[root@localhost ~] # yum install libcurl

(2) recompile and install zabbix3:

[root@localhost zabbix-3.0.3] # cd / usr/local/src/zabbix-3.0.3 [root@localhost zabbix-3.0.3] # / configure-- prefix=/usr/local/zabbix-- enable-server-- enable-agent-- with-mysql-- enable-ipv6-- with-net-snmp-- with-libcurl-- with-libxml2 [root@localhost zabbix-3.0.3] # make & & make install

Tags: Version compilation official machine error upgrade service mail reason original text command document solution module solution problem panel test configuration method Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Linux Huawei Redmi Docker