sorry wrong subject in previous (pop3/imap ssl).
I figure out the root cause. The dummy class which I specify through security properties couldn't load in expected context class loader since javax.net.ssl.SSLSocketFactory load in different class loader.
Alternatively we can specify custom socket factory through java mail properties
which load as same as class loader java Mail.jar load.
Pls any one can change the the topic subject. That's my bad.