阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

msmtp在RHEL6.5下的安装

100次阅读
没有评论

共计 8630 个字符,预计需要花费 22 分钟才能阅读完成。

msmtp 在 RHEL6.5 下的安装

企业级监控软件 Zabbix 搭建部署之使用 mutt+msmtp 配置 Zabbix 邮件报警 http://www.linuxidc.com/Linux/2014-01/95002p2.htm

Nagios+mutt+msmtp 无法发送邮件的问题!http://www.linuxidc.com/Linux/2013-02/79509.htm

采用 Mutt 及 msmtp 配置进行邮件发送 http://www.linuxidc.com/Linux/2012-08/67086.htm

Mutt+Gmail+msmtp+Ubuntu 命令行发送邮件 http://www.linuxidc.com/Linux/2012-05/60841.htm

msmtp+MUTT 轻松实现服务器资源监控 http://www.linuxidc.com/Linux/2012-04/58065.htm

GNU/Linux 下 Gmail 的 mutt+msmtp+getmail 解决方案 http://www.linuxidc.com/Linux/2011-02/32031.htm

1. 解压

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

2. 配置

[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. 编译安装

[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′

正文完
星哥说事-微信公众号
post-qrcode
 
星锅
版权声明:本站原创文章,由 星锅 2022-01-20发表,共计8630字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中