Redhat 6.8系统是安装mailx,配置文件为/etc/mail.rc
如果公司用的是exchange邮箱端口587且启用了TLS,则设置如下,并需在exchange管理端启用“User NT AUTHORITY\SELF is listed”
set nss-config-dir=/etc/pki/nssdb set smtp-use-starttls set ssl-verify=ignore set from=zhi.yang@ming.com set smtp=10.0.0.4:587 set smtp-auth-user=zhi.yang@ming.com set smtp-auth-password=123456 set smtp-auth-login