如何解决“无法正确初始化SMTP".使用git send-email时? [英] How to solve "Unable to initialize SMTP properly." when using using git send-email?
问题描述
我正在尝试使用git发送补丁.
I was trying to send an patch using git .
当我尝试发送邮件时,会生成以下错误输出
When i try sending mail the following error output is generated
我的.gitconfig文件如下所示
My .gitconfig file looks like this
推荐答案
企业防火墙可能会阻止所需的端口
我注意到此问题仅在工作中而不是在家中发生,然后发现我的工作防火墙正在阻止必需的IMAP/SMTP端口.
I noticed that this problem only happened at work and not at home, and then found out that my work firewall was blocking the required IMAP / SMTP ports.
在这种情况下,您必须与网络管理员联系.
If that is the case, you must talk to your network administrator.
区别在于,当您使用类似gmail的Web界面时,所有流量都通过HTTP端口(允许的端口)通过,但git send-email
直接使用电子邮件协议端口.
The difference is that when you use a web interface like gmail's, all traffic goes through HTTP ports, which are allowed, but git send-email
uses the email protocol ports directly.
测试而不污染公共邮件列表的一种好方法是尝试首先使用mutt
或其他本地电子邮件客户端发送常规电子邮件.
A good way to test that without polluting public mailing lists is to try to send regular emails with mutt
or some other local email client first.
You can also check if outgoing ports are getting blocked with answers for this question: https://superuser.com/questions/631087/how-to-easily-determine-which-outbound-ports-arent-blocked-by-firewall
这篇关于如何解决“无法正确初始化SMTP".使用git send-email时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!