Outbound Email Configuration Not Working

0

I'm having issues configuring outbound email.

I followed this https://community.jaspersoft.com/wiki/configuring-report-scheduler#Setting_Up_the_Connection_to_your_Outbound_Email_Server guide, I made the changes as the article states, but after I rebooted, Jaspersoft won't come up. I'm seeing this error in the logs: 

 

2021-10-11T15:49:35,337 ERROR SecureExceptionHandlerImpl,pool-14-thread-118:116 - There was an error on the server. Try again or contact site administrators. (Error UID: a5024527-f0ce-4018-854f-52964eb6e3c3)
2021-10-11T15:49:35,368 ERROR SecureExceptionHandlerImpl,pool-14-thread-118:116 - There was an error on the server. Try again or contact site administrators. (Error UID: 4fcb5d53-e36b-4a6d-9df0-f4e870a27606)
2021-10-11T16:08:15,959 ERROR SecureExceptionHandlerImpl,JasperServerScheduler_Worker-2:116 - There was an error on the server. Try again or contact site administrators. (Error UID: 5d16bb0c-03cd-43cf-967b-1d951d3b5fa0)
2021-10-11T16:08:15,960 ERROR ReportExecutionJob,JasperServerScheduler_Worker-2:327 - The job error notification was not completed. An error occurred while sending it. (Error UID: 5d16bb0c-03cd-43cf-967b-1d951d3b5fa0) org.springframework.mail.MailSendException: Mail server connection failed; nested exception is com.sun.mail.util.MailConnectException: Couldn't connect to host, port: mail.example.com, 25; timeout -1;
  nested exception is:
java.net.UnknownHostException: mail.example.com. Failed messages: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: mail.example.com, 25; timeout -1;
  nested exception is:
java.net.UnknownHostException: mail.example.com; message exception details (1) are:
Failed message 1:
com.sun.mail.util.MailConnectException: Couldn't connect to host, port: mail.example.com, 25; timeout -1;
  nested exception is:
java.net.UnknownHostException: mail.example.com
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2209)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
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)
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 com.jaspersoft.ji.report.options.engine.ReportOptionsExecutionJob.execute(ReportOptionsExecutionJob.java:45)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: java.net.UnknownHostException: mail.example.com
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:220)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:609)
at java.base/java.net.Socket.connect(Socket.java:558)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:359)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:238)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2175)
... 13 more

 

I have checked multiple times and mail.example.com is not in the js.quartz.properties file. I even restored the backup I took before making any changes and Jaspersoft still will not start. 

tim.beekley's picture
Joined: Oct 11 2021 - 12:44pm
Last seen: 1 week 1 day ago

0 Answers:

No answers yet
Feedback
randomness