公司网站去哪里做,科技论文发表网,室内联盟官网,seo公司哪里有Linux Centos配置邮件发送 
这里使用的是外部发送邮件方式#xff0c;也就是使用自己的账号发送 
第一步 
首先要开启STMP授权码#xff0c;以QQ邮箱为例 配置文件 
vim /etc/mail.rc找到之后在最下面添加如下 
#邮箱set from3324855376qq.com #默认smtp发送#xff0c;stmp…Linux Centos配置邮件发送 
这里使用的是外部发送邮件方式也就是使用自己的账号发送 
第一步 
首先要开启STMP授权码以QQ邮箱为例 配置文件 
vim /etc/mail.rc找到之后在最下面添加如下 
#邮箱set from3324855376qq.com #默认smtp发送stmp发送需要在邮箱内配置允许stmp发送set smtpsmtp.qq.com#邮箱
set smtp-auth-user3324855376qq.com
#邮箱授权码set smtp-auth-passwordxkhqkjleqxewchhdset smtp-authlogin发送邮件-不带附件 
# 方式一echo This is the mail body | mail -s 邮件标题 1319900154qq.com
# 方式二将文本内容放入邮件body中mail -s 邮件标题 1319900154qq.com  /etc/passwd发送邮件-带附件 
mail -s This is the mail body -a /home/ttt.txt  1319900154qq.com  /etc/passwd