Msmtp installation in RHEL6.5

Source: Internet
Author: User
Install the enterprise-level monitoring software Zabbix in RHEL6.5 to set up and deploy msmtp. Use mutt + msmtp to configure Zabbix mail alarm! Http://www.linuxidc.com/linux/2013-02/79509.htm?muttand m

Msmtp installation in RHEL6.5

Enterprise Monitoring Software Zabbix build deployment using mutt + msmtp configure Zabbix mail alarm http://www.linuxidc.com/Linux/2014-01/95002p2.htm

Nagios + mutt + msmtp cannot send emails! Http://www.linuxidc.com/Linux/2013-02/79509.htm

Send mail http://www.linuxidc.com/Linux/2012-08/67086.htm with Mutt and msmtp Configuration

Mutt + Gmail + msmtp + Ubuntu command line send mail http://www.linuxidc.com/Linux/2012-05/60841.htm

Msmtp + MUTT easily implement server resource monitoring http://www.linuxidc.com/Linux/2012-04/58065.htm

GNU/Linux Gmail mutt + msmtp + getmail solution http://www.linuxidc.com/Linux/2011-02/32031.htm

1. Extract

[Root @ zabbix ~] # Tar-jxvf msmtp-1.4.32.tar.bz2

2. Configuration

[Root @ zabbix ~] # Cd msmtp-1.4.32

