安装服务:

yum -y install sendmail mailx libreport-plugin-mailx sharutils mutt

启动服务

systemctl start sendmail

配置邮箱服务器:

vim /etc/mail.rc

centos7 mailx 发送邮件配置

 

测试发送:  mail -s  "theme" 8392********@qq.com < check_host.sh

 

 

相关文章:

  • 2021-12-06
  • 2022-12-23
  • 2021-11-05
  • 2021-08-13
  • 2021-05-10
猜你喜欢
  • 2021-12-10
  • 2022-12-23
  • 2021-12-29
  • 2021-09-05
  • 2021-08-29
  • 2022-12-23
相关资源
相似解决方案