Linux中的mail命令怎么用
导读:本文共1523.5字符,通常情况下阅读需要5分钟。同时您也可以点击右侧朗读,来听本文内容。按键盘←(左) →(右) 方向键可以翻页。
摘要: Linux常用命令mail命令 是命令行的电子邮件发送和接收工具。操作的界面不像elm或pine那么容易使用,但功能非常完整1.邮件服务服务端: qmail sendmail postfix(CentOS 6 自带)协议 :SMTP端口 :25客户端:mail,mutt2.服务文件\1. /etc/init.d/postfix status\2. lsof -i... ...
目录
(为您整理了一些要点),点击可以直达。mail命令 是命令行的电子邮件发送和接收工具。操作的界面不像elm或pine那么容易使用,但功能非常完整
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 /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.comset from=62379@163.com smtp=smtp.163.comset smtp-auth-user=62379 smtp-auth-password=qq@123 smtp-auth=login
</div> <div class="zixun-tj-product adv-bottom"></div> </div> </div> <div class="prve-next-news">
Linux中的mail命令怎么用的详细内容,希望对您有所帮助,信息来源于网络。