1:安装mailx yum -y install mailx 2:修改配置文件 在文件的末尾添加下面的代码,注意修改自己的邮箱信息和密码,这里的smtp-auth-password是由箱授权码,不是邮箱密码。 [root@54a650f50205 ~]# cat /etc/mail.rc # This is the configuration file for Heirloom mailx (formerly .......... set from="xxxxxx@qq.com"