1.郵件服務
服務端: qmail sendmail postfix(CentOS 6 自帶)
協議 :SMTP
端口 :25
客戶端:mail,mutt
2.服務文件
1. /etc/init.d/postfix status
2. lsof -i:25
3.發郵件命令
1.mail
mail -s "標題" 郵件地址 < 要發送的文件
mail -s "hello world" 623799533@qq.com </etc/hosts
echo "正文|mail -s "hello world" 623799533@qq.com
mailq 查看發郵件的隊列
2.mutt -->同mail
mutt -s ""
4.企業mail啟服務2種方式
1.直接啟動postfix服務
2.借助第三方的smtp服務
1.vi /etc/mail.rc
send mail from qq.com
set from=62379@163.com smtp=smtp.163.com
set smtp-auth-user=62379 smtp-auth-password=qq@123 smtp-auth=login