0
点赞
收藏
分享

微信扫一扫

Linux mail命令详解

Linux 下邮件服务相关介绍


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


作者:​​小a玖拾柒​​​ ​

-------------------------------------------

个性签名: 所有的事情到最後都是好的,如果不好,那說明事情還沒有到最後~

本文版权归作者【​​小a玖拾柒​​​】,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利!



举报

相关推荐

0 条评论