Ubuntu中 mailx的安裝與配置


1,安裝mailx

使用sudo apt-get install mailx會出現兩個包選擇

heirloom-mailx和bsd-mailx

區別在於前者配置文件為/etc/nail.rc后者為/etc/mail.rc

我安裝了heirloom-mailx這個包

然后配置文件

set from=發送郵箱的地址xx@163.com
set smtp=smtp.163.com
set smtp-auth-user=xx@163.com
set smtp-auth-password=password
set smtp-auth=login

 


發送命令

echo "practice"| mailx -s "Title" xx@163.com

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM