Welcome to the mailbox.org user forum!
 

Connecting with git send-email

8141574 shared this idea 9 days ago
Completed

I'm trying to send a patch with `git send-email` with the following config:

```

smtpserver = smtp.mailbox.org
smtpencryption = STARTTLS
smtpserverport = 587

smtpAuth = login

smtpuser = email@domain

```

I also tried many variations on the values, but always get output similar to the following:


Net::SMTP>>> Net::SMTP(3.14) Net::SMTP>>> Net::Cmd(3.14) Net::SMTP>>> Exporter(5.77) Net::SMTP>>> IO::Socket::IP(0.41) Net::SMTP>>> IO::Socket(1.49) Net::SMTP>>> IO::Handle(1.48) Net::SMTP=GLOB(0x55cfef92cc58)<<< 220 smtp1.mailbox.org ESMTP Postfix Net::SMTP=GLOB(0x55cfef92cc58)>>> EHLO visrez.visrez.test Net::SMTP=GLOB(0x55cfef92cc58)<<< 250-smtp1.mailbox.org Net::SMTP=GLOB(0x55cfef92cc58)<<< 250-PIPELINING Net::SMTP=GLOB(0x55cfef92cc58)<<< 250-SIZE 143699726 Net::SMTP=GLOB(0x55cfef92cc58)<<< 250-ETRN Net::SMTP=GLOB(0x55cfef92cc58)<<< 250-STARTTLS Net::SMTP=GLOB(0x55cfef92cc58)<<< 250-ENHANCEDSTATUSCODES Net::SMTP=GLOB(0x55cfef92cc58)<<< 250-8BITMIME Net::SMTP=GLOB(0x55cfef92cc58)<<< 250-DSN Net::SMTP=GLOB(0x55cfef92cc58)<<< 250 CHUNKING invalid smtp auth: 'login' at /usr/lib/git-core/git-send-email line 1425.

Any ideas? Support sent me here

Replies (1)

photo
2

Try to replace "STARTTLS" with tls in smtpEqncryption.

From git-send-email(1):
--smtp-encryption=<encryption> Specify in what way encrypting begins for the SMTP connection. Valid values are ssl and tls. Any other value reverts to plain (unencrypted) SMTP, which defaults to port 25.
[...]

photo
1

Tried that already

photo
1

Well, your git-send-email doesn't use encryption (via STARTTLS) and that's why SMTP Auth is not available. Maybe some perl modules (e.g.: IO::Socket::SSL) are not installed.

photo
1

Weirdly, the tutorial in https://git-send-email.io/ works, but sending my patch for git doesn't. I asked for help on their mailing list https://lists.sr.ht/~sircmpwn/sr.ht-discuss/<1523354246.807118.1679060063874%40office.mailbox.org>;

Thanks for the help so far, but if you could take a look at that, it would be greatly appreciated

photo
1

It turned out I had a local config with weird values .-.

photo
Leave a Comment
 
Attach a file