git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git send-email says AUTH is unknown command?

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
May 6, 2021, 15:22 UTC
Message-ID
<87k0obvqa1.fsf@evledraar.gmail.com>
In-Reply-To
<878s4sc7gr.fsf@vps.thesusis.net>
On Thu, May 06 2021, Phillip Susi wrote:
Show 9 quoted lines
> git send-email prompts for my SMTP password then says:
> Command unknown: 'AUTH' at /usr/lib/git-core/git-send-email line 1573.
>
> That line reads:
>
> smtp_auth_maybe or die $smtp->message;
>
> Why is it complaining that it does not know what AUTH means?  It is
> connecting to port 25 and /should/ be using STARTTLS.

This message is from your server indirectly, i.e. there is no AUTH verb supported by it.

I'm almost certain that you'll find that you cannot in fact auth on port 25 on this server, and must use another port to do SSL from the start, i.e. not STARTSSL[1].

We should probably intercept this in particular and emit a better error, patches welcome :)

1. https://metacpan.org/release/libnet/source/lib/Net/SMTP.pm#L169
Previous: Phillip SusiNext: Jeff King
Message 2 of 3 in “git send-email says AUTH is unknown command?”
  1. Phillip SusiMay 6, 2021
  2. Ævar Arnfjörð BjarmasonMay 6, 2021
  3. Jeff KingMay 6, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.