Outgoing Emails

167 views
Skip to first unread message

Markus

unread,
May 4, 2021, 5:38:10 AM5/4/21
to Sakai Development
Hi,

I'm trying to test email notifications and when adding students by emails to site. They're not receiving the email. 

What configurations I would need? Its a Fresh deployment on AWS

Markus

unread,
May 6, 2021, 3:00:53 PM5/6/21
to Sakai Development, Markus
I've setup the credentials but I'm getting following errors The main goal is to connect our gmail SMTP server but its not working, I also tried another test server. Both are giving authentication error.

Any help what could be the issue?

f1e6578f-8605-4140-8dd3-e5582ab9e4b5.png
c75f8a63-670c-41fa-b749-4624f2160b4a.png

Markus

unread,
May 6, 2021, 3:16:32 PM5/6/21
to Sakai Development, Markus
Email debug log

DEBUG: Jakarta Mail version 1.6.4
DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
DEBUG: Tables of loaded providers
DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle], com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle]}
DEBUG: Providers Listed By Protocol: {imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle], imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle]}
DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 465, isSSL true
220 smtp.gmail.com ESMTP u65sm454419vkb.13 - gsmtp
DEBUG SMTP: connected to host "smtp.gmail.com", port: 465
EHLO localhost
250-smtp.gmail.com at your service, [154.27.86.103]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8
DEBUG SMTP: Found extension "SIZE", arg "35882577"
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Found extension "AUTH", arg "LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH"
DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "CHUNKING", arg ""
DEBUG SMTP: Found extension "SMTPUTF8", arg ""
DEBUG SMTP: protocolConnect login, host=smtp.gmail.com, user=Les...@iqeraschools.com , password=<non-null>
DEBUG SMTP: Attempt to authenticate using mechanisms: LOGIN PLAIN DIGEST-MD5 NTLM XOAUTH2 
DEBUG SMTP: Using mechanism LOGIN
DEBUG SMTP: AUTH LOGIN command trace suppressed
DEBUG SMTP: AUTH LOGIN failed
06-May-2021 15:14:24.263 WARN [http-nio-8080-exec-2] org.sakaiproject.email.impl.BasicEmailService.transportMessage transportMessage:javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8  https://support.google.com/mail/?p=BadCredentials u65sm454419vkb.13 - gsmtp

06-May-2021 15:14:24.264 INFO [http-nio-8080-exec-2] org.sakaiproject.email.impl.BasicEmailService.transportMessage transportMessage: headers[] to[  admin <m.df...@gmail.com> Student 1 <dsd...@gmail.com>]
06-May-2021 15:14:24.264 INFO [http-nio-8080-exec-2] org.sakaiproject.email.impl.BasicEmailService.sendMessageAndLog Email.sendMail: from: postmaster@localhostsubject: Physics PHY A Spring 2021: sadadasd to: m.ds...@gmail.com naim...@gmail.com headerTo{cc}: m.ds...@gmail.com headerTo{bcc}: ds...@gmail.com replyTo: m.dsf...@gmail.com

Reply all
Reply to author
Forward
0 new messages