Zabbix外部郵件告警配置mailx

關閉sendmail或者postfixvim

service sendmail stop
chkconfig sendmail off
service postfix stop
chkconfig postfix off
安裝mailx
yum install mailx服務器

備註:
使用外部郵箱帳號時,不須要啓動sendmail或者postfix
若是在sendmail或者postfix啓動的同時使用外部郵箱發送報警郵件,首先會讀取外部郵箱ide

設置mailx發信帳號
yum -y install mailx
ln -s /bin/mailx /bin/mail
vim /etc/mail.rc
#服務端轉發郵件到指定郵箱
set from=yourmail@163.compost

#填寫發送郵箱服務器地址smtp
set smtp=smtp.163.comit

#我的郵箱用戶
set smtp-auth-user=yourmail@163.com
#我的郵箱密碼
set smtp-auth-password=****
set smtp-auth=loginclass

相關文章
相關標籤/搜索