Mail安装

2017-08-11  本文已影响0人  袁先生的笔记

环境

系统:CentOS 6.8

mail安装配置

# yum install mailx
# vim /etc/mail.rc
set from=username@163.com
set smtp=smtp.163.com
set smtp-auth-user=username@163.com
set smtp-auth-password=yourpassword
set smtp-auth=login

测试

# echo hello | mail -s testmail testuser@163.com
上一篇 下一篇

猜你喜欢

热点阅读