ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Linux下可绕过Sendmail直接发邮件的nail/mail程式

Linux下可绕过Sendmail直接发邮件的nail/mail程式

原创 Linux操作系统 作者:spider0283 时间:2012-08-16 21:22:41 0 删除 编辑

1. 编辑/etc/mail.rc,添加如下

set from=xxx@163.com  smtp=smtp.163.com

set smtp-auth-user=xxx@163.com  smtp-auth-password=XXXXXX smtp-auth=login

2. 使用mail命令发送测试邮件

mail -s "test" xxx@163.com  < /home/md/cmdfile  

如上所述只适用于RHEL/CentOS 6.X以上版本,如要在RHEL 4/5上不配置sendmail直接用mail发送邮件,可安装nail RPM包

http://rpm.pbone.net/index.php3/stat/4/idpl/16350845/dir/redhat_el_4/com/nail-12.3-4.el4.rf.x86_64.rpm.html

http://rpm.pbone.net/index.php3/stat/4/idpl/12055091/dir/redhat_el_5/com/nail-12.3-4.el5.rf.i386.rpm.html

http://rpm.pbone.net/index.php3/stat/4/idpl/12088603/dir/redhat_el_5/com/nail-12.3-4.el5.rf.x86_64.rpm.html


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/38267/viewspace-741192/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-03-29

  • 博文量
    194
  • 访问量
    719187