1.开启QQ邮箱SMTP服务
然后点击图片右下角生成授权码 ,获取到授权码
2.停止服务
此操作是在root用户下进行
[root@hadoop000 ~]# service sendmail stop
Redirecting to /bin/systemctl stop sendmail.service
Failed to stop sendmail.service: Unit sendmail.service not loaded.
[root@hadoop000 ~]# chkconfig sendmail off
服务 sendmail 信息读取出错:没有那个文件或目录
3.启动postfix服务
此操作是在root用户下进行
# 启动postfix
[root@hadoop000 ~]# service postfix start
Redirecting to /bin/systemctl start postfix.service
Job for postfix.service failed because the control process exited with error code. See "systemctl status postfix.service" and "journalctl -xe" for details.
# 查看postfix状态
[root@hadoop000 ~]# service postfix status
Redirecting to /bin/