icinga2使用587端口发邮件(postfix):
原有的postfix发邮件操作不变
vi /etc/mail.rc (最后添加)
set smtp=smtp://smtp.ming.com:587 set smtp-auth=login set smtp-auth-user=zhi.yang@ming.com set smtp-auth-password=xxxxxxx set ssl-verify=ignore set from=zhi.yang@ming.com set smtp-use-starttls=yes
set nss-config-dir=/etc/pki/nssdb
:wq
service postfix restart
验证: