一、内网环境下 1.安装mailx yum install mailx 2.启动postfix服务 systemctl enable postfix systemctl start postfix systemctl status postfix 3.测试 echo "Hello!" | mail -s "Title" root@localhost 常用命令参数如下: 二、公网环境下 1.安装ma