Mail安装

环境

系统:CentOS 6.8

mail安装配置

  • 安装
# yum install mailx
  • 配置
# vim /etc/mail.rc
set [email protected]
set smtp=smtp.163.com
set [email protected]
set smtp-auth-password=yourpassword
set smtp-auth=login

测试

# echo hello | mail -s testmail [email protected]

你可能感兴趣的:(Mail安装)