JavaMail server

If an application uses an on-premises JavaMail service provider, then after the application is moved to the cloud, it requires a secure connection to maintain access to the mail server.

The following Java classes indicate use of a JavaMail server:

A <res-type> element with a value of javax.mail.Session in the application.xml, application-client.xml, ejb-jar.xml, or web.xml files also indicates use of a JavaMail server:

This rule is flagged once per Eclipse project or Java archive.

How to Resolve

If your application is able to directly access the JavaMail server, no further action is required.

Otherwise, you can use a VPN tunnel, such as the IBM Secure Gateway for IBM Cloud, to create a secure connection to your existing on-premises JavaMail server. For more information about configuring a secure connection, see Configuring a VPN. After configuring your gateway, connect your application to the new destination by using the cloud host and port number that is provided when you created the destination. The following URLs are examples of JavaMail server URLs: