We have an AWS JasperServer instance, but cannot get report emailing to work successfully. We've searched this forum and StackOverflow and tried many different combinations of options. The gmail account is used by our other servers to send outgoing mail, so we know the account setup is correctly. (The submission form spam filter is rejecting my post so I'm going to start trimming content. If something seems to be missing that is important, let me know).
Any pointers would be appreciated.
OUR FINAL FIX:
- Installed PostFix as an SMTP relay on the Jasper box
- Configured Jasper instance in path /usr/share/tomcat7/webapps/jasperserver-pro/WEB-INF per the other links/articles here, using localhost as the mail host, protocol smtp, port 25
- Edited js.quartz.properties: to set the correct URL for the hyperlinks sent in reporting e-mails:
I'm also documenting information we received from JasperSoft here for the sake of others who may be working on this issue. Note that none of this resolved the issue for us. We have multiple other AWS-hosted servers successfully emailing, some via our own exchange servers and some via Gmail. This turnkey Jasper server is the only one that could not successfully send email out, so I disagree with the statement below that the issue is not related to Jaspersoft but rather to the AWS environment. I think it is something unique about the way the Jasper servers are set up in AWS. With that caveat, here are the recommended points from Jaspersoft:
As the the problem with your JRS not communicating with your Email Server - please make sure they are on the same VCP and security group within AWS - this issues is not related to the Jaspersoft Server but the AWS environment. If your email server is in your own domain - you could purchase a VPN from amazon - or you could just spin up a email server on AWS in the same VCP and security group and use it just for communications from Jaspersoft
Scheduling via Gmail should work. Connections have to be checked at both JRS instance and network levels and ensured that no traffic is being blocked to access Gmail (and corresponding default ports used by Gmail)
Make sure that connections can be made at both
• JRS Instance level (Security Group / Route Table): eg, from traffic outside of VPC ("0.0.0.0"), send to the gateway
• Network level (Network ACL)