I have a Tomcat/Eclipse running a dynamic web project. This includes a known good .war as it's main codebase. The mail .jar is mail.1.4.5.jar.
When used locally, the setup, when configured accurately, delivers email via tests no problem. It can deliver to a variety of ports, and two very different SMTP servers. But when deployed to Jelastic, the app fails to deliver mail.
I could list the errors, they are several, including reports on transport issues. The key error, which may provide some answers, is that when Java Mail, on the Jelastic deployment, is configured to port 25, the mail is reported by the app as having been delivered. This works on both servers. But the mail never arrives. I've checked junk, too, to make sure the mail was not caught by anti-spam.
The problem seems to be quite narrow - only port 25 is working on the mail delivery, and Java Mail thinks it has succeeded. But there are many reasons why the mail may not have arrived, and I'm not sure where to start or, in some cases such as catching outbound mail, how to debug.
This question may be related to,
Grails mail delivery works fine locally
but if this is the same issue, then the problem is Java-wide, not limited to Grails.
Have you tried to troubleshoot that issue by means of using any other external SMTP server apart from localhost:25? For example, gmail SMTP?