温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

如何在Centos 7中安装配置mailx并生成163证书

发布时间:2020-06-01 13:46:26 来源:亿速云 阅读:357 作者:Leah 栏目:系统运维

这篇文章为大家分享在Centos 7中安装配置mailx并生成163证书的方法。文章涵盖mailx的配置和使用方法,希望大家通过这篇文章能有所收获。

一、安装mailx
yum -y install mailx

二、配制

[root@sea~]# vim /etc/mail.rc
set from=sea_xyz@163.com                           # 发送邮件后显示的邮件发送方
set smtp.163.com                                            # 163 smtp邮件服务器
set smtp-auth-user=youremail@163.com       # 你的163邮箱
set smtp-auth-password=yourpass                 # 你的163邮箱密码(设置页面加密后的授权码)
set smtp-auth=login                                         # 动作、登录
set smtp-use-starttls                                        # 安全连接传输
set ssl-verify=ignore                                        # 忽略ssl验证
set nss-config-dir=/root/.certs                         # 证书路径

三、生成163的证书

mkdir -p /root/.certs/
echo -n | openssl s_client -connect smtp.163.com:465 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ~/.certs/163.crt
certutil -A -n "GeoTrust SSL CA" -t "C,," -d ~/.certs -i ~/.certs/163.crt
certutil -A -n "GeoTrust Global CA" -t "C,," -d ~/.certs -i ~/.certs/163.crt
certutil -L -d /root/.certs

cd /root/.certs/
certutil -A -n "GeoTrust SSL CA - G3" -t "Pu,Pu,Pu" -d ./ -i 163.crt

出现 下面提示说明正常
Notice: Trust flag u is set automatically if the private key is present.

以上就是在Centos 7中安装配置mailx并生成163证书的方法,详细使用情况还需要大家自己亲自动手使用过才能领会。如果想了解更多相关内容,欢迎关注亿速云行业资讯频道!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI