git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git send-email says AUTH is unknown command?
@ 2021-05-06 13:30 Phillip Susi
  2021-05-06 15:22 ` Ævar Arnfjörð Bjarmason
  0 siblings, 1 reply; 3+ messages in thread
From: Phillip Susi @ 2021-05-06 13:30 UTC (permalink / raw)
  To: git

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: git send-email says AUTH is unknown command?
  2021-05-06 13:30 git send-email says AUTH is unknown command? Phillip Susi
@ 2021-05-06 15:22 ` Ævar Arnfjörð Bjarmason
  2021-05-06 17:06   ` Jeff King
  0 siblings, 1 reply; 3+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2021-05-06 15:22 UTC (permalink / raw)
  To: Phillip Susi; +Cc: git


On Thu, May 06 2021, Phillip Susi wrote:

> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: git send-email says AUTH is unknown command?
  2021-05-06 15:22 ` Ævar Arnfjörð Bjarmason
@ 2021-05-06 17:06   ` Jeff King
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff King @ 2021-05-06 17:06 UTC (permalink / raw)
  To: Ævar Arnfjörð Bjarmason; +Cc: Phillip Susi, git

On Thu, May 06, 2021 at 05:22:31PM +0200, Ævar Arnfjörð Bjarmason wrote:

> 
> On Thu, May 06 2021, Phillip Susi wrote:
> 
> > 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].

Alternatively, it may be that the server would prefer port 587 (with
STARTTLS), which is typically used for "submission" (i.e., originating
new messages from authenticated users, versus the normal port 25 for
MTA's routing messages between them).

-Peff

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-06 17:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-06 13:30 git send-email says AUTH is unknown command? Phillip Susi
2021-05-06 15:22 ` Ævar Arnfjörð Bjarmason
2021-05-06 17:06   ` Jeff King

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).