RHEL、CentOS:
[[email protected] ~]#yum install mailx
[[email protected] ~]#vi /etc/mail.rc
set from=名@163.com smtp=smtp.163.com
set smtp-auth-user=名@163.com smtp-auth-password=密
set smtp-auth=login
Ubuntu:
[[email protected] ~]#sudo apt-get install heirloom-mailx
[[email protected] ~]#vi /etc/nail.rc
set from=名@163.com smtp=smtp.163.com
set smtp-auth-user=名@163.com smtp-auth-password=密
set smtp-auth=login
时间: 2024-11-13 04:57:24