提问人:nttaylor 提问时间:9/9/2023 更新时间:9/9/2023 访问量:100
OpenSSL 无法连接到 Gmail 服务器
openssl not connecting to gmail server
问:
我正在使用 ubuntu 22.04 和 openssl 1.1.1
当我尝试使用 Django 的功能向自己发送电子邮件时,这就开始了。该函数执行良好,但电子邮件从未到达。检查 Postfix 日志显示此错误:send_mail()
connect to alt2.gmail-smtp-in.l.google.com[2607:f8b0:4023:1::1a]:25: Connection timed out
试图诊断这一点导致我使用 openssl 运行命令行实验。以下命令失败并超时:
# openssl s_client -connect smtp.google.com:587 -starttls smtp
4047B9AF807F0000:error:10000067:BIO routines:BIO_connect:connect error:../crypto/bio/bio_sock2.c:127:
4047B9AF807F0000:error:8000006E:system library:BIO_connect:Connection timed out:../crypto/bio/bio_sock2.c:125:calling connect()
... (several repeats of the error above) ...
403747797B7F0000:error:10000067:BIO routines:BIO_connect:connect error:../crypto/bio/bio_sock2.c:127:
connect:errno=110
(使用“alt2.gmail-smtp-in.l.google.com”(后缀日志中的域)的结果相同)
我不认为问题只是我的计算机或网络,因为尝试使用“strawberry.active-ns.com”(openssl 的在线示例使用的域)可以工作:
$ openssl s_client -starttls smtp -connect strawberry.active-ns.com:587
CONNECTED(00000003)
...
我过去曾使用过我的笔记本电脑,它工作得很好。谷歌改变了什么吗?任何帮助将不胜感激。send_mail()
答: 暂无答案
评论