1.安装发送邮件工具mailx [root@zabbix-server ~]# yum install mailx -y 2.自定义使用163邮箱为默认发件人(避免被当作垃圾邮件) set from=@.com set smtp=smtp..com set smtp-auth-user=username set smtp-auth-password=a7260488 set smtp-auth=login 注意:163邮箱需要开启一个授权密码,在非163专用客户端登陆都要使用授权密码登陆.(蛋疼…
#启动邮箱服务 systemctl start postfix.service #配置用户的邮箱发送邮件 vim /etc/mail.rc set from="xxx@xxx.com" set smtp="smtps://smtp.exmail.qq.com:465" set smtp-auth-user="xxx@xxx.com" set smtp-auth-password="xxxxxx" set smtp-auth=l…