No authentication mechanisms supported by both server and client when Configuring Microsoft Exchange SMTP Server


  • I have configured Microsoft Exchange as SMTP Server for Jenkins and a similar stacktrace on my job console output is being shown
javax.mail.AuthenticationFailedException: No authentication mechansims supported by both server and client 
at com.sun.mail.smtp.SMTPTransport.authenticate( 
at com.sun.mail.smtp.SMTPTransport.protocolConnect( 
at javax.mail.Service.connect( 
at javax.mail.Service.connect( 
at javax.mail.Service.connect( 
at javax.mail.Transport.send0( 
at javax.mail.Transport.send( 
at hudson.tasks.Mailer$DescriptorImpl.doSendTestMail( 



On Jenkins side

  1. Add the Java Property -Dmail.smtp.auth.ntlm.domain=<Domain_name> and restart Jenkins

  2. Configure SMTP Server under Manage Jenkins > Configure System as follows:

    2.1. Use one of the following syntaxes for your user: Domain_name\username,
    2.2. Enable SSL


On STMP server side: Microsoft Exchange

Enable TLS or SSL on the your exchange mail server for the specific mailbox.

Tested on

The latest update of this article has been tested with:

Have more questions?


Please sign in to leave a comment.