Keycloak Email Test Connection - Could not convert socket to TLS - email

Keycloak -> Realm Settings -> Email -> Test connection
I'm trying to do this. Page show error "Error! Failed to send email".
Tomcat logs shows error "Could not convert socket to TLS".
How can I solve this problem?

Related

TYPO3 v11, can not send emails - Unable to connect to localhost:25 (Connection timed out)

With TYPO3 v11, it's impossible to send emails. I have this error :
Could not deliver mail
Please verify $GLOBALS['TYPO3_CONF_VARS']['MAIL'][*] settings are valid. Error message: Connection could not be established with host "localhost:25": stream_socket_client(): Unable to connect to localhost:25 (Connection timed out)
Does anyone know how to solve this ?
Everything worked fined with TYPO3 v9 but with the same config on the same server, the problems occurs.

Error Message = Listener refused the connection with the following error

I am trying to open sql developer application in C:\oracle19_c\WINDOWS.X64_193000_db_home\sqldeveloper\sqldeveloper\bin\sql.exe in that it is asking about the username and password I have no idea what username and password I have to give. And if I tried username and password I get the error as below .
error:' URL= jdbc:oracle:thin:#localhost:1521/xe
Error Message = Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
Could anyone pls help me with this issue.

KeyCloak fails to send email using SMTP with status 500

I have Keycloak running in a Kubernetes cluster. Authentication works but I need to set up e-mail to be able to send e-mails for verification and password reset.
I have SendGrid set up as an SMTP Relay. These settings (host, port and api key) work when I send mail using the SendGrid java client. However, when pressing Test connection in KeyCloak I get:
[Error] Failed to load resource: the server responded with a status of 500 ()
[Debug] Remove message (services.js, line 14)
[Debug] Added message (services.js, line 15)
[Error] Can't find variable: error
https://<domain>/auth/resources/ong8v/admin/keycloak/js/controllers/realm.js:76 – "Possibly unhandled rejection: {}"
[Debug] Remove message (services.js, line 14)
There isn't much to go on here. I have an e-mail address set up for the currently logged in user. I've also tried resetting the password in case the Test connection functionality was broken but that didn't work either.
The Realm Settings settings user for email are as such:
host: smtp.sendgrid.net
port: 587
from: test#<domain>
Enable StartTLS: true
Username: "apikey"
Password: <api key>
Any idea what can be wrong? Or how to find out? For instance, maybe I can get a more meaningful error message somehow.
Edit:
I got the server logs.
Failed to send email: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.sendgrid.net, 587; timeout 10000;
nested exception is: java.net.SocketTimeoutException: connect timed out
Edit 2:
I've tried sending mail using Telnet using the exact same settings and that works. So apparently it's something with Keycloak or its underlying Java libraries that's causing issues sending e-mail.
Turns out that Keycloak works and that emails were blocked by the hosting provider.

MFP 8 - Connection Error

I'm running the MFP server in my local. I logged in and see the dashboard page.
But am getting connection error in dashboard. Below is the error message
Connection error. Contact the server administrator(HTPP code: 1)

Email form submit shows email log

I recently completed my 1.0 version of my website and now that I uploaded it to dreamhost’s server, I’m having issues submitting the email form. When I host it locally, everything goes through with no problems. However, when on the server, it displays the email log:
SERVER -> CLIENT: 220 smtp.postmarkapp.com ESMTP sc-iad-smtp2
CLIENT -> SERVER: EHLO [website]
SERVER -> CLIENT: 250-smtp.postmarkapp.com250-PIPELINING250-SIZE 20480000250-VRFY250-ETRN250-STARTTLS250-AUTH PLAIN LOGIN CRAM-MD5 DIGEST-MD5250-AUTH=PLAIN LOGIN CRAM-MD5 DIGEST-MD5250-ENHANCEDSTATUSCODES250-8BITMIME250 DSN
CLIENT -> SERVER: AUTH LOGIN
SERVER -> CLIENT: 334 VXNlcm5hbWU6
CLIENT -> SERVER: NzI2NzExNWItNzYwNC00ZDE2LTk0MmEtNDIwM2Y5NTM2Njk5
SERVER -> CLIENT: 334 UGFzc3dvcmQ6
CLIENT -> SERVER: NzI2NzExNWItNzYwNC00ZDE2LTk0MmEtNDIwM2Y5NTM2Njk5
SERVER -> CLIENT: 235 2.7.0 Authentication successful
I’m currently using the postmark app while hosted on dreamhost.
I’ve tried editing this field:
if (!$mail->send()) {
echo "There was a problem sending the email:" . $mail->ErrorInfo;
exit;
}
by adding:
else {
header (“Location: [insert form confirmation page here]”)
}
But it just logs the command on the page. Can someone please help me understand why this is happening on the server and how to fix it?