centos7怎么使用postfix发送邮件


当前第2页 返回上一页

4、申请163邮件证书

1

2

3

4

5

6

[root@mail ~]# mkdir /root/.certs

[root@mail ~]# echo -n | openssl s_client -connect smtp.163.com:465 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ~/.certs/163.crt

[root@mail ~]# certutil -A -n "GeoTrust Global CA" -t "C,," -d ~/.certs -i ~/.certs/163.crt

[root@mail ~]# certutil -A -n "GeoTrust SSL CA" -t "C,," -d ~/.certs -i ~/.certs/163.crt

[root@mail ~]# certutil -L -d /root/.certs

[root@mail ~]# certutil -A -n "GeoTrust SSL CA - G3" -t "Pu,Pu,Pu" -d ~/.certs/ -i ~/.certs/163.crt

5、借用163邮箱发送邮件

1

2

3

4

5

6

7

8

[root@mail ~]# vim /etc/mail.rc

set ssl-verify="ignore"

set smtp-auth="login"

set from="mds302587@163.com"

set smtp="smtps://smtp.163.com:465"

set smtp-auth-user="mds302587@163.com"

set smtp-auth-password="123456"

set nss-config-dir="/root/.certs"

6、重启服务并发送测试邮件

1

2

[root@mail ~]# systemctl restart postfix

[root@mail ~]# echo "This is a test mail" | mail -s '邮件测试' 452666750@qq.com

7、确认接收邮件

相关教程推荐:centos教程

以上就是centos7怎么使用postfix发送邮件的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

CentOS7与centos8如何抉择

总结CentOS7常用操作命令

CentOS7系统怎么安装mysql

CentOS7下安装软件失败

CentOS7安装rabbitmq的实例教程

CentOS7系统的启动流程

介绍CentOS7 bond的配置和调试

CentOS7怎么使用yum安装lnmp环境

CentOS7上不了网怎么办

tomcat日志中文乱码怎么解决?

更多相关阅读请进入《CentOS7》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...