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

msmtp在RHEL6.5下的安装

391次阅读
没有评论

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

星哥玩云

星哥玩云
星哥玩云
分享互联网知识
用户数
4
文章数
19351
评论数
4
阅读量
7994368
文章搜索
热门文章
星哥带你玩飞牛NAS-6:抖音视频同步工具,视频下载自动下载保存

星哥带你玩飞牛NAS-6:抖音视频同步工具,视频下载自动下载保存

星哥带你玩飞牛 NAS-6:抖音视频同步工具,视频下载自动下载保存 前言 各位玩 NAS 的朋友好,我是星哥!...
星哥带你玩飞牛NAS-3:安装飞牛NAS后的很有必要的操作

星哥带你玩飞牛NAS-3:安装飞牛NAS后的很有必要的操作

星哥带你玩飞牛 NAS-3:安装飞牛 NAS 后的很有必要的操作 前言 如果你已经有了飞牛 NAS 系统,之前...
我把用了20年的360安全卫士卸载了

我把用了20年的360安全卫士卸载了

我把用了 20 年的 360 安全卫士卸载了 是的,正如标题你看到的。 原因 偷摸安装自家的软件 莫名其妙安装...
再见zabbix!轻量级自建服务器监控神器在Linux 的完整部署指南

再见zabbix!轻量级自建服务器监控神器在Linux 的完整部署指南

再见 zabbix!轻量级自建服务器监控神器在 Linux 的完整部署指南 在日常运维中,服务器监控是绕不开的...
飞牛NAS中安装Navidrome音乐文件中文标签乱码问题解决、安装FntermX终端

飞牛NAS中安装Navidrome音乐文件中文标签乱码问题解决、安装FntermX终端

飞牛 NAS 中安装 Navidrome 音乐文件中文标签乱码问题解决、安装 FntermX 终端 问题背景 ...
阿里云CDN
阿里云CDN-提高用户访问的响应速度和成功率
随机文章
300元就能买到的”小钢炮”?惠普7L四盘位小主机解析

300元就能买到的”小钢炮”?惠普7L四盘位小主机解析

  300 元就能买到的 ” 小钢炮 ”?惠普 7L 四盘位小主机解析 最近...
零成本上线!用 Hugging Face免费服务器+Docker 快速部署HertzBeat 监控平台

零成本上线!用 Hugging Face免费服务器+Docker 快速部署HertzBeat 监控平台

零成本上线!用 Hugging Face 免费服务器 +Docker 快速部署 HertzBeat 监控平台 ...
自己手撸一个AI智能体—跟创业大佬对话

自己手撸一个AI智能体—跟创业大佬对话

自己手撸一个 AI 智能体 — 跟创业大佬对话 前言 智能体(Agent)已经成为创业者和技术人绕...
星哥带你玩飞牛NAS-11:咪咕视频订阅部署全攻略

星哥带你玩飞牛NAS-11:咪咕视频订阅部署全攻略

星哥带你玩飞牛 NAS-11:咪咕视频订阅部署全攻略 前言 在家庭影音系统里,NAS 不仅是存储中心,更是内容...
150元打造低成本NAS小钢炮,捡一块3865U工控板

150元打造低成本NAS小钢炮,捡一块3865U工控板

150 元打造低成本 NAS 小钢炮,捡一块 3865U 工控板 一块二手的熊猫 B3 工控板 3865U,搭...

免费图片视频管理工具让灵感库告别混乱

一言一句话
-「
手气不错
12.2K Star 爆火!开源免费的 FileConverter:右键一键搞定音视频 / 图片 / 文档转换,告别多工具切换

12.2K Star 爆火!开源免费的 FileConverter:右键一键搞定音视频 / 图片 / 文档转换,告别多工具切换

12.2K Star 爆火!开源免费的 FileConverter:右键一键搞定音视频 / 图片 / 文档转换...
星哥带你玩飞牛NAS-14:解锁公网自由!Lucky功能工具安装使用保姆级教程

星哥带你玩飞牛NAS-14:解锁公网自由!Lucky功能工具安装使用保姆级教程

星哥带你玩飞牛 NAS-14:解锁公网自由!Lucky 功能工具安装使用保姆级教程 作为 NAS 玩家,咱们最...
自己手撸一个AI智能体—跟创业大佬对话

自己手撸一个AI智能体—跟创业大佬对话

自己手撸一个 AI 智能体 — 跟创业大佬对话 前言 智能体(Agent)已经成为创业者和技术人绕...
零成本上线!用 Hugging Face免费服务器+Docker 快速部署HertzBeat 监控平台

零成本上线!用 Hugging Face免费服务器+Docker 快速部署HertzBeat 监控平台

零成本上线!用 Hugging Face 免费服务器 +Docker 快速部署 HertzBeat 监控平台 ...
恶意团伙利用 PHP-FPM 未授权访问漏洞发起大规模攻击

恶意团伙利用 PHP-FPM 未授权访问漏洞发起大规模攻击

恶意团伙利用 PHP-FPM 未授权访问漏洞发起大规模攻击 PHP-FPM(FastCGl Process M...