使用linux 发送qq邮件

linux 发送邮件,其实是linux 系统 使用你配置的邮箱 的用户名和密码 来登录你的邮箱
使用此邮箱来发送邮件

1、关闭服务

service sendmail stop
chkconfig sendmail off

2、修改参数配置
vi /etc/postfix/main.cf
inet_interfaces = all

3、.启动postfix服务:
service postfix start
chkconfig postfix on
postfix check
systemctl status postfix



4、
$ vi /etc/mail.rc

set [email protected]
set smtp=smtp.qq.com
set smtp-auth-user=123456
set smtp-auth-password=runoob
set smtp-auth=login



参数解释:
set from= 你的qq邮箱
set smtp-auth-user= 你的qq邮箱的登录名
set smtp-auth-password= 你的qq邮箱的获取的授权码


获取的授权码 获取方式
第一步进入qq邮箱
使用linux 发送qq邮件
第二步
使用linux 发送qq邮件



第三步生成授权码
使用linux 发送qq邮件

测试
为126 邮箱发送消息
使用linux 发送qq邮件

使用linux 发送qq邮件
使用linux 发送qq邮件

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章