I want to use JavaMail (web app on Tomcat or JBoss) to compose and send mail through an externally hosted MTA and I want to learn more about the data security between the MTA and the Java API itself. I'm guessing there is some sort of transport layer security? I'm having a hard time finding anything, I don't seem to know what keywords to look for.
There are two approaches:
JavaMail supports both. See the properties for the various protocol providers and the SSLNOTES.txt file.