RHEL(Oracle Linxu/CentOS)系统下,如果使用sendmail发送邮件,如果不特殊设置,一般发件箱地址为user@hostname,例如,hostname为DB-Server.localdomain,在root用户下使用下面命令发送一封邮件:

 

[root@DB-Server ~]# hostname -f
 
DB-Server.localdomain
 
[root@DB-Server ~]# echo "hello,it is a test email from kerry" | mail -s "Hello,Welcome your test email" konglb@xxx.com

相关文章:

  • 2022-03-03
  • 2021-11-02
  • 2022-12-23
  • 2021-06-05
  • 2022-12-23
  • 2021-05-21
  • 2022-12-23
猜你喜欢
  • 2021-08-04
  • 2021-12-09
  • 2021-10-19
相关资源
相似解决方案