我正在使用Linux 20下的git发送电子邮件。
同样的配置在Debian下运行。
现在我发现了错误:
mcon@cinderella:~/vocore/__V2__/u-boot$ git send-email --to=u-boot@lists.denx.de /tmp/output/ --smtp-debug
/tmp/output/0000-cover-letter.patch
/tmp/output/0001-Small-fixes-to-reduce-size-and-ensure-correct-consol.patch
/tmp/output/0002-Enlarge-SPL-malloc-area-to-prevent-failure-in-lzma-d.patch
/tmp/output/0003-Fix-missing-__udivdi3-in-SquashFS-implementation.patch
(mbox) Adding cc: Mauro Condarelli <mc5686@mclink.it> from line 'From: Mauro Condarelli <mc5686@mclink.it>'
DEBUG: .../IO/Socket/SSL.pm:1177: global error: Undefined SSL object
DEBUG: .../IO/Socket/SSL.pm:900: local error: SSL connect attempt failed error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol
DEBUG: .../IO/Socket/SSL.pm:903: fatal SSL error: SSL connect attempt failed error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol
Unable to initialize SMTP properly. Check config and use --smtp-debug. VALUES: server=mail2.mclink.it encryption=ssl hello=cinderella.condarelli.it port=465 at /usr/lib/git-core/git-send-email line 1558.AFAIK :这是由于我的上游邮件程序不接受TLSv2协议(目前是默认的)。
IFF这是正确的:我如何说服git send-email使用TLSv1?
显然,我没有办法强迫上游邮件“升级”。
发布于 2020-09-20 10:34:03
……server=mail2.mclink.it ...port=465
这是一个非常坏的服务器,您试图在这里使用。看起来,它所能做的最好是TLS1.0,RC4-MD5作为密码,它在许多方面都很弱。此密码通常不再在较新版本的openssl中编译,因此它很可能不适用于您当前的设置。
但是在端口25上也可以在同一服务器上进行SMTP访问,包括使用STARTTLS的TLS。这个实例实际上为TLS1.2提供了一个强密码。所以最好改变你的设置,用它代替。请注意,在这种情况下,您必须将smtpEncryption设置为tls,而不是ssl,因为tls被解释为SMTP+STARTTLS (通常在端口25和587上),而ssl被解释为隐式TLS (通常在端口465上)。
AFAIK :这是由于我的上游邮件程序不接受TLSv2协议(目前是默认的)。
TLS自动使用客户端和服务器都支持的最佳协议版本。没有必要显式降级,除非服务器太坏,如果提供更新的协议版本,则会阻塞。
敌我论坛这是正确的:我如何说服git发送电子邮件使用TLSv1?
你不能。没有办法设置发送电子邮件的协议或密码。基于源代码,它只使用Perl::SMTP,然后使用IO::Socket::SSL和它的默认设置--脚本中没有重写这些设置的尝试。任何有关这方面的建议都可能适用于git连接本身,但不适用于git发送电子邮件。
https://stackoverflow.com/questions/63977549
复制相似问题