GCRC / nunaliit

Nunaliit Atlas Framework
BSD 3-Clause "New" or "Revised" License
46 stars 15 forks source link

Mail service code and/or documentation needs updating #1215

Open ahayes opened 5 months ago

ahayes commented 5 months ago

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:

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 commented 5 months ago

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