Jump to content
We've recently updated our Privacy Statement, available here ×

SMTP hitting Google Auth too many times locking out emails


wcbutler

Recommended Posts

Hello all, long time Jaspersoft Studio/server user for my job.

My boss has a big push to have reports sent to all liaisons on my campus. As we have stacked up a lot of emails on 7am and 8am on the first of the month we are hitting the Google SMTP relay with a ton of auth requests and losing reports.

The team handling the gsuite said we can pay for an alt SMTP process that costs per email. Obviously I could also set up multiple Jasper servers or stagger the delivery time. 

Is there any way I can have the server auth once for SMTP delivery for a stack of emails?

I'm on Server 8.0.0,

 

Here is the error, I sanitized some GUIDS just in case

2023-05-01T07:09:00,369 ERROR
SecureExceptionHandlerImpl,JasperServerScheduler_Worker-2:125 - There was
an error on the server. Try again or contact site administrators. (Error
UID: xxxxxxxxxxxx). 454 4.7.0 Too many login
attempts, please try again later.
v189-20020xxxxxxxxx.130 - gsmtp
org.springframework.mail.MailAuthenticationException: Authentication
failed; nested exception is javax.mail.AuthenticationFailedException: 454
4.7.0 Too many login attempts, please try again later.
v189-20020xxxxxxxxxx - gsmtp

at
org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:440)
at
org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:361)
at
org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:356)
at
com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJobMailNotificationImpl.sendMailNotification(ReportExecutionJobMailNotificationImpl.java:141)
at
com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.sendMailNotification(ReportExecutionJob.java:746)
at
com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.executeAndSendReport(ReportExecutionJob.java:526)
at
com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.execute(ReportExecutionJob.java:219)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: javax.mail.AuthenticationFailedException: 454 4.7.0 Too many
login attempts, please try again later.
v189-20020xxxxxxxxxx - gsmtp

at
com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:965)
at
com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:876)
at
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:780)
at javax.mail.Service.connect(Service.java:366)
at
org.springframework.mail.javamail.JavaMailSenderImpl.connectTransport(JavaMailSenderImpl.java:518)
at
org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:437)
... 8 more

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

I'll research doing this, if there is an article on the SMTP pooling that would be amazing.

Another idea, is it possible to resend on SMTP failure? I see a set of commented out misfire policy settings in quartz.properties

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...