Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mail service code and/or documentation needs updating #1215

Open
ahayes opened this issue Mar 12, 2024 · 1 comment
Open

Mail service code and/or documentation needs updating #1215

ahayes opened this issue Mar 12, 2024 · 1 comment
Labels
Bug Design or implementation flaw that causes grief.
Milestone

Comments

@ahayes
Copy link
Member

ahayes commented Mar 12, 2024

I have been trying to set up an atlas to use Google's SMTP mail server for authenticated outbound email from Nunaliit.

Nunaliit's Mail Service documentation suggests a solution for using GMail's SMTP server over SSL with a Gmail user and password. The configuration presented does not work and in trying to find a working configuration I first encountered this error:

  • javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
    First thinking Java 8 might not have the cipher suites demanded by Google I tried upgrading to openjdk-11-jre-headless from openjdk-8-jre-headless with no change. Was able to get past this error in an undesirable way by commenting out the jdk.tls.disabledAlgorithms line in /etc/java-11-openjdk/security/java.security. I'm guessing we need some sort of update to our JavaMail code to have a matching secure cipher that Google supports.

After bypassing this problem I encountered other errors with connecting that seemed to be related to old examples or misconfigurations on my part based on SocketFactory and the various ports/config to enable SSL or STARTSSL.

Once I sorted those out, I got to this error which seems to indicate I either have incorrect credentials, my configuration is incorrect, or Google needs to be told to allow less secure sign-ins for the account I'm trying to use.

Mar 12 16:39:41 nunaliit nunaliit[10656]: com.sun.mail.smtp.SMTPSendFailedException: 530-5.7.0 Authentication Required. For more information, go to
Mar 12 16:39:41 nunaliit nunaliit[10656]: 530 5.7.0  https://support.google.com/mail/?p=WantAuthError c20-20020aa78814000000b006e625d2b5easm6444805pfo.47 - gsmtp

The JavaMail documentation has some specific sections on using Gmail that might be helpful.

Anyway, I think this needs some additional review, testing, and a revamp.

@ahayes ahayes added the Bug Design or implementation flaw that causes grief. label Mar 12, 2024
@ahayes ahayes added this to the 2.2.9 milestone Mar 12, 2024
@ahayes
Copy link
Member Author

ahayes commented Mar 12, 2024

Found Google's documentation of Ciphers for Gmail SMTP TLS connections

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Design or implementation flaw that causes grief.
Projects
None yet
Development

No branches or pull requests

1 participant