or
Unfortunately no connection was possible. Review the errors below and rectify: SSLException: Unrecognized SSL message, plaintext connection? You should have a local SMTP domain name that will contact the mail server and establishes a new connection as well you should change the SSL property in your programming below javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection props.put('mail.smtp.socketFactory.fallback', 'true'); // Should be true. Unrecognized SSL message, plaintext connection? Could not convert socket to TLS; Cause: Unable to connect to the specified port with the secured connection details provided. Possible workarounds: Disable SSL under Secure Connection Details in case of unrecognized SSL message. Recheck the Secure connection details. Javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection props.put('mail.smtp.socketFactory.fallback', 'true'); // Should be true In case you are running local applying spring i'd then exercise this command line.
How To Fix: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection in Confluence JNDI
I've been doing Exchange to Office 365 migrations lately and that means on-premises applications and devices can't use the local Exchange server to send mail anymore.
Your options are to use the credentials of an Office 365 mailbox to send mail, set up a local SMTP relayer, or use a third-party SMTP service.
If you've opted to use an Office 365 login to send mail via SMTP, then you must use TLS, so the applications/devices sending mail must support sending mail with TLS on port 587.
This article focuses on Atlassian Confluence but may apply to other java applications using JNDI to configure mail.
Atlassian Confluence, Secure SMTP, and JNDI
Unrecognized Ssl Message Plaintext Connection Smtp Yahoo Mail
Confluence has no way to set up secure SMTP with SSL or TLS from within the administration, so unfortunately you're forced to configure Confluence to use a JNDI Location for SMTP. This involves moving around JARs and changing configuration files, which will end up slowing down your upgrades (see my script to make Confluence upgrades easier).
Start with the existing GMail configuration:
Most of what you need is already written for using gmail, but gmail uses SSL on SMTP, and these exact settings will fail if you use it with SMTP that starts plain and changes to secure with STARTTLS.
If you use it directly, you'll get an error like you see at the top of the article:
Ssl Connection Error
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection
This is because the existing settings include this line:
That line specifically forces SSL to be used, so you end up trying to connect to an SMTP server expecting plain text, and sending encrypted data to it so it doesn't know what you're talking about.
Smtp Ssl Or Tls
Removing that line is all you need to do differently aside from changing the SMTP host, port, etc. So if you've done those steps, you don't need what you see below.
Step by Step
The entire process (mostly copied from the above article) goes like this:
Stop Confluence.
Move (don't copy)
activation-1.0.2.jar
andmail-1.4.1.jar
from/confluence/WEB-INF/lib
to/lib
.
Note: The version numbers on these jar files may vary, but that should not matter.
As of Confluence 5.2.3,activation-1.0.2.jar
no longer exists, and does not need to be moved or downloaded.- Add the following to your
server.xml
file found in/conf/
(add it just before thetag – This is the modified version for Office 365):
- Add the following to your
Restart Confluence.
Choose the cog icon at top right of the screen, then choose Confluence Admin.
Choose Mail Servers.
Choose either Edit an existing configuration, or Add a new SMTP mail server.
- Edit the server settings as necessary, and set the JNDI Location as:
Note that the JNDI Location is case sensitive and must match the resource name specified inserver.xml
.Download DLS 19 Mod Apk Be set up for brilliant, strategic AI to shape a difficult and addictive experience. With all-new visuals, practical liveliness, and 60fps dynamic ongoing interaction (good gadgets just), Dream League Soccer 2019 is the ideal Soccer bundle that catches the genuine quintessence of the wonderful game. See Also: FIFA 20 Apk. Download FIFA 19 MOD Apk + OBB for Android FIFA 2019 on Android For the game to work on Android, it is essential to have Android version 5.0 & above plus about 2.5 GB of free space on your smartphone. Please enable the option of Unknown Sources in Settings - Security of your Android device before proceeding ahead. Kit fifa 19 dls. The latest FIFA 19 Apk Data + Mod is here again. Experience all-new gameplay, graphics, Head to Head mode, team Chemistry, and more with an upgraded game engine. FIFA 19 Apk ios is the world's game, taken to a whole new level for mobile. Build your Ultimate Team and take on opponents as you train any player to superstar status, attack rivals, and engage in fresh daily content all season long.
- Submit, and send a test email.
That should be it!
Using this info for a different application? Please tell me!
If you found this useful for something other than Confluence, I'm interested in hearing about it and probably listing it in the article.
Problem while sending message: javax.mail.MessagingException:
hi. i'm a newbie in Kettle. I want to e-mail 2 xls file to a certain e-mail address through a Job. but I always encounter the following error message..
Problem while sending message: javax.mail.MessagingException: Exception reading response;
nested exception is:
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
I have this following settings:
servername: smtp.gmail.com
port: 587
secure connection : TLS
can you give me a solution to this problem. or a working example will do. thanks in advance.
mhiL