email scheduler help how to configure

Hi I am running jasper server ce 3.7.0


I have configured the file to allow the emailing and scheduling of reports, I have used telnet and SMTP to test my username etc and have sent a test email no problem, but when I try and schedule a report and email it I get the following error which I don't understand.


Mail server connection failed; nested exception is javax.mail.MessagingException: Can't send command to SMTP host;
nested exception is: PKIX path building failed: unable to find valid certification path to requested target
        at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(
        at org.springframework.mail.javamail.JavaMailSenderImpl.send(
        at org.springframework.mail.javamail.JavaMailSenderImpl.send(
        at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.sendMailNotification(

It's a ms exchange server I am trying to speak to, but should that be an issue for simple SMTP???


any thoughts or ideas much appreciated.



jasemilly's picture
Joined: Oct 6 2009 - 2:40am
Last seen: 5 years 3 months ago
Is there a reason why you are using setting up such an old version of the server? 3.7.0 is 3 years old.
mgeise - 10 years 11 months ago

2 Answers:

Your email server is likely missing a valid SSL cert.  Either you are connecting on a secure port or the standard port is redirected to a secure port - either way, Java is expecting a valid cert.

mgeise's picture
Joined: Mar 5 2007 - 6:18am
Last seen: 3 years 9 months ago

Thanks guys yes I am sure the email server is missing a ssl cert.


Created a gmail account first thing this morning and it worked first time.


Thanks for your help.

jasemilly - 10 years 11 months ago



If your email server requires authentication, you also need to set a property to 'true' in applicationContext-report-scheduling.xml:

        <property name="javaMailProperties">


                <prop key="mail.smtp.auth">true</prop>
Could this be the problem?
kcollins's picture
Joined: Aug 30 2011 - 12:22pm
Last seen: 3 years 1 month ago