Jasper SES configuration

0

Hi,

i am getting a 503 error from AWS. the configuration and exceptions are below. Appreciated your help

i configured the email in 

/var/lib/tomcat7/webapps/jasperserver-pro/WEB-INF/js.quartz.properties

with the following entries:
report.scheduler.mail.sender.host=email-smtp.us-west-2.amazonaws.com
report.scheduler.mail.sender.username=....removed...
report.scheduler.mail.sender.password=...removed..
report.scheduler.mail.sender.from=...removed...
report.scheduler.mail.sender.protocol=smtp
#report.scheduler.mail.sender.port=465
#report.scheduler.mail.sender.port=25
report.scheduler.mail.sender.port=587
 
 
--------Exceptions------------
 
2015-06-27 22:43:04,958 ERROR ReportExecutionJob,quartzScheduler_Worker-1:317 - The job error notification was not completed. An error occurred while sending it.
org.springframework.mail.MailSendException: Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 530 Authentication required
; message exception details (1) are:
Failed message 1:
com.sun.mail.smtp.SMTPSendFailedException: 530 Authentication required
 
        at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)
        at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)
        at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)
        at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:416)
        at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:340)
        at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:336)
        at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJobMailNotificationImpl.sendMailNotification(ReportExecutionJobMailNotificationImpl.java:135)
        at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.sendMailNotification(ReportExecutionJob.java:1040)
        at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.executeAndSendReport(ReportExecutionJob.java:538)
        at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.execute(ReportExecutionJob.java:224)
        at com.jaspersoft.ji.report.options.engine.ReportOptionsExecutionJob.execute(ReportOptionsExecutionJob.java:49)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
jyang's picture
7
Joined: Mar 26 2015 - 11:32am
Last seen: 1 year 5 months ago

1 Answer:

0

Edit "applicationContext-report-scheduling.xml" and change the 'false' to 'true'

<prop key="mail.smtp.auth">false</prop>

<prop key="mail.smtp.auth">true</prop>

aj.urquhart's picture
Joined: Oct 11 2018 - 9:13am
Last seen: 1 year 2 months ago
Feedback