Exception 'No authentication mechanisms supported by both server and client' in Maileater

Document ID : KB000076631
Last Modified Date : 11/05/2018
Show Technical Document Details
Issue:
The MAILER (Administration -> Options Manger -> Email) has been configured by giving Hostname, username, password, from email etc.  A mailbox for maileater was also configured to listen and the idea is to receive automated responses like the one below be send whenever maileater creates a ticket based on mail content.

User-added image
An automated email response is not received, and instead the following exception in "NX_ROOT\log\mail_nxd.log" is reported

2018-01-30 17:04:21:432 ERROR [mailNxdActorSystem-akka.actor.default-dispatcher-8] c.c.S.m.NXJavaMailMailer - The transport is not connected or is dead.
javax.mail.AuthenticationFailedException: No authentication mechanisms supported by both server and client
at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:847)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:748)
at javax.mail.Service.connect(Service.java:366)
at com.ca.ServicePlus.mail.connection.JavaMailSMTPClient.sendMessage(JavaMailSMTPClient.java:248)
at com.ca.ServicePlus.mail.connection.JavaMailSMTPClient.sendMail(JavaMailSMTPClient.java:294)
at com.ca.ServicePlus.mailer.NXJavaMailMailer.sendMailToMailServer(NXJavaMailMailer.java:144)
at com.ca.ServicePlus.mailer.NXMailMailerActor.lambda$createReceive$1(NXMailMailerActor.java:116)
at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:26)
at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:21)
at scala.PartialFunction$class.applyOrElse(PartialFunction.scala:123)
at akka.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:21)
at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:170)
at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:171)
at akka.actor.Actor$class.aroundReceive(Actor.scala:513)
at akka.actor.AbstractActor.aroundReceive(AbstractActor.scala:132)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:527)
at akka.actor.ActorCell.invoke(ActorCell.scala:496)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)
at akka.dispatch.Mailbox.run(Mailbox.scala:224)
at akka.dispatch.Mailbox.exec(Mailbox.scala:234)
at akka.dispatch.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at akka.dispatch.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at akka.dispatch.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
 
Cause:
​This is a known concern for SDM 17.1.

From the log entries, the key is this item:
2018-01-30 17:04:21:432 ERROR [mailNxdActorSystem-akka.actor.default-dispatcher-8] c.c.S.m.NXJavaMailMailer - The transport is not connected or is dead.
javax.mail.AuthenticationFailedException: No authentication mechanisms supported by both server and client

At the Mail server end, NTLM would have been configured as a preferred connection mechanism from JAVA clients such as the maileater.  The Mailer java code will try to send user name and password when attempting to connect.  Since the 2 configurations (plain vs NTLM) don't match, the given error is presented. 
Resolution:
At the present, the workaround is to uninstall the options username and password and even the domain.