一款实现smtp发送邮件的工具,个人觉得比系统自带的sendmail好用多了,而且简单配置。
系统:Ubuntu 13.4
sudo apt-get install heirloom-mailx or
需要的软件包:mailx-12.4.tar.bz2
tar jxf mailx-12.4.tar.bz2 ; cd mailx-12.4
解压完后执行:
make
make install UCBINSTALL=/usr/bin/install
cp /etc/nail.rc /etc/nail.rc.bak
# vi /etc/nail.rc
set from=user@163.com
set smtp=smtp.163.com
set smtp-auth-user=user@163.com
set smtp-auth-password=userPASSWD
set smtp-auth=login

echo "test" | /usr/local/bin/mailx -v -s "tes88t" user@163.com