L O A D I N G
«

阿里云服务器使用465端口发送邮件

童话里,我们在一起 发布于 阅读:781 ESXI


关闭所有邮件服务

一、生产一系列证书

阿里云服务器使用465端口发送邮件
mkdir ~/.certs#生成证书 echo -n | openssl s_client -connect smtp.163.com:465 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ~/.certs/mail.crtcertutil -A -n "GeoTrust SSL CA" -t "C,," -d ~/.certs -i ~/.certs/mail.crtcertutil -A -n "GeoTrust Global CA" -t "C,," -d ~/.certs -i ~/.certs/mail.crtcertutil -A -n "GeoTrust SSL CA - G3" -t "Pu,Pu,Pu" -d ~/.certs -i ~/.certs/mail.crt#查看certutil -L -d /root/.certs
阿里云服务器使用465端口发送邮件

二、配置mail.rc文件

阿里云服务器使用465端口发送邮件
[root@iZhp3a7sejwabcxoz89b1yZ ~]# cat /etc/mail.rc set from=xxxx@163.com  set smtp=smtps://smtp.163.com:465  set smtp-auth-user=xxx@163.comset smtp-auth-password=xxxxxxxxxxxxx  set smtp-auth=login set ssl-verify=ignoreset nss-config-dir=/root/.certs
阿里云服务器使用465端口发送邮件

三、测试

yum install -y  exim mailxsystemctl  start exim.service  mailx -s 'aa' xxxx@163.com  </etc/hosts







原文地址:https://www.cnblogs.com/zhangb8042/p/9493103.html


扫描二维码,在手机上阅读

推荐阅读:

收藏