Mail sending failed_ Unrecognized SSL message, plaintext connection?

Mail sending failed_ Unrecognized SSL message, plaintext connection?

Log error trace:

Caused by: javax.mail.MessagingException: Could not connect to SMTP host: smtp.office365.com, port: 587;
  nested exception is:
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

Solution:

Error trace means that your exchange is expecting the connection in Plain Text but we are trying to connect using SSL/TLS. 

Please check with your exchange admin if Plain Text Connection is enabled on the mail server? If yes, then please set the protocol in Outgoing Settings to 'SMTP' with TLS set to 'No' and port 25 and save the settings. 

Once this is done, please check if mail sending is working.

If the issue persists, immediately zip the logs folder.
Please raise a ticket with us by sending an email to support@servicedeskplusmsp.com. Once you receive a ticket ID, upload the logs in https://bonitas2.zohocorp.com/ along with the ticket ID.

Note: While uploading, choose the product as Servicedesk Plus MSP, provide your email address and mention the ticket#  in the comments box. Also Mention the issue recreated time for sure which will help in quicker analysis.

                  New to ADSelfService Plus?

                    • Related Articles

                    • List of mail fetching issues and solutions

                      Scenario 1 : Mail fetching issue due to Invalid or No PKIX certificate .   Log traces for Mail Fetching  issues Exception when connecting to store.|javax.mail.MessagingException: sun.security.validator.ValidatorException: PKIX path building failed: ...
                    • Sending notification failed

                      In some scenarios the outgoing emails will error with Sending notification failed message in UI and in the logs you can see, 550 5.2.125 The sender has exceeded the maximum number of messages they are allowed to send via client submission either per ...
                    • Fix: Error while sending mail using EWS

                      Issue trace: [11:58:49:091]|[11-29-2022]|[SYSERR]|[INFO]|[122]: microsoft.exchange.webservices.data.core.exception.service.remote.ServiceResponseException: The operation can't be performed because the item is out of date. Reload the item and try ...
                    • Mail Fetching issue due to Unrecognized SSL exception!

                      Error Trace: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(Unknown Source) Exception from UI: FAILURE  :E- mail settings saved successfully. But error ...
                    • Mail fetching failed - PKIX path building failed.

                      Cause: If the SSL Certificate in mail server is a self signed certificate then it is not imported in the ServiceDeskPlus-MSP java environment while using the POPS/IMAPS protocol. Error Trace in logs: javax.net.ssl.SSLHandshakeException: ...