gpt4 book ai didi

git - 使用git send-email时出现 "Unable to initialize SMTP properly."如何解决?

转载 作者:太空狗 更新时间:2023-10-29 13:03:34 29 4
gpt4 key购买 nike

我正在尝试使用 git 发送补丁。

当我尝试发送邮件时生成以下错误输出

enter image description here

我的 .gitconfig 文件看起来像这样

enter image description here

最佳答案

公司防火墙可能会阻止所需的端口

我注意到这个问题只发生在工作中而不是在家里,然后发现我的工作防火墙阻止了所需的 IMAP/SMTP 端口。

如果是这种情况,您必须与您的网络管理员联系。

不同之处在于,当您使用像 gmail 这样的 Web 界面时,所有流量都通过允许的 HTTP 端口,但是 git send-email 直接使用电子邮件协议(protocol)端口。

在不污染公共(public)邮件列表的情况下进行测试的一个好方法是先尝试使用 mutt 或其他一些本地电子邮件客户端发送常规电子邮件。

您还可以检查传出端口是否被阻塞,并回答这个问题:https://superuser.com/questions/631087/how-to-easily-determine-which-outbound-ports-arent-blocked-by-firewall

关于git - 使用git send-email时出现 "Unable to initialize SMTP properly."如何解决?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28038662/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com