18 Nov 2011 avax.mail.AuthenticationFailedException: failed to connect at javax.mail.Service. connect(Service.java:322) at javax.mail. . Apparently, MS Exchange SSL connection is not established properly by Java Mail API. It relies on using . Try disabling plain login explicitly: Apparently there's a bug in some versions of exchange where it advertises support for plainĀ .