如何解决“无法正确初始化SMTP".使用git send-email时? [英] How to solve "Unable to initialize SMTP properly." when using using git send-email?

查看:229
本文介绍了如何解决“无法正确初始化SMTP".使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