[Root @ zabbix msmtp-1.4.32] #./configure -- prefix =/usr/local/msmtp -- sysconfdir =/usr/local/msmtp/etc
Checking build system type... x86_64-unknown-linux-gnu
Checking host system type... x86_64-unknown-linux-gnu
Checking target system type... x86_64-unknown-linux-gnu
Checking for gcc... gcc
Checking whether the C compiler works... yes
Checking for C compiler default output file name... a. out
Checking for suffix of executables...
Checking whether we are cross compiling... no
Checking for suffix of object files... o
Checking whether we are using the gnu c compiler... yes
Checking whether gcc accepts-g... yes
Checking for gcc option to accept ISO c89... none needed
Checking whether gcc understands-c and-o together... yes
Checking how to run the C preprocessor... gcc-E
Checking for grep that handles long lines and-e.../bin/grep
Checking for egrep.../bin/grep-E
Checking for ansi c header files... yes
Checking for sys/types. h... yes
Checking for sys/stat. h... yes
Checking for stdlib. h... yes
Checking for string. h... yes
Checking for memory. h... yes
Checking for strings. h... yes
Checking for inttypes. h... yes
Checking for stdint. h... yes
Checking for unistd. h... yes
Checking minix/config. h usability... no
Checking minix/config. h presence... no
Checking for minix/config. h... no
Checking whether it is safe to define _ EXTENSIONS _... yes
Checking for special C compiler options needed for large files... no
Checking for _ FILE_OFFSET_BITS value needed for large files... no
Checking for a BSD-compatible install.../usr/bin/install-c
Checking whether build environment is sane... yes
Checking for a thread-safe mkdir-p.../bin/mkdir-p
Checking for gawk... gawk
Checking whether make sets $ (MAKE)... yes
Checking for style of include used by make... GNU
Checking whether make supports nested variables... yes
Checking dependency style of gcc... gcc3
Checking whether make supports nested variables... (cached) yes
Checking for gcc... (cached) gcc
Checking whether we are using the gnu c compiler... (cached) yes
Checking whether gcc accepts-g... (cached) yes
Checking for gcc option to accept ISO c89... (cached) none needed
Checking whether gcc understands-c and-o together... (cached) yes
Checking for a sed that does not truncate output.../bin/sed
Checking whether NLS is requested... yes
Checking for msgfmt.../usr/bin/msgfmt
Checking for gmsgfmt.../usr/bin/msgfmt
Checking for xgettext.../usr/bin/xgettext
Checking for msgmerge.../usr/bin/msgmerge
Checking for ld used by gcc.../usr/bin/ld
Checking if the linker (/usr/bin/ld) is GNU ld... yes
Checking for shared library run path origin... done
Checking for CFPreferencesCopyAppValue... no
Checking for CFLocaleCopyCurrent... no
Checking for GNU gettext in libc... yes
Checking whether to use NLS... yes
Checking where the gettext function comes from... libc
Checking sysexits. h usability... yes
Checking sysexits. h presence... yes
Checking for sysexits. h... yes
Checking netdb. h usability... yes
Checking netdb. h presence... yes
Checking for netdb. h... yes
Checking arpa/inet. h usability... yes
Checking arpa/inet. h presence... yes
Checking for arpa/inet. h... yes
Checking sys/socket. h usability... yes
Checking sys/socket. h presence... yes
Checking for sys/socket. h... yes
Checking sys/wait. h usability... yes
Checking sys/wait. h presence... yes
Checking for sys/wait. h... yes
Checking for fmemopen... yes
Checking for fseeko... yes
Checking for fseeko64... yes
Checking for getpass... yes
Checking for getservbyname... yes
Checking for link... yes
Checking for mkstemp... yes
Checking for sigaction... yes
Checking for strndup... yes
Checking for syslog... yes
Checking for vasprintf... yes
Checking for library containing nanosleep... none required
Checking for library containing socket... none required
Checking for pkg-config.../usr/bin/pkg-config
Checking pkg-config is at least version 0.9.0... yes
Checking for libgnutls... no
Configure: WARNING: library libgnutls not found:
Configure: WARNING: No package 'gnutls' found
Configure: WARNING: libgnutls is provided by GnuTLS; Debian package: libgnutls-dev
Checking for libssl... no
Configure: WARNING: library libssl not found:
Configure: WARNING: No package 'openssl 'found
Configure: WARNING: libssl is provided by OpenSSL; Debian package: libssl-dev
Configure: WARNING: Neither GnuTLS nor OpenSSL found, disabling TLS/SSL support
Checking for libgsasl... no
Configure: WARNING: library libgsasl not found:
Configure: WARNING: No package 'libgsasl' found
Configure: WARNING: libgsasl is provided by gnu sasl; Debian package: libgsasl7-dev
Checking for libidn... no
Configure: WARNING: library libidn not found:
Configure: WARNING: No package 'libidn' found
Configure: WARNING: libidn is provided by GNU Libidn; Debian package: libidn11-dev
Checking for libgnome_keyring... no
Configure: WARNING: library libgnome-keyring not found:
Configure: WARNING: No package 'gnome-keyring-1 'found
Configure: WARNING: libgnome-keyring is provided by Gnome; Debian package: libgnome-keyring-dev
Checking for SecKeychainGetVersion... no
Checking that generated files are newer than configure... done
Configure: creating./config. status
Config. status: creating Makefile
Config. status: creating src/Makefile
Config. status: creating po/Makefile. in
Config. status: creating doc/Makefile
Config. status: creating scripts/Makefile
Config. status: creating config. h
Config. status: executing depfiles commands
Config. status: executing po-directories commands
Config. status: creating po/POTFILES
Config. status: creating po/Makefile

Install prefix ......:/usr/local/msmtp
TLS/SSL support...: no (Library: none)
Gnu sasl support...: no
GNU Libidn support...: no
NLS support ......: yes
GNOME Keyring support...: no
MacOS X Keychain support: no
3. Compile and install

[Root @ zabbix msmtp-1.4.32] # make & make install

