send-email issue

5 messages, 2 authors, 2021-08-13 · open the first message on its own page

send-email issue

From: Ben Goldberg <hidden>
Date: 2021-08-13 17:50:29

Hello,

I hope this is right place to ask this kind of question.
When I try to use get send-email I get:
Unable to initialize SMTP properly. Check config and use --smtp-debug. 
VALUES: server=smtp.migadu.com encryption=tls 
hello=localhost.localdomain port=465 at /usr/lib/git-core/git-send-email 
line 1583.
I used to be able to use send-email on this machine so I'm not sure why 
it's not wokring now. I'm able to send email using that account using 
Thunderbird on this machine, so I don't think it's a network issue. And 
I double checked my smtp config.

Thx,
Ben

Re: send-email issue

From: Ben Goldberg <hidden>
Date: 2021-08-13 17:57:20

A little additional info. When I run send-email with --smtp-debug=1 I 
get this.
Net::SMTP>>> Net::SMTP(3.13)
Net::SMTP>>>   Net::Cmd(3.13)
Net::SMTP>>>     Exporter(5.76)
Net::SMTP>>>   IO::Socket::IP(0.41)
Net::SMTP>>>     IO::Socket(1.46)
Net::SMTP>>>       IO::Handle(1.46)
Net::SMTP: Net::Cmd::getline(): unexpected EOF on command channel:  at 
/usr/lib/git-core/git-send-email line 1556.
Unable to initialize SMTP properly. Check config and use --smtp-debug. 
VALUES: server=smtp.migadu.com encryption=tls 
hello=localhost.localdomain port=465 at /usr/lib/git-core/git-send-email 
line 1583.
Hope that helps.

Re: send-email issue

From: Ben Goldberg <hidden>
Date: 2021-08-13 18:00:21

Oh, and I'm running git version 2.32.0

Re: send-email issue

From: Konstantin Ryabitsev <hidden>
Date: 2021-08-13 18:01:02

On Fri, Aug 13, 2021 at 01:57:13PM -0400, Ben Goldberg wrote:
Net::SMTP>>> Net::SMTP(3.13)
Net::SMTP>>>   Net::Cmd(3.13)
Net::SMTP>>>     Exporter(5.76)
Net::SMTP>>>   IO::Socket::IP(0.41)
Net::SMTP>>>     IO::Socket(1.46)
Net::SMTP>>>       IO::Handle(1.46)
Net::SMTP: Net::Cmd::getline(): unexpected EOF on command channel:  at
/usr/lib/git-core/git-send-email line 1556.
Unable to initialize SMTP properly. Check config and use --smtp-debug.
VALUES: server=smtp.migadu.com encryption=tls hello=localhost.localdomain
port=465 at /usr/lib/git-core/git-send-email line 1583.
You should use:

port=465
encryption=ssl

OR

port=587
encryption=tls

I know that this is confusing terminology, but "tls" stands for "StartTLS",
which works on port 587, and "ssl" starts for "smtps" on port 465.

-K

Re: send-email issue

From: Ben Goldberg <hidden>
Date: 2021-08-13 18:03:17

You should use:

port=465
encryption=ssl

OR

port=587
encryption=tls

I know that this is confusing terminology, but "tls" stands for "StartTLS",
which works on port 587, and "ssl" starts for "smtps" on port 465.
That worked! Thanks so much for your help!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help