下载mailx:
http://nchc.dl.sourceforge.net/project/heirloom/heirloom-mailx/12.4/mailx-12.4.tar.bz2
tar jxvf mailx-12.4.tar.bz2 #解压
cd mailx-12.4 #进入目录
[root@localhost ~]# wget http://www.linuxfromscratch.org/patches/blfs/7.6/mailx-12.4-openssl_1.0.0_build_fix-1.patch
[root@localhost ~]# mv mailx-12.4-openssl_1.0.0_build_fix-1.patch mailx-12.4/
[root@localhost ~]# yum install patch
[root@localhost ~]#cd mailx-12.4/
[root@localhost mailx-12.4]# patch -Np1 -i mailx-12.4-openssl_1.0.0_build_fix-1.patch
[root@localhost mailx-12.4]# make
[root@localhost mailx-12.4]#make install UCBINSTALL=/usr/bin/install
[root@localhost mailx-12.4]#ln -s /usr/local/bin/mailx /bin/mail #创建 mailx到mail的软连接
[root@localhost mailx-12.4]#ln -s /etc/nail.rc /etc/mail.rc #创建mailx配置文件软连接
安装mailxc完成