千家信息网

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

发表于:2025-12-02 作者:千家信息网编辑
千家信息网最后更新 2025年12月02日,这篇文章为大家分享在Centos 7中安装配置mailx并生成163证书的方法。文章涵盖mailx的配置和使用方法,希望大家通过这篇文章能有所收获。一、安装mailxyum -y install ma
千家信息网最后更新 2025年12月02日如何在Centos 7中安装配置mailx并生成163证书

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

一、安装mailx
yum -y install mailx

二、配制

[root@sea~]# vim /etc/mail.rcset 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.crtcertutil -A -n "GeoTrust SSL CA" -t "C,," -d ~/.certs -i ~/.certs/163.crtcertutil -A -n "GeoTrust Global CA" -t "C,," -d ~/.certs -i ~/.certs/163.crtcertutil -L -d /root/.certscd /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证书的方法,详细使用情况还需要大家自己亲自动手使用过才能领会。如果想了解更多相关内容,欢迎关注行业资讯频道!

0