Make all-recursive
Make [1]: Entering directory '/root/msmtp-1.4.32'
Making all in src
Make [2]: Entering directory '/root/msmtp-1.4.32/src'
CC conf. o
CC list. o
CC msmtp. o
CC net. o
CC netrc. o
CC readbuf. o
CC smtp. o
CC stream. o
CC tools. o
CC xalloc. o
CC aliases. o
CC base64.o
CC md5.o
CC md5-apps.o
CCLD msmtp
Make [2]: Leaving directory/root/msmtp-1.4.32/src'
Making all in po
Make [2]: Entering directory '/root/msmtp-1.4.32/po'
Make [2]: Leaving directory '/root/msmtp-1.4.32/po'
Making all in doc
Make [2]: Entering directory '/root/msmtp-1.4.32/doc'
Make [2]: Nothing to be done for 'all '.
Make [2]: Leaving directory '/root/msmtp-1.4.32/doc'
Making all in scripts
Make [2]: Entering directory '/root/msmtp-1.4.32/scripts'
Make [2]: Nothing to be done for 'all '.
Make [2]: Leaving directory '/root/msmtp-1.4.32/scripts'
Make [2]: Entering directory '/root/msmtp-1.4.32'
Make [2]: Leaving directory '/root/msmtp-1.4.32'
Make [1]: Leaving directory '/root/msmtp-1.4.32'
Making install in src
Make [1]: Entering directory '/root/msmtp-1.4.32/src'
Make [2]: Entering directory '/root/msmtp-1.4.32/src'
/Bin/mkdir-p '/usr/local/msmtp/bin'
/Usr/bin/install-c msmtp '/usr/local/msmtp/bin'
Make [2]: Nothing to be done for 'Install-data-am '.
Make [2]: Leaving directory/root/msmtp-1.4.32/src'
Make [1]: Leaving directory/root/msmtp-1.4.32/src'
Making install in po
Make [1]: Entering directory '/root/msmtp-1.4.32/po'
Installing de. gmo as/usr/local/msmtp/share/locale/de/LC_MESSAGES/msmtp.mo
If test "msmtp" = "gettext-tools"; then \
/Bin/mkdir-p/usr/local/msmtp/share/gettext/po ;\
For file in Makefile. in. in remove-potcdate.sin quot. sed boldquot. sed en@quot.header en@boldquot.header insert-header.sin Rules-quot Makevars. template; do \
/Usr/bin/install-c-m 644./$ file \
/Usr/local/msmtp/share/gettext/po/$ file ;\
Done ;\
For file in Makevars; do \
Rm-f/usr/local/msmtp/share/gettext/po/$ file ;\
Done ;\
Else \
:;\
Fi
Make [1]: Leaving directory '/root/msmtp-1.4.32/po'
Making install in doc
Make [1]: Entering directory '/root/msmtp-1.4.32/doc'
Make [2]: Entering directory '/root/msmtp-1.4.32/doc'
Make [2]: Nothing to be done for 'Install-exec-am '.
/Bin/mkdir-p '/usr/local/msmtp/share/info'
/Usr/bin/install-c-m 644./msmtp.info '/usr/local/msmtp/share/info'
Install-info -- info-dir = '/usr/local/msmtp/share/info''/usr/local/msmtp/share/info/msmtp.info'
/Bin/mkdir-p '/usr/local/msmtp/share/man/man1'
/Usr/bin/install-c-m 644 msmtp.1 '/usr/local/msmtp/share/man/man1'
Make [2]: Leaving directory '/root/msmtp-1.4.32/doc'
Make [1]: Leaving directory '/root/msmtp-1.4.32/doc'
Making install in scripts
Make [1]: Entering directory '/root/msmtp-1.4.32/scripts'
Make [2]: Entering directory '/root/msmtp-1.4.32/scripts'
Make [2]: Nothing to be done for 'Install-exec-am '.
Make [2]: Nothing to be done for 'Install-data-am '.
Make [2]: Leaving directory '/root/msmtp-1.4.32/scripts'
Make [1]: Leaving directory '/root/msmtp-1.4.32/scripts'
Make [1]: Entering directory '/root/msmtp-1.4.32'
Make [2]: Entering directory '/root/msmtp-1.4.32'
Make [2]: Nothing to be done for 'Install-exec-am '.
Make [2]: Nothing to be done for 'Install-data-am '.
Make [2]: Leaving directory '/root/msmtp-1.4.32'
Make [1]: Leaving directory '/root/msmtp-1.4.32'

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-05/102259.htm

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.