{"thread":{"id":"55633","subject":"git send-email says AUTH is unknown command?","startedAt":"2021-05-06T13:40:21Z","lastAt":"2021-05-06T17:06:36Z","messageCount":3,"participants":["Phillip Susi","Ævar Arnfjörð Bjarmason","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"423773","messageId":"878s4sc7gr.fsf@vps.thesusis.net","threadId":"55633","inReplyTo":null,"subject":"git send-email says AUTH is unknown command?","fromName":"Phillip Susi","fromEmail":"phill@thesusis.net","sentAt":"2021-05-06T13:30:41Z","receivedAt":"2021-05-06T13:40:21Z","isPatch":false,"sender":{"key":"phill@thesusis.net","avatar":null},"body":"git send-email prompts for my SMTP password then says:\nCommand unknown: 'AUTH' at /usr/lib/git-core/git-send-email line 1573.\n\nThat line reads:\n\nsmtp_auth_maybe or die $smtp->message;\n\nWhy is it complaining that it does not know what AUTH means?  It is\nconnecting to port 25 and /should/ be using STARTTLS.\n\n"},{"id":"423789","messageId":"87k0obvqa1.fsf@evledraar.gmail.com","threadId":"55633","inReplyTo":"878s4sc7gr.fsf@vps.thesusis.net","subject":"Re: git send-email says AUTH is unknown command?","fromName":"Ævar Arnfjörð Bjarmason","fromEmail":"avarab@gmail.com","sentAt":"2021-05-06T15:22:31Z","receivedAt":"2021-05-06T15:25:24Z","isPatch":false,"sender":{"key":"avarab@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45301?v=4"},"body":"\nOn Thu, May 06 2021, Phillip Susi wrote:\n\n> git send-email prompts for my SMTP password then says:\n> Command unknown: 'AUTH' at /usr/lib/git-core/git-send-email line 1573.\n>\n> That line reads:\n>\n> smtp_auth_maybe or die $smtp->message;\n>\n> Why is it complaining that it does not know what AUTH means?  It is\n> connecting to port 25 and /should/ be using STARTTLS.\n\nThis message is from your server indirectly, i.e. there is no AUTH verb\nsupported by it.\n\nI'm almost certain that you'll find that you cannot in fact auth on port\n25 on this server, and must use another port to do SSL from the start,\ni.e. not STARTSSL[1].\n\nWe should probably intercept this in particular and emit a better error,\npatches welcome :)\n\n1. https://metacpan.org/release/libnet/source/lib/Net/SMTP.pm#L169\n"},{"id":"423811","messageId":"YJQiFYYENfsZk7B+@coredump.intra.peff.net","threadId":"55633","inReplyTo":"87k0obvqa1.fsf@evledraar.gmail.com","subject":"Re: git send-email says AUTH is unknown command?","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2021-05-06T17:06:29Z","receivedAt":"2021-05-06T17:06:36Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Thu, May 06, 2021 at 05:22:31PM +0200, Ævar Arnfjörð Bjarmason wrote:\n\n> \n> On Thu, May 06 2021, Phillip Susi wrote:\n> \n> > git send-email prompts for my SMTP password then says:\n> > Command unknown: 'AUTH' at /usr/lib/git-core/git-send-email line 1573.\n> >\n> > That line reads:\n> >\n> > smtp_auth_maybe or die $smtp->message;\n> >\n> > Why is it complaining that it does not know what AUTH means?  It is\n> > connecting to port 25 and /should/ be using STARTTLS.\n> \n> This message is from your server indirectly, i.e. there is no AUTH verb\n> supported by it.\n> \n> I'm almost certain that you'll find that you cannot in fact auth on port\n> 25 on this server, and must use another port to do SSL from the start,\n> i.e. not STARTSSL[1].\n\nAlternatively, it may be that the server would prefer port 587 (with\nSTARTTLS), which is typically used for \"submission\" (i.e., originating\nnew messages from authenticated users, versus the normal port 25 for\nMTA's routing messages between them).\n\n-Peff\n"}]}