Skip to content

net/smtp: SendMail AUTH error with PlainAuth and successful STARTTLS #30403

Description

@imirkin

See issue #22145 for background. This got merged in go1.11.

It appears that google-apps-for-your-domain SMTP, when connecting on port 25, does not list AUTH even after STARTTLS. The regular gmail smtp does:

$ openssl s_client -starttls smtp -crlf -connect smtp.gmail.com:25
...
EHLO foo.com
250-smtp.gmail.com at your service, [xxx]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
...

but:

$ openssl s_client -starttls smtp -crlf -connect aspmx.l.google.com:25
...
EHLO foo.com
250-mx.google.com at your service, [xxx]
250-SIZE 157286400
250-8BITMIME
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8
QUIT
DONE

The latter had been working previous to the change in question, but now, predictably, I'm getting errors about AUTH not being supported. I believe the change originally went in under the "I can't believe that'll happen" banner, but ... believe it :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.release-blocker

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions