Ubuntu带账号认证发邮件
安装heirloom-mailx
# apt-get install heirloom-mailx
修改/etc/nail.rc(最后添加)
set [email protected]
set smtp=10.0.0.4
set [email protected]
set smtp-auth-password=123456
set smtp-auth-login
:wq
# echo "bb" mail -s "aa" [email protected] 此时发件人即是[email protected]
Redhat系统是安装mailx软件,配置文件名为/etc/mail.rc,内容同Ubuntu
时间: 2024-10-16 14:51:59