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

Schedule configuration for Microsoft Exchange


m_ilio

Recommended Posts

Hi

I am using jasperserver-comunity 5.5.0
I have this configuration for microsoft exchange:

 js.quartz.properties
report.scheduler.mail.sender.host=server.com
report.scheduler.mail.sender.username=user@server.com
report.scheduler.mail.sender.password=password
report.scheduler.mail.sender.from=user@server.com
report.scheduler.mail.sender.protocol=smtp
report.scheduler.mail.sender.port=25
 
applicationContext-report-scheduling.xml
        <property name="javaMailProperties">
            <props>
                <prop key="mail.smtp.auth">true</prop>
                <prop key="mail.smtp.starttls.enable">true</prop>
            </props>
        </property>
 

All works fine sending reports to our exchange's account, but when I try send the reports to outside address... I am getting this error:

Component:

Report Scheduler
 
Message:
Job: Immediate Execution (ID: 2748) Report unit: /Myreport Quartz 
Job: ReportJobs.job_2748 Quartz Trigger: ReportJobs.trigger_2745_0 
Exceptions: The job error notification was not completed. 
An error occurred while sending it. org.springframework.mail.MailSendException: 
Failed messages: javax.mail.SendFailedException: Invalid Addresses; nested exception is: 
com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay ; message exception details (1) are: 
Failed message 1: javax.mail.SendFailedException: Invalid Addresses; nested exception is: 
com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196) at 
com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584) 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:953) at 
com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.executeAndSendReport(ReportExecutionJob.java:549) at 
com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.execute(ReportExecutionJob.java:217) at 
org.quartz.core.JobRunShell.run(JobRunShell.java:213) at 
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557) 
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1047) 
... 10 more

 

Link to comment
Share on other sites

  • 1 year later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 1 year later...

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...