需要在zabbix前端设置用户与组,用户关联报警媒介!!!!! ------------------------------------------------------------------------------------------------------- 1.确保postfix 和 sendmail服务是关闭的 [root@localhost ~]# systemctl status sendmail Unit sendmail.service could not be found.
[root@localhost ~]# systemctl status postfix ● postfix.service - Postfix Mail Transport Agent Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled) Active: inactive (dead) since Sat 2020-07-04 16:55:04 CST; 10s ago
2.安装开启mailx 用于发送邮件 # yum install -y mailx.x86_64
3.配置mailx [root@zabbix ~]# vim /etc/mail.rc ---配置文件末尾配置 set from=king008ay@163.com set smtp=smtp.163.com set smtp-auth-user=king008ay@163.com #密码是163邮箱中设置生成的 set smtp-auth-password=XAUOZAGDQHQSHPHE set smtp-auth=login