最新消息:

Centos5 安装mailx-12.4

centos admin 4739浏览 0评论

记录一下安装
wget ftp://ftp.lt.freebsd.org/pub/FreeBSD/ports/distfiles/mailx-12.4.tar.bz2
tar xjvf mailx-12.4.tar.bz2
cd mailx-12.4
yum remove sendmail -y
make
make install UCBINSTALL=/usr/bin/install
cp /etc/nail.rc /etc/nail.rc.bak
cat > /etc/nail.rc <<eof
 set from=youname@163.com
set smtp=smtp.163.com
set smtp-auth-user=youname@163.com
set smtp-auth-password=youpassword
set smtp-auth=login
EOF

man mailx

-a file
Attach the given file to the message.
发附件再不愁。

转载请注明:爱开源 » Centos5 安装mailx-12.4

您必须 登录 才能发表评论!