Looking for a way to configure a JNDI JavaMail session, I ran into <http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg43073.html>. It looks like the only way to do this is through manually opening the transport in code; there should be a way to configure an authenticated session through server.xml and the MailSessionFactory.
Created attachment 12769 [details] Patch to add a 'password' property to MailSessionFactory initialisation.
Changing components for Tomcat 5.5.
Done for 5.5.9. Thanks for submitting this patch.