git@vger.kernel.org list mirror (unofficial, 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

git@vger.kernel.org list mirror (unofficial, one of many)

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://public-inbox.org/git
	git clone --mirror http://ou63pmih66umazou.onion/git
	git clone --mirror http://czquwvybam4bgbro.onion/git
	git clone --mirror http://hjrcffqmbrq6wope.onion/git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 git git/ https://public-inbox.org/git \
		git@vger.kernel.org
	public-inbox-index git

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.version-control.git
	nntp://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/inbox.comp.version-control.git
	nntp://ie5yzdi7fg72h7s4sdcztq5evakq23rdt33mfyfcddc5u3ndnw24ogqd.onion/inbox.comp.version-control.git
	nntp://4uok3hntl7oi7b4uf4rtfwefqeexfzil2w6kgk2jn5z2f764irre7byd.onion/inbox.comp.version-control.git
	nntp://news.gmane.io/gmane.comp.version-control.git
 note: .onion URLs require Tor: https://www.torproject.org/

code repositories for project(s) associated with this inbox:

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

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git