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下yum安装报错怎么办

CentOS7安装rabbitmq的实例教程

如何解决CentOS7连接网络不可达

CentOS7端口不能访问怎么办

CentOS7如何使用命令重启或关机

安装CentOS7后中文显示乱码

CentOS7配置自定义jdk的方法

CentOS7系统与之前版本有什么区别

CentOS7怎么从普通用户切换到root用户

CentOS7下80端口无法访问怎么办

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



打赏

取消

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

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

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

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

评论

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