Mail Activity throws the error, "No authentication mechansims supported by both server and client" after upgrading to version 5.11.

Mail Activity throws the error, "No authentication mechansims supported by both server and client" after upgrading to version 5.11.

book

Article ID: KB0093269

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Description:
After customer upgrade their bw to 5.11, the send mail activity throws an error saying 'No authentication mechansims supported by both server and client'.

Symptoms:
Error sending mail message. Cause: javax.mail.AuthenticationFailedException: No authentication mechanisms supported by both server and client .

        at com.tibco.plugin.share.mail.MailPluginImplementation.send(Unknown Source) 
        at com.tibco.plugin.mail.MailPubActivity.eval(Unknown Source) 
        at com.tibco.pe.plugin.Activity.eval(Unknown Source) 
        at com.tibco.pe.core.TaskImpl.eval(Unknown Source) 
        at com.tibco.pe.core.Job.a(Unknown Source) 
        at com.tibco.pe.core.Job.k(Unknown Source) 
        at com.tibco.pe.core.JobDispatcher$JobCourier.a(Unknown Source) 
        at com.tibco.pe.core.JobDispatcher$JobCourier.run(Unknown Source)


Cause:
Authentication in BW 5.11 is more rigorous, which means authentication is required at the SMTP server.

Resolution

1). In command line mode, use the telnet command to see if the username and password is required when sending an email via an SMTP server. It will succeed even without providing a username and password. The SMTP server authentication is base on IP, which means if the IP of the request is in the allow list, the username and password is not required. This configuration will not work in BW 5.11


2). Change the authentication in SMTP server to "Basic Authentication".

Issue/Introduction

Mail Activity throws the error, "No authentication mechansims supported by both server and client" after upgrading to version 5.11.