本文共 933 字,大约阅读时间需要 3 分钟。
1,大家都知道,阿里云一般禁用25端口,那我们如何使用阿里云服务器
发送邮件?2,开启邮件ssl端口465,在安全组开启。3,在腾讯邮件里面设置如下4,在服务器上配置关闭其它的邮件工具service sendmail stop
chkconfig sendmail off
service postfix stop
chkconfig postfix off安装mailx
yum install mailx -y
请求qq邮箱数字证书
mkdir -p /root/.certs/
echo -n | openssl s_client -connect smtp.qq.com:465 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ~/.certs/qq.crt
certutil -A -n "GeoTrust SSL CA" -t "C,," -d ~/.certs -i ~/.certs/qq.crtcertutil -A -n "GeoTrust Global CA" -t "C,," -d ~/.certs -i ~/.certs/qq.crtcertutil -A -n "GeoTrust SSL CA - G3" -t "Pu,Pu,Pu" -d ~/.certs/./ -i qq.crtcertutil -L -d /root/.certs 配置/etc/mail.rcset from=1195257477@qq.com
set smtp=smtps://smtp.qq.com:465
set smtp-auth-user=1195257477@qq.com set smtp-auth-password=xxxx #授权码set smtp-auth=loginset ssl-verify=ignore set nss-config-dir=/root/.certs 发送邮件测试echo "hello,world" | mail -s "测试邮件" 610323566@qq.com用465端口发送邮件配置完毕!参考教程:更多教程:转载地址:http://beizx.baihongyu.com/