Mailx安装与使用

Mailx安装与使用

https://www.cnblogs.com/dingkailinux/p/8723378.html


1.卸载sendmail与postfix

yum -y install mailx
2.安装mailx

yum -y remove sendmail postfix
3.配置mail.rc

vim /etc/mail.rc
set from="dingkaitest@163.com" #用来发送邮件的邮箱
set smtp=smtp.163.com      #163的邮件发送服务器 
set smtp-auth-user=dingkaitest  #邮箱用户名(也可以写成"dingkaitest@163.com")
set smtp-auth-password=密码  #邮箱密码
set smtp-auth=login
4.测试发送

echo "hello,world"|mailx -v -s "test" 目标邮箱
————————————————
版权声明:本文为CSDN博主「david-wh-2020」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/yaoshixian/article/details/89531777

posted @   ianCloud  阅读(524)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek “源神”启动!「GitHub 热点速览」
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· C# 集成 DeepSeek 模型实现 AI 私有化(本地部署与 API 调用教程)
· DeepSeek R1 简明指南:架构、训练、本地部署及硬件要求
· NetPad:一个.NET开源、跨平台的C#编辑器
点击右上角即可分享
微信分享提示