liunx邮箱发送给

编辑 vim /etc/mail.rc

 

set from=邮箱
set smtp=smtp.qq.com
set smtp-auth-user=邮箱
set smtp-auth-password=授权密码

 

echo test keeplived | mail -s keeplaived 接收邮箱

posted @ 2023-01-18 15:01  Abner3721  阅读(11)  评论(0编辑  收藏  举报