标签:带账号认证发邮件
Ubuntu带账号认证发邮件
安装heirloom-mailx
# apt-get install heirloom-mailx
修改/etc/nail.rc(最后添加)
set from=zhi.yang@ming.com
set smtp=10.0.0.4
set smtp-auth-user=zhi.yang@ming.com
set smtp-auth-password=123456
set smtp-auth-login
:wq
# echo "bb" mail -s "aa" zhi.ming@ming.com 此时发件人即是zhi.yang@ming.com
Redhat系统是安装mailx软件,配置文件名为/etc/mail.rc,内容同Ubuntu
本文出自 “linux” 博客,请务必保留此出处http://yangzhiming.blog.51cto.com/4849999/1739882
标签:带账号认证发邮件
原文地址:http://yangzhiming.blog.51cto.com/4849999/1739882