centos7 阿里云ECS环境,使用465端口发送邮件报错
1、根据上面的错误更改配置:set smtp='smtps://smtp.163.com:465'set smtp-auth-user='wuxxxxx@163.com'set smtp-auth-password='yuxxxxx'set smtp-auth=loginset ssl-verify=ignoreset nss-config-dir=/etc/pki/nssdb/
2、继续报错:[root@vrbp-task-pre etc]# echo message4 | mail -v -r 'wuxxxxx@163.com' -s 'This is the subject' 47xxxxxx@qq.comResolving host smtp.163.com . . . done.Connecting to 220.181.12.13:465 . . . connected.
Error in certificate: Peer's certificate issuer is not recognized.
Comparing DNS name: '*.163.com'SSL parameters: cipher=missing, keysize=256, secretkeysize=256,issuer=CN=GeoTrust SSL CA - G3,O=GeoTrust Inc.,C=USsubject=CN=*.163.com,OU=MAIL Dept.,O='NetEase (Hangzhou) Network Co., Ltd',L=Hangzhou,ST=Zhejiang,C=CN220 163.com Anti-spam GT for Coremail System (163com[20141201])
EHLO vrbp-task-pre.woasis.com250-mail
250-PIPELINING250-AUTH LOGIN PLAIN250-AUTH=LOGIN PLAIN250-coremail 1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2UFPkoPMUCa0xDrUUUUj250-STARTTLS250 8BITMIME
AUTH LOGIN
334 dXNlcm5hbWU6
d3Vrb25nZm9AMTYzLmNvbQ==
334 UGFzc3dvcmQ6
eXUxOTkzQUo=
235 Authentication successful
MAIL FROM:wuxxxxx@163.com
250 Mail OK
RCPT TO:47xxxxx@qq.com
250 Mail OK
DATA
354 End data with .
.
250 Mail OK queued as smtp9,DcCowADnhlJdOyBZ0EIpFQ--.56836S2 1495284573
QUIT
221 Bye[root@vrbp-task-pre etc]#
赞0
踩0