首页 > 其他 > 详细

Mailx安装及设置smtp发送邮件

时间:2020-05-05 11:31:44      阅读:92      评论:0      收藏:0      [点我收藏+]

示例搭建

环境

系统 IP 软件
centos7.6 无所谓 mailx

操作步骤

]# yum -y install mailx
]# vim /etc/mail.rc
]# ss -tnlp #检查25端口是否开启
]# systemctl status postfix #检查postfix服务状态或者安装sendmail都可以
#网易邮箱
set from=xxx@163.com
set smtp=smtp.163.com 邮件服务器
set smtp-auth-user=xxx
set smtp-auth-password=xxxxx 163邮箱授权码
set smtp-auth=login

邮件格式:echo "邮件内容" | mail -s "邮件主题" 收件人邮箱地址
~]# echo "hello test" | mail -s "test message" xxx@163.com

Mailx安装及设置smtp发送邮件

原文:https://www.cnblogs.com/wanwz/p/12810255.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!