yum install mailx –y
vi /etc/mail.rc
set from=xxx@163.com
set smtp="smtp://smtp.163.com:25"
set smtp-auth-user=xxx@163.com
set smtp-auth-password=12345
set smtp-auth=login
set nss-config-dir=/etc/pki/nssdb/mail/
echo "test 123456"|mail -v -s "title" xxx@163.com
Linux mailx 安装配置使用
发表评论
点击:1006