1.开启qq邮箱SMTP跟获取授权码
首先打开qq邮箱,点击设置—》再点击账户—》往下拉,可以看到“POP3/IMAP/SMTP/Exchange/CardDAV/CalDAV服务”,里面有开启对应的服务。点击生成授权码就可以。
2.开启服务
- 停止服务:
开启postfix服务之前,需要关闭sendmail服务并修改配置文件内容
[root@ruozedata001 ~]# service sendmail stop
Redirecting to /bin/systemctl stop sendmail.service
Failed to stop sendmail.service: Unit sendmail.service not loaded.
[root@ruozedata001 ~]# chkconfig sendmail off
error reading information on service sendmail: No such file or directory
- 调整参数:
[root@ruozedata001 ~]# vi /etc/