minsfind

 

(1)系统:centos7

         邮箱:heirloom-mailx

(2)写邮件。例如: echo \'This is test mail\' | mail -s \'test\' 8*****133@qq.com

(3)但是QQ邮箱收不到。需要在QQ邮箱的设置中开启SMTP、IMTP等功能,参考:

https://jingyan.baidu.com/article/6d704a133a245f28db51caf5.html

4)结果还是收不到,需要把centos的邮箱地址加到QQ邮箱的白名单里面去

https://jingyan.baidu.com/article/09ea3ede7bbed6c0aede39da.html

5)收到了!

 

 

6)发邮件给我(举例):cat /var/log/test0405 | mail -s \'正经邮件\' 8*****133@qq.com

echo “正文内容” | mail -s \'正经邮件\' 8*****133@qq.com

 

**************************************************************************************

安装sendmail邮箱简单教程:

https://jingyan.baidu.com/article/09ea3ede7bbed6c0aede39da.html

**************************************************************************************

用途:可以结合shell脚本、定时任务将监控结果发送到邮箱中。

 

分类:

技术点:

相关文章:

  • 2021-09-30
  • 2018-10-10
  • 2022-02-09
  • 2021-08-02
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-29
  • 2021-04-01
  • 2021-12-02
  • 2021-12-05
  • 2021-11-25
  • 2021-12-19
  • 2021-12-20
相关资源
相似解决方案